(gdb) thread apply all backtrace Thread 14 (Thread 0x40800950 (LWP 691)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadb1800) at Synchronize.cpp:122 #2 0x000000000084d3f6 in Cache::ioThread (this=0x2aaaaadb12c0) at Cache.cpp:922 #3 0x000000000084d549 in Cache::ioThread (arg=0x2aaaaadb181c) at Cache.cpp:744 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadb1800) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadb181c) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 13 (Thread 0x41001950 (LWP 692)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadb1940) at Synchronize.cpp:122 #2 0x000000000084d3f6 in Cache::ioThread (this=0x2aaaaadb12c0) at Cache.cpp:922 #3 0x000000000084d549 in Cache::ioThread (arg=0x2aaaaadb195c) at Cache.cpp:744 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadb1940) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadb195c) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 12 (Thread 0x41802950 (LWP 693)): #0 0x00002b16f811cb0d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c63b3 in Synchronize::sleep (this=0x2aaaaadb57e0, milliseconds=, callersMutex=0x0) at Synchronize.cpp:177 #2 0x00000000008c622f in Synchronize::sleep (this=0x2aaaaadb57fc, milliseconds=1098915968) at Synchronize.cpp:135 #3 0x000000000085bfe3 in Database::ticker (this=0x2aaaaabafbb0) at Database.cpp:1868 #4 0x000000000085c00b in Database::ticker (database=0x2aaaaadb57fc) at Database.cpp:1857 #5 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadb57e0) at Thread.cpp:161 #6 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadb57fc) at Thread.cpp:140 #7 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #8 0x00002b16f96095bd in clone () from /lib/libc.so.6 #9 0x0000000000000000 in ?? () Thread 11 (Thread 0x42003950 (LWP 694)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadbd8f0) at Synchronize.cpp:122 #2 0x000000000088d0f6 in PageWriter::writer (this=0x2aaaaad3f920) at PageWriter.cpp:171 #3 0x000000000088d1bf in PageWriter::writer (arg=0x2aaaaadbd90c) at PageWriter.cpp:160 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadbd8f0) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadbd90c) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 10 (Thread 0x42804950 (LWP 695)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadbdfb0) at Synchronize.cpp:122 #2 0x00000000008d24c3 in Gopher::gopherThread (this=0x2aaaaadb2458) at Gopher.cpp:58 #3 0x00000000008d262f in Gopher::gopherThread (arg=0x2aaaaadbdfcc) at Gopher.cpp:37 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadbdfb0) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadbdfcc) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 9 (Thread 0x43005950 (LWP 696)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadbe0f0) at Synchronize.cpp:122 #2 0x00000000008d24c3 in Gopher::gopherThread (this=0x2aaaaadb2418) at Gopher.cpp:58 #3 0x00000000008d262f in Gopher::gopherThread (arg=0x2aaaaadbe10c) at Gopher.cpp:37 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadbe0f0) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadbe10c) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 8 (Thread 0x43806950 (LWP 697)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadbe230) at Synchronize.cpp:122 #2 0x00000000008d24c3 in Gopher::gopherThread (this=0x2aaaaadb23d8) at Gopher.cpp:58 #3 0x00000000008d262f in Gopher::gopherThread (arg=0x2aaaaadbe24c) at Gopher.cpp:37 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadbe230) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadbe24c) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 7 (Thread 0x44007950 (LWP 698)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadbe370) at Synchronize.cpp:122 #2 0x00000000008d24c3 in Gopher::gopherThread (this=0x2aaaaadb2398) at Gopher.cpp:58 #3 0x00000000008d262f in Gopher::gopherThread (arg=0x2aaaaadbe38c) at Gopher.cpp:37 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadbe370) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadbe38c) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 6 (Thread 0x44808950 (LWP 699)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadbe4b0) at Synchronize.cpp:122 #2 0x00000000008d24c3 in Gopher::gopherThread (this=0x2aaaaadb2358) at Gopher.cpp:58 #3 0x00000000008d262f in Gopher::gopherThread (arg=0x2aaaaadbe4cc) at Gopher.cpp:37 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadbe4b0) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadbe4cc) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 5 (Thread 0x45009950 (LWP 700)): #0 0x00002b16f811c889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c64ca in Synchronize::sleep (this=0x2aaaaadd94a0) at Synchronize.cpp:122 #2 0x000000000089c9d4 in Scheduler::schedule (this=0x2aaaaadb2b40) at Scheduler.cpp:151 #3 0x000000000089ca0b in Scheduler::schedule (lpParameter=0x2aaaaadd94bc) at Scheduler.cpp:158 #4 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadd94a0) at Thread.cpp:161 #5 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadd94bc) at Thread.cpp:140 #6 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #7 0x00002b16f96095bd in clone () from /lib/libc.so.6 #8 0x0000000000000000 in ?? () Thread 4 (Thread 0x4580a950 (LWP 701)): #0 0x00002b16f811cb0d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000008c63b3 in Synchronize::sleep (this=0x2aaaaadefe20, milliseconds=, callersMutex=0x0) at Synchronize.cpp:177 #2 0x00000000008c622f in Synchronize::sleep (this=0x2aaaaadefe3c, milliseconds=1166057536) at Synchronize.cpp:135 #3 0x000000000089c9c5 in Scheduler::schedule (this=0x2aaaaadb2eb8) at Scheduler.cpp:149 #4 0x000000000089ca0b in Scheduler::schedule (lpParameter=0x2aaaaadefe3c) at Scheduler.cpp:158 #5 0x000000000083e7b0 in Thread::thread (this=0x2aaaaadefe20) at Thread.cpp:161 #6 0x000000000083e91f in Thread::thread (parameter=0x2aaaaadefe3c) at Thread.cpp:140 #7 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #8 0x00002b16f96095bd in clone () from /lib/libc.so.6 #9 0x0000000000000000 in ?? () Thread 3 (Thread 0x4584b950 (LWP 702)): #0 0x00002b16f8120089 in do_sigwait () from /lib/libpthread.so.0 #1 0x00002b16f812012d in sigwait () from /lib/libpthread.so.0 #2 0x000000000065dc90 in signal_hand (arg=) at mysqld.cc:2824 #3 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #4 0x00002b16f96095bd in clone () from /lib/libc.so.6 #5 0x0000000000000000 in ?? () Thread 2 (Thread 0x4588c950 (LWP 719)): #0 0x00002b16f95db241 in nanosleep () from /lib/libc.so.6 #1 0x00002b16f95db064 in sleep () from /lib/libc.so.6 #2 0x00000000009b997b in my_write (Filedes=36, Buffer=0x1313768 "�\001", Count=45056, MyFlags=36) at my_write.c:60 #3 0x00000000009bf932 in my_b_flush_io_cache (info=0x12f0dd0, need_append_buffer_lock=0) at mf_iocache.c:1752 #4 0x00000000009c0042 in _my_b_write (info=0x12f0dd0, Buffer=0x4588a680 "", Count=5) at mf_iocache.c:1508 #5 0x0000000000983820 in _mi_write_static_record (info=0x12f0bc8, record=0x12f0a08 "�\001", '�' , "(\n/\001") at mi_statrec.c:58 #6 0x000000000098df88 in mi_write (info=0x12f0bc8, record=0x12f0a08 "�\001", '�' , "(\n/\001") at mi_write.c:146 #7 0x000000000099b7ee in ha_myisam::write_row (this=0x12f07d8,buf=0x12f0a08 "�\001", '�' , "(\n/\001") at ha_myisam.cc:708 #8 0x00000000007609d1 in handler::ha_write_row (this=0x12f07d8, buf=0x12f0a08 "�\001", '�' , "(\n/\001") at handler.cc:5308 #9 0x00000000006e5a56 in write_record (thd=0x127d828, table=0x12efef8, info=0x12e8aa8) at sql_insert.cc:1566 #10 0x00000000006e5e11 in select_insert::send_data (this=0x12e8a70, values=@0x12f3288) at sql_insert.cc:3074 #11 0x00000000006bc7b6 in end_send (join=0x12f1868, join_tab=, end_of_records=false) at sql_select.cc:14401 #12 0x00000000006d480a in evaluate_join_record (join=0x12f1868, join_tab=0x12e9880, error=) at sql_select.cc:13563 #13 0x00000000006d49e0 in sub_select (join=0x12f1868, join_tab=0x12e9880, end_of_records=) at sql_select.cc:13347 #14 0x00000000006d625c in do_select (join=0x12f1868, fields=0x12f3288, table=0x0, procedure=0x0) at sql_select.cc:13087 #15 0x00000000006e2980 in JOIN::exec (this=0x12f1868) at sql_select.cc:2739 #16 0x00000000006e34ca in mysql_select (thd=0x127d828, rref_pointer_array=0x127f868, tables=0x12e8700, wild_num=1, fields=, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=3489942016, result=0x12e8a70, unit=0x127f240, select_lex=0x127f680) at sql_select.cc:2927 #17 0x00000000006e3a0a in handle_select (thd=0x127d828, lex=0x127f1a0, result=0x12e8a70, setup_tables_done_option=1073741824) at sql_select.cc:289 #18 0x000000000066f7ef in mysql_execute_command (thd=0x127d828) at sql_parse.cc:2982 #19 0x00000000006744da in mysql_parse (thd=0x127d828, inBuf=0x12e8198 "insert into t1 select * from t1", length=31, found_semicolon=0x4588c028) at sql_parse.cc:5752 #20 0x000000000067532e in dispatch_command (command=COM_QUERY, thd=0x127d828, packet=0x12d8689 "insert into t1 select * from t1", packet_length=31) at sql_parse.cc:1045 #21 0x000000000067623f in do_command (thd=0x127d828) at sql_parse.cc:722 #22 0x0000000000666dc4 in handle_one_connection (arg=) at sql_connect.cc:1134 #23 0x00002b16f8118017 in start_thread () from /lib/libpthread.so.0 #24 0x00002b16f96095bd in clone () from /lib/libc.so.6 #25 0x0000000000000000 in ?? () Thread 1 (Thread 0x2b16f988cf30 (LWP 689)): #0 0x00002b16f96032f2 in select () from /lib/libc.so.6 #1 0x000000000065e61b in handle_connections_sockets (arg=) at mysqld.cc:5003 #2 0x000000000066310c in main (argc=, argv=) at mysqld.cc:4511 #0 0x00002b16f96032f2 in select () from /lib/libc.so.6