注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

^_^ china.ygw的博客

软件开发/c/c++/数据库/开源/linux/windows/安全/网络...

 
 
 

日志

 
 
 
 

使用unixODBC并发连接mysql数据库频繁SIGSEGV及SIGABRT崩溃(续)  

2013-05-20 22:04:43|  分类: UnixODBC |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
        基本情况详见昨天发布的“使用unixODBC并发连接mysql数据库频繁SIGSEGV及SIGABRT崩溃”博文。
        在昨天的基础上,今天又测试了一天。按照unixODBC作者Nick Gorham回复邮件,他之前也已经发现连接并发时存在问题,怀疑问题是出在连接接口使用的库操作函数dlopen、dlsym、dlclose,因为unixODBC源代码未使用linux系统自带的如上三个接口,而是使用libtool工具的相关接口lt_dlopen、lt_dlsym、lt_dlclose,并且认为如果这三个接口调整为linux系统函数,可能问题就不会出现了。按照其所言,手工修改unixODBC源代码目录DriverManager下的SQLConnect.c文件,改动如下:
        1)修改odbc_dlopen接口中的libtool函数lt_dlopen为linux系统函数dlopen,附加参数RTLD_LAZY
        2)修改odbc_dlclose接口中的libtool函数lt_dlclose为linux系统函数dlclose;
        3)修改该文件中所有libtool函数lt_dlsym为linux系统函数dlsym
        4)增加头文件的引用#include <dlfcn.h>

        完成以上修改并重新编译unixODBC,再测试。结果还是存在崩溃情况,主要有:

第1种崩溃情况如下:
Error in my_thread_global_end(): 312 threads didn't exit
236:1 0
235:1 0
24:19 0
Error in my_thread_global_end(): 323 threads didn't exit
14:21 0
[New Thread 0x149dfb70 (LWP 6121)]
233:4 0
*** glibc detected *** /tmp/test: corrupted double-linked list: 0x8f6d2728 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6ea31)[0x33ea31]
/lib/libc.so.6(+0x720b0)[0x3420b0]
/lib/libc.so.6(__libc_malloc+0x5e)[0x3428ce]
/mysql/lib/libmysqlclient.so.18(my_malloc+0x2f)[0x54313f]
/myodbc/lib/libmyodbc5w.so(sqlwchardup+0x43)[0x4c456d]
/myodbc/lib/libmyodbc5w.so(ds_set_strnattr+0x78)[0x4c5966]
/myodbc/lib/libmyodbc5w.so(ds_lookup+0x149)[0x4c6452]
/myodbc/lib/libmyodbc5w.so(MySQLConnect+0x115)[0x4a4a0a]
/myodbc/lib/libmyodbc5w.so(SQLConnectW+0x69)[0x4c1819]
/unixODBC/lib/libodbc.so.2(SQLConnect+0xcaf)[0x14038f]
/tmp/test[0x8048955]
/lib/libpthread.so.0(+0x6a09)[0x466a09]
/lib/libc.so.6(clone+0x5e)[0x3ad00e]
======= Memory map: ========
00110000-0012e000 r-xp 00000000 fd:00 655028     /lib/ld-2.12.so
0012e000-0012f000 r--p 0001d000 fd:00 655028     /lib/ld-2.12.so
0012f000-00130000 rw-p 0001e000 fd:00 655028     /lib/ld-2.12.so
00130000-00131000 r-xp 00000000 00:00 0          [vdso]
00131000-00198000 r-xp 00000000 fd:00 1320624    /unixODBC/lib/libodbc.so.2.0.0
00198000-0019c000 rw-p 00067000 fd:00 1320624    /unixODBC/lib/libodbc.so.2.0.0
0019c000-0019d000 rw-p 00000000 00:00 0
0019d000-0027c000 r-xp 00000000 fd:00 1701805    /usr/lib/libstdc++.so.6.0.13
0027c000-00280000 r--p 000de000 fd:00 1701805    /usr/lib/libstdc++.so.6.0.13
00280000-00281000 rw-p 000e2000 fd:00 1701805    /usr/lib/libstdc++.so.6.0.13
00281000-00288000 rw-p 00000000 00:00 0
00288000-002b0000 r-xp 00000000 fd:00 655043     /lib/libm-2.12.so
002b0000-002b1000 r--p 00027000 fd:00 655043     /lib/libm-2.12.so
002b1000-002b2000 rw-p 00028000 fd:00 655043     /lib/libm-2.12.so
002b2000-002cf000 r-xp 00000000 fd:00 655012     /lib/libgcc_s-4.4.6-20110824.so.1
002cf000-002d0000 rw-p 0001d000 fd:00 655012     /lib/libgcc_s-4.4.6-20110824.so.1
002d0000-00459000 r-xp 00000000 fd:00 655035     /lib/libc-2.12.so
00459000-0045a000 ---p 00189000 fd:00 655035     /lib/libc-2.12.so
0045a000-0045c000 r--p 00189000 fd:00 655035     /lib/libc-2.12.so
0045c000-0045d000 rw-p 0018b000 fd:00 655035     /lib/libc-2.12.so
0045d000-00460000 rw-p 00000000 00:00 0
00460000-00477000 r-xp 00000000 fd:00 655059     /lib/libpthread-2.12.so
00477000-00478000 r--p 00016000 fd:00 655059     /lib/libpthread-2.12.so
00478000-00479000 rw-p 00017000 fd:00 655059     /lib/libpthread-2.12.so
00479000-0047b000 rw-p 00000000 00:00 0
0047b000-0047e000 r-xp 00000000 fd:00 655041     /lib/libdl-2.12.so
0047e000-0047f000 r--p 00002000 fd:00 655041     /lib/libdl-2.12.so
0047f000-00480000 rw-p 00003000 fd:00 655041     /lib/libdl-2.12.so
00480000-0048c000 r-xp 00000000 fd:00 655051     /lib/libnss_files-2.12.so
0048c000-0048d000 r--p 0000b000 fd:00 655051     /lib/libnss_files-2.12.so
0048d000-0048e000 rw-p 0000c000 fd:00 655051     /lib/libnss_files-2.12.so
0048e000-0048f000 r-xp 00000000 fd:00 1701643    /usr/lib/gconv/ISO8859-1.so
0048f000-00490000 r--p 00000000 fd:00 1701643    /usr/lib/gconv/ISO8859-1.so
00490000-00491000 rw-p 00001000 fd:00 1701643    /usr/lib/gconv/ISO8859-1.so
00491000-004cf000 r-xp 00000000 fd:00 1336526    /myodbc/lib/libmyodbc5w.so
004cf000-004db000 rw-p 0003e000 fd:00 1336526    /myodbc/lib/libmyodbc5w.so
004db000-004ee000 r-xp 00000000 fd:00 1320619    /unixODBC/lib/libodbcinst.so.2.0.0
004ee000-004ef000 rw-p 00012000 fd:00 1320619    /unixODBC/lib/libodbcinst.so.2.0.0
004ef000-007cc000 r-xp 00000000 fd:00 1320770    /mysql/lib/libmysqlclient.so.18.0.0
007cc000-00889000 rw-p 002dd000 fd:00 1320770    /mysql/lib/libmysqlclient.so.18.0.0
00889000-0088c000 rw-p 00000000 00:00 0
0088c000-00893000 r-xp 00000000 fd:00 655063     /lib/librt-2.12.so
00893000-00894000 r--p 00006000 fd:00 655063     /lib/librt-2.12.so
00894000-00895000 rw-p 00007000 fd:00 655063     /lib/librt-2.12.so
08048000-08049000 r-xp 00000000 fd:00 551958     /tmp/test
08049000-0804a000 rw-p 00000000 fd:00 551958     /tmp/test
0804a000-08670000 rw-p 00000000 00:00 0          [heap]
113fe000-113ff000 ---p 00000000 00:00 0
113ff000-11dff000 rw-p 00000000 00:00 0
11dff000-11e00000 ---p 00000000 00:00 0
11e00000-12800000 rw-p 00000000 00:00 0
12800000-12823000 rw-p 00000000 00:00 0
12823000-12900000 ---p 00000000 00:00 0
129fe000-129ff000 ---p 00000000 00:00 0
129ff000-133ff000 rw-p 00000000 00:00 0
133ff000-13400000 ---p 00000000 00:00 0
13400000-13e00000 rw-p 00000000 00:00 0
13e00000-13e42000 rw-p 00000000 00:00 0
13e42000-13f00000 ---p 00000000 00:00 0
13fdf000-13fe0000 ---p 00000000 00:00 0
13fe0000-149e0000 rw-p 00000000 00:00 0
149e0000-149e1000 ---p 00000000 00:00 0
149e1000-153e1000 rw-p 00000000 00:00 0
153e1000-153e2000 ---p 00000000 00:00 0
153e2000-15de2000 rw-p 00000000 00:00 0
15de2000-15de3000 ---p 00000000 00:00 0
15de3000-167e3000 rw-p 00000000 00:00 0
167e3000-167e4000 ---p 00000000 00:00 0
167e4000-171e4000 rw-p 00000000 00:00 0
171e4000-171e5000 ---p 00000000 00:00 0
171e5000-17be5000 rw-p 00000000 00:00 0
17be5000-17be6000 ---p 00000000 00:00 0
17be6000-185e6000 rw-p 00000000 00:00 0
185e6000-185e7000 ---p 00000000 00:00 0
185e7000-18fe7000 rw-p 00000000 00:00 0
18fe7000-18fe8000 ---p 00000000 00:00 0
18fe8000-199e8000 rw-p 00000000 00:00 0
199e8000-199e9000 ---p 00000000 00:00 0
199e9000-1a3e9000 rw-p 00000000 00:00 0
1a3e9000-1a3ea000 ---p 00000000 00:00 0
1a3ea000-1adea000 rw-p 00000000 00:00 0
1adea000-1adeb000 ---p 00000000 00:00 0
1adeb000-1b7eb000 rw-p 00000000 00:00 0
1b7eb000-1b7ec000 ---p 00000000 00:00 0
1b7ec000-1c1ec000 rw-p 00000000 00:00 0
1c1ec000-1c1ed000 ---p 00000000 00:00 0
1c1ed000-1cbed000 rw-p 00000000 00:00 0
1cbed000-1cbee000 ---p 00000000 00:00 0
1cbee000-1d5ee000 rw-p 00000000 00:00 0
1d5ee000-1d5ef000 ---p 00000000 00:00 0
1d5ef000-1dfef000 rw-p 00000000 00:00 0
1dfef000-1dff0000 ---p 00000000 00:00 0
1dff0000-1e9f0000 rw-p 00000000 00:00 0
1e9f0000-1e9f1000 ---p 00000000 00:00 0
1e9f1000-1f3f1000 rw-p 00000000 00:00 0
1f3f1000-1f3f2000 ---p 00000000 00:00 0
1f3f2000-1fdf2000 rw-p 00000000 00:00 0
1fdf2000-1fdf3000 ---p 00000000 00:00 0
1fdf3000-207f3000 rw-p 00000000 00:00 0
207f3000-207f4000 ---p 00000000 00:00 0
207f4000-211f4000 rw-p 00000000 00:00 0
211f4000-211f5000 ---p 00000000 00:00 0
211f5000-21bf5000 rw-p 00000000 00:00 0
21bf5000-21bf6000 ---p 00000000 00:00 0
21bf6000-225f6000 rw-p 00000000 00:00 0
225f6000-225f7000 ---p 00000000 00:00 0
225f7000-22ff7000 rw-p 00000000 00:00 0
22ff7000-22ff8000 ---p 00000000 00:00 0
22ff8000-239f8000 rw-p 00000000 00:00 0
239f8000-239f9000 ---p 00000000 00:00 0
239f9000-243f9000 rw-p 00000000 00:00 0
243f9000-243fa000 ---p 00000000 00:00 0
243fa000-24dfa000 rw-p 00000000 00:00 0
24dfa000-24dfb000 ---p 00000000 00:00 0
24dfb000-257fb000 rw-p 00000000 00:00 0
257fb000-257fc000 ---p 00000000 00:00 0
257fc000-261fc000 rw-p 00000000 00:00 0
261fc000-261fd000 ---p 00000000 00:00 0
261fd000-26bfd000 rw-p 00000000 00:00 0
26bfd000-26bfe000 ---p 00000000 00:00 0
26bfe000-275fe000 rw-p 00000000 00:00 0
275fe000-275ff000 ---p 00000000 00:00 0
275ff000-27fff000 rw-p 00000000 00:00 0
27fff000-28000000 ---p 00000000 00:00 0
28000000-28a00000 rw-p 00000000 00:00 0
28a00000-28ae8000 rw-p 00000000 00:00 0
28ae8000-28b00000 ---p 00000000 00:00 0 [New Thread 0x11dfeb70 (LWP 6122)]
[Thread 0x149dfb70 (LWP 6121) exited]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x153e0b70 (LWP 6084)]
0x00130424 in __kernel_vsyscall ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686
(gdb) bt
#0  0x00130424 in __kernel_vsyscall ()
#1  0x002faaf1 in raise () from /lib/libc.so.6
#2  0x002fc3ca in abort () from /lib/libc.so.6
#3  0x003385d5 in __libc_message () from /lib/libc.so.6
#4  0x0033ea31 in malloc_printerr () from /lib/libc.so.6
#5  0x003420b0 in _int_malloc () from /lib/libc.so.6
#6  0x003428ce in malloc () from /lib/libc.so.6
#7  0x0054313f in my_malloc (size=20, my_flags=0) at /tmp/mysql-5.6.11/mysys/my_malloc.c:38
#8  0x004c456d in sqlwchardup () from /myodbc/lib/libmyodbc5w.so
#9  0x004c5966 in ds_set_strnattr () from /myodbc/lib/libmyodbc5w.so
#10 0x004c6452 in ds_lookup () from /myodbc/lib/libmyodbc5w.so
#11 0x004a4a0a in MySQLConnect () from /myodbc/lib/libmyodbc5w.so
#12 0x004c1819 in SQLConnectW () from /myodbc/lib/libmyodbc5w.so
#13 0x0014038f in SQLConnect (connection_handle=0x8f68a030, server_name=0xbffff183 "dsn__mysql__test", name_length1=-3,
    user_name=0xbffff194 "root", name_length2=-3, authentication=0xbffff199 "mysql", name_length3=-3) at SQLConnect.c:4101
#14 0x08048955 in thread (c=0xbfffd83c) at test.cpp:66
#15 0x00466a09 in start_thread () from /lib/libpthread.so.0
#16 0x003ad00e in clone () from /lib/libc.so.6

第2种崩溃情况如下:
*** glibc detected *** /tmp/test: free(): invalid pointer: 0x96c5f3f0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6ea31)[0x33ea31]
/mysql/lib/libmysqlclient.so.18(my_free+0x1d)[0x5430fd]
/myodbc/lib/libmyodbc5w.so(myodbc_end+0x49)[0x4a9f5d]
/myodbc/lib/libmyodbc5w.so(my_SQLFreeEnv+0x2e)[0x4ae6cd]
/myodbc/lib/libmyodbc5w.so(SQLFreeHandle+0x4b)[0x4af9fd]
/unixODBC/lib/libodbc.so.2(+0xb69c)[0x13c69c]
/unixODBC/lib/libodbc.so.2(+0xc370)[0x13d370]
/unixODBC/lib/libodbc.so.2(SQLConnect+0xffa)[0x1406da]
/tmp/test[0x8048955]
/lib/libpthread.so.0(+0x6a09)[0x466a09]
/lib/libc.so.6(clone+0x5e)[0x3ad00e]
======= Memory map: ========
00110000-0012e000 r-xp 00000000 fd:00 655028     /lib/ld-2.12.so
0012e000-0012f000 r--p 0001d000 fd:00 655028     /lib/ld-2.12.so
0012f000-00130000 rw-p 0001e000 fd:00 655028     /lib/ld-2.12.so
00130000-00131000 r-xp 00000000 00:00 0          [vdso]
00131000-00198000 r-xp 00000000 fd:00 1320624    /unixODBC/lib/libodbc.so.2.0.0
00198000-0019c000 rw-p 00067000 fd:00 1320624    /unixODBC/lib/libodbc.so.2.0.0
0019c000-0019d000 rw-p 00000000 00:00 0
0019d000-0027c000 r-xp 00000000 fd:00 1701805    /usr/lib/libstdc++.so.6.0.13
0027c000-00280000 r--p 000de000 fd:00 1701805    /usr/lib/libstdc++.so.6.0.13
00280000-00281000 rw-p 000e2000 fd:00 1701805    /usr/lib/libstdc++.so.6.0.13
00281000-00288000 rw-p 00000000 00:00 0
00288000-002b0000 r-xp 00000000 fd:00 655043     /lib/libm-2.12.so
002b0000-002b1000 r--p 00027000 fd:00 655043     /lib/libm-2.12.so
002b1000-002b2000 rw-p 00028000 fd:00 655043     /lib/libm-2.12.so
002b2000-002cf000 r-xp 00000000 fd:00 655012     /lib/libgcc_s-4.4.6-20110824.so.1
002cf000-002d0000 rw-p 0001d000 fd:00 655012     /lib/libgcc_s-4.4.6-20110824.so.1
002d0000-00459000 r-xp 00000000 fd:00 655035     /lib/libc-2.12.so
00459000-0045a000 ---p 00189000 fd:00 655035     /lib/libc-2.12.so
0045a000-0045c000 r--p 00189000 fd:00 655035     /lib/libc-2.12.so
0045c000-0045d000 rw-p 0018b000 fd:00 655035     /lib/libc-2.12.so
0045d000-00460000 rw-p 00000000 00:00 0
00460000-00477000 r-xp 00000000 fd:00 655059     /lib/libpthread-2.12.so
00477000-00478000 r--p 00016000 fd:00 655059     /lib/libpthread-2.12.so
00478000-00479000 rw-p 00017000 fd:00 655059     /lib/libpthread-2.12.so
00479000-0047b000 rw-p 00000000 00:00 0
0047b000-0047e000 r-xp 00000000 fd:00 655041     /lib/libdl-2.12.so
0047e000-0047f000 r--p 00002000 fd:00 655041     /lib/libdl-2.12.so
0047f000-00480000 rw-p 00003000 fd:00 655041     /lib/libdl-2.12.so
00480000-0048c000 r-xp 00000000 fd:00 655051     /lib/libnss_files-2.12.so
0048c000-0048d000 r--p 0000b000 fd:00 655051     /lib/libnss_files-2.12.so
0048d000-0048e000 rw-p 0000c000 fd:00 655051     /lib/libnss_files-2.12.so
0048e000-0048f000 r-xp 00000000 fd:00 1701643    /usr/lib/gconv/ISO8859-1.so
0048f000-00490000 r--p 00000000 fd:00 1701643    /usr/lib/gconv/ISO8859-1.so
00490000-00491000 rw-p 00001000 fd:00 1701643    /usr/lib/gconv/ISO8859-1.so
00491000-004cf000 r-xp 00000000 fd:00 1336526    /myodbc/lib/libmyodbc5w.so
004cf000-004db000 rw-p 0003e000 fd:00 1336526    /myodbc/lib/libmyodbc5w.so
004db000-004ee000 r-xp 00000000 fd:00 1320619    /unixODBC/lib/libodbcinst.so.2.0.0
004ee000-004ef000 rw-p 00012000 fd:00 1320619    /unixODBC/lib/libodbcinst.so.2.0.0
004ef000-007cc000 r-xp 00000000 fd:00 1320770    /mysql/lib/libmysqlclient.so.18.0.0
007cc000-00889000 rw-p 002dd000 fd:00 1320770    /mysql/lib/libmysqlclient.so.18.0.0
00889000-0088c000 rw-p 00000000 00:00 0
0088c000-00893000 r-xp 00000000 fd:00 655063     /lib/librt-2.12.so
00893000-00894000 r--p 00006000 fd:00 655063     /lib/librt-2.12.so
00894000-00895000 rw-p 00007000 fd:00 655063     /lib/librt-2.12.so
08048000-08049000 r-xp 00000000 fd:00 551958     /tmp/test
08049000-0804a000 rw-p 00000000 fd:00 551958     /tmp/test
0804a000-086fb000 rw-p 00000000 00:00 0          [heap]
12000000-12033000 rw-p 00000000 00:00 0
12033000-12100000 ---p 00000000 00:00 0
12200000-12276000 rw-p 00000000 00:00 0
12276000-12300000 ---p 00000000 00:00 0
123fd000-123fe000 ---p 00000000 00:00 0
123fe000-12dfe000 rw-p 00000000 00:00 0
12dfe000-12dff000 ---p 00000000 00:00 0
12dff000-137ff000 rw-p 00000000 00:00 0
137ff000-13800000 ---p 00000000 00:00 0
13800000-14200000 rw-p 00000000 00:00 0
14200000-142f5000 rw-p 00000000 00:00 0
142f5000-14300000 ---p 00000000 00:00 0
143f0000-143f1000 ---p 00000000 00:00 0
143f1000-14df1000 rw-p 00000000 00:00 0
14df1000-14df2000 ---p 00000000 00:00 0
14df2000-157f2000 rw-p 00000000 00:00 0
157f2000-157f3000 ---p 00000000 00:00 0
157f3000-161f3000 rw-p 00000000 00:00 0
161f3000-161f4000 ---p 00000000 00:00 0
161f4000-16bf4000 rw-p 00000000 00:00 0
16bf4000-16bf5000 ---p 00000000 00:00 0
16bf5000-175f5000 rw-p 00000000 00:00 0
175f5000-175f6000 ---p 00000000 00:00 0
175f6000-17ff6000 rw-p 00000000 00:00 0
17ff6000-17ff7000 ---p 00000000 00:00 0
17ff7000-189f7000 rw-p 00000000 00:00 0
189f7000-189f8000 ---p 00000000 00:00 0
189f8000-193f8000 rw-p 00000000 00:00 0
193f8000-193f9000 ---p 00000000 00:00 0
193f9000-19df9000 rw-p 00000000 00:00 0
19df9000-19dfa000 ---p 00000000 00:00 0
19dfa000-1a7fa000 rw-p 00000000 00:00 0
1a7fa000-1a7fb000 ---p 00000000 00:00 0
1a7fb000-1b1fb000 rw-p 00000000 00:00 0
1b1fb000-1b1fc000 ---p 00000000 00:00 0
1b1fc000-1bbfc000 rw-p 00000000 00:00 0
1bbfc000-1bbfd000 ---p 00000000 00:00 0
1bbfd000-1c5fd000 rw-p 00000000 00:00 0
1c5fd000-1c5fe000 ---p 00000000 00:00 0
1c5fe000-1cffe000 rw-p 00000000 00:00 0
1cffe000-1cfff000 ---p 00000000 00:00 0
1cfff000-1d9ff000 rw-p 00000000 00:00 0
1d9ff000-1da00000 ---p 00000000 00:00 0
1da00000-1e400000 rw-p 00000000 00:00 0
1e400000-1e500000 rw-p 00000000 00:00 0
1e5fe000-1e5ff000 ---p 00000000 00:00 0
1e5ff000-1efff000 rw-p 00000000 00:00 0
1efff000-1f000000 ---p 00000000 00:00 0
1f000000-1fa00000 rw-p 00000000 00:00 0
1fa00000-1fb00000 rw-p 00000000 00:00 0
1fbdd000-1fbde000 ---p 00000000 00:00 0
1fbde000-205de000 rw-p 00000000 00:00 0
205de000-205df000 ---p 00000000 00:00 0
205df000-20fdf000 rw-p 00000000 00:00 0
20fdf000-20fe0000 ---p 00000000 00:00 0
20fe0000-219e0000 rw-p 00000000 00:00 0
219e0000-219e1000 ---p 00000000 00:00 0
219e1000-223e1000 rw-p 00000000 00:00 0
223e1000-223e2000 ---p 00000000 00:00 0
223e2000-22de2000 rw-p 00000000 00:00 0
22de2000-22de3000 ---p 00000000 00:00 0
22de3000-237e3000 rw-p 00000000 00:00 0
237e3000-237e4000 ---p 00000000 00:00 0
237e4000-241e4000 rw-p 00000000 00:00 0
241e4000-241e5000 ---p 00000000 00:00 0
241e5000-24be5000 rw-p 00000000 00:00 0
24be5000-24be6000 ---p 00000000 00:00 0
24be6000-255e6000 rw-p 00000000 00:00 0 [New Thread 0x12dfdb70 (LWP 6880)]
[Thread 0x14df0b70 (LWP 6879) exited]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x1bbfbb70 (LWP 6792)]
0x00130424 in __kernel_vsyscall ()
(gdb) bt
#0  0x00130424 in __kernel_vsyscall ()
#1  0x002faaf1 in raise () from /lib/libc.so.6
#2  0x002fc3ca in abort () from /lib/libc.so.6
#3  0x003385d5 in __libc_message () from /lib/libc.so.6
#4  0x0033ea31 in malloc_printerr () from /lib/libc.so.6
#5  0x005430fd in my_free (ptr=0x96c5f3f0) at /tmp/mysql-5.6.11/mysys/my_malloc.c:137
#6  0x004a9f5d in myodbc_end () from /myodbc/lib/libmyodbc5w.so
#7  0x004ae6cd in my_SQLFreeEnv () from /myodbc/lib/libmyodbc5w.so
#8  0x004af9fd in SQLFreeHandle () from /myodbc/lib/libmyodbc5w.so
#9  0x0013c69c in release_env (connection=0x408af3b0) at SQLConnect.c:2458
#10 0x0013d370 in __disconnect_part_one (connection=0x408af3b0) at SQLConnect.c:2556
#11 0x001406da in SQLConnect (connection_handle=0x408af3b0, server_name=0xbffff183 "dsn__mysql__test", name_length1=-3,
    user_name=0xbffff194 "root", name_length2=-3, authentication=0xbffff199 "mysql", name_length3=-3) at SQLConnect.c:4215
#12 0x08048955 in thread (c=0xbfffd79c) at test.cpp:66
#13 0x00466a09 in start_thread () from /lib/libpthread.so.0
#14 0x003ad00e in clone () from /lib/libc.so.6

        经多次测试后,崩溃主要就是如上两种情况。从崩溃信息来看,个人感觉已经与unixODBC没有关系了,而是mysql的问题。
        接着我测试了5.6.11、5.6.10、5.5.9、5.5.61四个版本,问题依旧,然后又测试了5.5.30版本的mariadb(原mysql核心团队基于mysql分支开发的数据库,与mysql兼容),还是崩溃。
        难道没法了????准备明天使用unixODBC基于FreeTDS驱动连接SQL Server数据库,换一种数据库先看一结果,然后再回过头来看这个问题。
        继续关注该问题。
  评论这张
 
阅读(527)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018