Error in my_thread_global_end(): 256 threads didn't exit 230:0 0 229:1 0 74:5 0 75:10 0 [New Thread 0x143f4b70 (LWP 4305)] [New Thread 0x139f3b70 (LWP 4306)] 181:3 0 245:0 0 182:4 0 118:8 0 235:1 0 21:43 0 20:43 0 214:2 0 210:5 0 215:2 0 Error in my_thread_global_end(): 275 threads didn't exit [Thread 0x143f4b70 (LWP 4305) exited] [New Thread 0x12ff2b70 (LWP 4307)] 244:0 0 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x2f7f4b70 (LWP 4262)] 0x00340b87 in _int_free () from /lib/libc.so.6 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 0x00340b87 in _int_free () from /lib/libc.so.6 #1 0x005434d4 in my_once_free () at /tmp/mysql-5.6.11/mysys/my_once.c:114 #2 0x0054276a in my_end (infoflag=4) at /tmp/mysql-5.6.11/mysys/my_init.c:160 #3 0x004a9fad in myodbc_end () from /myodbc/lib/libmyodbc5w.so #4 0x004ae6cd in my_SQLFreeEnv () from /myodbc/lib/libmyodbc5w.so #5 0x004af9fd in SQLFreeHandle () from /myodbc/lib/libmyodbc5w.so #6 0x0013c69c in release_env (connection=0x8686d68) at SQLConnect.c:2453 #7 0x0013d1ad in __disconnect_part_four (connection=0x8686d68) at SQLConnect.c:2613 #8 0x0013d2b0 in __disconnect_part_three (connection=0x8686d68) at SQLConnect.c:2707 #9 0x00142d4f in SQLDisconnect (connection_handle=0x8686d68) at SQLDisconnect.c:354 #10 0x08048988 in thread (c=0xbfffd59c) at test.cpp:70 #11 0x00466a09 in start_thread () from /lib/libpthread.so.0 #12 0x003ad00e in clone () from /lib/libc.so.6