(gdb) thread apply all bt Thread 15 (Thread -1330357360 (LWP 5444)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70c320c) at Synchronize.cpp:115 #3 0x0857a706 in SyncObject::wait (this=0xb729ae24, type=Shared, thread=0xb70c320c, sync=0xb0b45238, timeout=0) at SyncObject.cpp:407 #4 0x0857aa3e in SyncObject::lock (this=0xb729ae24, sync=0xb0b45238, type=Shared, timeout=0) at SyncObject.cpp:259 #5 0x08579453 in Sync::lock (this=0xb0b45238, type=Shared) at Sync.cpp:58 #6 0x085b3541 in Database::updateCardinalities (this=0xb729a61c) at Database.cpp:2263 #7 0x085b4c10 in Database::scavenge (this=0xb729a61c) at Database.cpp:1644 #8 0x08611698 in Scavenger::scavenge (this=0xb70a0ce0) at Scavenger.cpp:58 #9 0x086116ab in Scavenger::execute (this=0xb70a0ce0, scheduler=0xb70a0c54) at Scavenger.cpp:68 #10 0x08612c20 in Scheduler::schedule (this=0xb70a0c54) at Scheduler.cpp:136 #11 0x08612d5b in Scheduler::schedule (lpParameter=0xb70a0c54) at Scheduler.cpp:158 #12 0x0858a1ad in Thread::thread (this=0xb70c320c) at Thread.cpp:161 #13 0x0858a3ad in Thread::thread (parameter=0xb70c320c) at Thread.cpp:140 #14 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 ---Type to continue, or q to quit--- #15 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 14 (Thread -1321964656 (LWP 5443)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a8c18) at Synchronize.cpp:115 #3 0x08612d0e in Scheduler::schedule (this=0xb70a0bc8) at Scheduler.cpp:151 #4 0x08612d5b in Scheduler::schedule (lpParameter=0xb70a0bc8) at Scheduler.cpp:158 #5 0x0858a1ad in Thread::thread (this=0xb70a8c18) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a8c18) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 13 (Thread -1311470704 (LWP 5442)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a1f68) at Synchronize.cpp:115 #3 0x0865f4db in Gopher::gopherThread (this=0xb709b0e8) at Gopher.cpp:57 #4 0x0865f657 in Gopher::gopherThread (arg=0xb709b0e8) at Gopher.cpp:37 #5 0x0858a1ad in Thread::thread (this=0xb70a1f68) at Thread.cpp:161 ---Type to continue, or q to quit--- #6 0x0858a3ad in Thread::thread (parameter=0xb70a1f68) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 12 (Thread -1303078000 (LWP 5441)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a1e94) at Synchronize.cpp:115 #3 0x0865f4db in Gopher::gopherThread (this=0xb709b10c) at Gopher.cpp:57 #4 0x0865f657 in Gopher::gopherThread (arg=0xb709b10c) at Gopher.cpp:37 #5 0x0858a1ad in Thread::thread (this=0xb70a1e94) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a1e94) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 11 (Thread -1294685296 (LWP 5440)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a1dc0) at Synchronize.cpp:115 #3 0x0865f4db in Gopher::gopherThread (this=0xb709b130) at Gopher.cpp:57 #4 0x0865f657 in Gopher::gopherThread (arg=0xb709b130) at Gopher.cpp:37 ---Type to continue, or q to quit--- #5 0x0858a1ad in Thread::thread (this=0xb70a1dc0) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a1dc0) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 10 (Thread -1286292592 (LWP 5439)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a1cec) at Synchronize.cpp:115 #3 0x0865f4db in Gopher::gopherThread (this=0xb709b154) at Gopher.cpp:57 #4 0x0865f657 in Gopher::gopherThread (arg=0xb709b154) at Gopher.cpp:37 #5 0x0858a1ad in Thread::thread (this=0xb70a1cec) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a1cec) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 9 (Thread -1277899888 (LWP 5438)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a1c18) at Synchronize.cpp:115 #3 0x0865f4db in Gopher::gopherThread (this=0xb709b178) at Gopher.cpp:57 ---Type to continue, or q to quit--- #4 0x0865f657 in Gopher::gopherThread (arg=0xb709b178) at Gopher.cpp:37 #5 0x0858a1ad in Thread::thread (this=0xb70a1c18) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a1c18) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 8 (Thread -1248531568 (LWP 5437)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb70a1800) at Synchronize.cpp:115 #3 0x085fbd3d in PageWriter::writer (this=0xb709b19c) at PageWriter.cpp:171 #4 0x085fbe6d in PageWriter::writer (arg=0xb709b19c) at PageWriter.cpp:160 #5 0x0858a1ad in Thread::thread (this=0xb70a1800) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a1800) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 7 (Thread -1238037616 (LWP 5436)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f688fc in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864ca0e in Synchronize::sleep (this=0xb70a172c, milliseconds=1000) ---Type to continue, or q to quit--- at Synchronize.cpp:151 #3 0x085b4673 in Database::ticker (this=0xb729a61c) at Database.cpp:1792 #4 0x085b46a9 in Database::ticker (database=0xb729a61c) at Database.cpp:1781 #5 0x0858a1ad in Thread::thread (this=0xb70a172c) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb70a172c) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 6 (Thread -1229644912 (LWP 5435)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb7099fac) at Synchronize.cpp:115 #3 0x0859d5d6 in Cache::ioThread (this=0xb7099c30) at Cache.cpp:1102 #4 0x0859d78b in Cache::ioThread (arg=0xb7099c30) at Cache.cpp:928 #5 0x0858a1ad in Thread::thread (this=0xb7099fac) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb7099fac) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 5 (Thread -1211516016 (LWP 5434)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () ---Type to continue, or q to quit--- from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb7099ed8) at Synchronize.cpp:115 #3 0x0859d5d6 in Cache::ioThread (this=0xb7099c30) at Cache.cpp:1102 #4 0x0859d78b in Cache::ioThread (arg=0xb7099c30) at Cache.cpp:928 #5 0x0858a1ad in Thread::thread (this=0xb7099ed8) at Thread.cpp:161 #6 0x0858a3ad in Thread::thread (parameter=0xb7099ed8) at Thread.cpp:140 #7 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #8 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 4 (Thread -1225241712 (LWP 5432)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7f68676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x0864cac9 in Synchronize::sleep (this=0xb709904c) at Synchronize.cpp:115 #3 0x0857a706 in SyncObject::wait (this=0xb729ad1c, type=Exclusive, thread=0xb709904c, sync=0xb6f7fcd0, timeout=0) at SyncObject.cpp:407 #4 0x0857aa3e in SyncObject::lock (this=0xb729ad1c, sync=0xb6f7fcd0, type=Exclusive, timeout=0) at SyncObject.cpp:259 #5 0x08579453 in Sync::lock (this=0xb6f7fcd0, type=Exclusive) at Sync.cpp:58 #6 0x085b5007 in Database::renameTable (this=0xb729a61c, table=0xb70cd27c, newSchema=0xb73ea1e4 "TEST", newName=0xb73ea230 "#SQL2-1532-1") at Database.cpp:2145 #7 0x0857c10d in Table::rename (this=0xb70cd27c, newSchema=0xb71ce15c "TEST", ---Type to continue, or q to quit--- newName=0xb70e0188 "#SQL2-1532-1") at Table.cpp:3091 #8 0x0856d366 in StorageDatabase::renameTable (this=0xb7099120, storageConnection=0xb70cc144, table=0xb70cd27c, tableName=0xb70e0188 "#SQL2-1532-1", schemaName=0xb71ce15c "TEST") at StorageDatabase.cpp:693 #9 0x08575f2e in StorageTableShare::renameTable (this=0xb70c0d50, storageConnection=0xb70cc144, newName=0xb6f807ff "./test/#sql2-1532-1") at StorageTableShare.cpp:211 #10 0x08565cee in StorageInterface::rename_table (this=0x8e39ba0, from=0xb6f809ff "./test/tj9", to=0xb6f807ff "./test/#sql2-1532-1") at ha_falcon.cpp:1385 #11 0x0845efac in mysql_rename_table (base=0x8d58fa0, old_db=0x8e030e0 "test", old_name=0x8e02ec8 "tj9", new_db=0x8e030e0 "test", new_name=0xb6f81704 "#sql2-1532-1", flags=2) at sql_table.cc:3696 #12 0x08463363 in mysql_alter_table (thd=0x8d7dbf8, new_db=0x8e030e0 "test", new_name=0x8e02ec8 "tj9", create_info=0xb6f81940, table_list=0x8e02ef0, alter_info=0xb6f81c10, order_num=0, order=0x0, ignore=false) at sql_table.cc:6791 #13 0x0831ddba in mysql_execute_command (thd=0x8d7dbf8) at sql_parse.cc:2393 #14 0x083baa90 in Prepared_statement::execute (this=0x8e02228, expanded_query=0xb6f82358, open_cursor=false) at sql_prepare.cc:3100 #15 0x083bae51 in mysql_sql_stmt_execute (thd=0x8d7dbf8) at sql_prepare.cc:2391 #16 0x0831c686 in mysql_execute_command (thd=0x8d7dbf8) at sql_parse.cc:1854 ---Type to continue, or q to quit--- #17 0x084d1da9 in sp_instr_stmt::exec_core (this=0x8deff28, thd=0x8d7dbf8, nextp=0xb6f82f58) at sp_head.cc:2807 #18 0x084d2893 in sp_lex_keeper::reset_lex_and_exec_core (this=0x8deff50, thd=0x8d7dbf8, nextp=0xb6f82f58, open_tables=false, instr=0x8deff28) at sp_head.cc:2649 #19 0x084d2fe0 in sp_instr_stmt::execute (this=0x8deff28, thd=0x8d7dbf8, nextp=0xb6f82f58) at sp_head.cc:2758 #20 0x084d527b in sp_head::execute (this=0x8de60f8, thd=0x8d7dbf8) at sp_head.cc:1195 #21 0x084d5fb9 in sp_head::execute_procedure (this=0x8de60f8, thd=0x8d7dbf8, args=0x8d7f014) at sp_head.cc:1904 #22 0x083231b2 in mysql_execute_command (thd=0x8d7dbf8) at sql_parse.cc:3858 #23 0x08325648 in mysql_parse (thd=0x8d7dbf8, inBuf=0x8dd8b58 "call pj9()", length=10, found_semicolon=0xb6f83fb8) at sql_parse.cc:5410 #24 0x0832619f in dispatch_command (command=COM_QUERY, thd=0x8d7dbf8, packet=0x8dc9c41 "", packet_length=10) at sql_parse.cc:921 #25 0x08327585 in do_command (thd=0x8d7dbf8) at sql_parse.cc:697 #26 0x083137b3 in handle_one_connection (arg=0x8d7dbf8) at sql_connect.cc:1146 #27 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #28 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 3 (Thread -1225041008 (LWP 5430)): #0 0xffffe410 in __kernel_vsyscall () ---Type to continue, or q to quit--- #1 0xb7f6c37a in do_sigwait () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7f6c41f in sigwait () from /lib/tls/i686/cmov/libpthread.so.0 #3 0x0830a0cb in signal_hand (arg=0x0) at mysqld.cc:2510 #4 0xb7f6446b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #5 0xb7d706de in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread -1211512624 (LWP 5426)): #0 0xffffe410 in __kernel_vsyscall () #1 0xb7d692a1 in select () from /lib/tls/i686/cmov/libc.so.6 #2 0x0830affa in handle_connections_sockets (arg=0x0) at mysqld.cc:4473 #3 0x0830e18f in main (argc=32, argv=0xbfa561f4) at mysqld.cc:3989 #0 0xffffe410 in __kernel_vsyscall ()