Public bug reported: Fresh install dapper 6.06.2 with latest updates. Running MySQL Version: 5.0.22-0ubuntu6.06.11 on the system.
Using the default my.cnf with one setting changed: thread_stack = 265K Running the following MySQL command: mysql> SELECT 0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0; Then we get the error: ERROR 2013 (HY000): Lost connection to MySQL server during query >From syslog, it show: Jun 30 10:00:39 ubuntu mysqld[14953]: mysqld got signal 11; Jun 30 10:00:39 ubuntu mysqld[14953]: This could be because you hit a bug. It is also possible that this binary Jun 30 10:00:39 ubuntu mysqld[14953]: or one of the libraries it was linked against is corrupt, improperly built, Jun 30 10:00:39 ubuntu mysqld[14953]: or misconfigured. This error can also be caused by malfunctioning hardware. Jun 30 10:00:39 ubuntu mysqld[14953]: We will try our best to scrape up some info that will hopefully help diagnose Jun 30 10:00:39 ubuntu mysqld[14953]: the problem, but since we have already crashed, something is definitely wrong Jun 30 10:00:39 ubuntu mysqld[14953]: and this may fail. Jun 30 10:00:39 ubuntu mysqld[14953]: Jun 30 10:00:39 ubuntu mysqld[14953]: key_buffer_size=16777216 Jun 30 10:00:39 ubuntu mysqld[14953]: read_buffer_size=131072 Jun 30 10:00:39 ubuntu mysqld[14953]: max_used_connections=1 Jun 30 10:00:39 ubuntu mysqld[14953]: max_connections=100 Jun 30 10:00:39 ubuntu mysqld[14953]: threads_connected=1 Jun 30 10:00:39 ubuntu mysqld[14953]: It is possible that mysqld could use up to Jun 30 10:00:39 ubuntu mysqld[14953]: key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 233983 K Jun 30 10:00:39 ubuntu mysqld[14953]: bytes of memory Jun 30 10:00:39 ubuntu mysqld[14953]: Hope that's ok; if not, decrease some variables in the equation. Jun 30 10:00:39 ubuntu mysqld[14953]: Jun 30 10:00:39 ubuntu mysqld[14953]: thd=0x8b0d238 Jun 30 10:00:39 ubuntu mysqld[14953]: Attempting backtrace. You can use the following information to find out Jun 30 10:00:39 ubuntu mysqld[14953]: where mysqld died. If you see no messages after this, something went Jun 30 10:00:39 ubuntu mysqld[14953]: terribly wrong... Jun 30 10:00:39 ubuntu mysqld[14953]: Cannot determine thread, fp=0xb3f54d48, backtrace may not be correct. Jun 30 10:00:39 ubuntu mysqld[14953]: Stack range sanity check OK, backtrace follows: Jun 30 10:00:39 ubuntu mysqld[14953]: 0x818a089 Jun 30 10:00:39 ubuntu mysqld[14953]: 0xffffe420 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x8b2d890 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81d24e4 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81d2877 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81d40cd Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81e6609 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x8279856 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x827b172 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x827afae Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81c2c21 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x819d205 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81a2ce7 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81a32b1 Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81a43ec Jun 30 10:00:39 ubuntu mysqld[14953]: 0x81a4d98 Jun 30 10:00:39 ubuntu mysqld[14953]: 0xb7f1c341 Jun 30 10:00:39 ubuntu mysqld[14953]: 0xb7d6d4ee Jun 30 10:00:39 ubuntu mysqld[14953]: New value of fp=(nil) failed sanity check, terminating stack trace! Jun 30 10:00:39 ubuntu mysqld[14953]: Please read http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved Jun 30 10:00:39 ubuntu mysqld[14953]: stack trace is much more helpful in diagnosing the problem, so please do Jun 30 10:00:39 ubuntu mysqld[14953]: resolve it Jun 30 10:00:39 ubuntu mysqld[14953]: Trying to get some variables. Jun 30 10:00:39 ubuntu mysqld[14953]: Some pointers may be invalid and cause the dump to abort... Jun 30 10:00:39 ubuntu mysqld[14953]: thd->query at 0x8b2c730 = SELECT * FROM (SELECT mu.User FROM mysql.user mu UNION SELECT mu.user FROM mysql.user mu ORDER BY mu.user) a Jun 30 10:00:39 ubuntu mysqld[14953]: thd->thread_id=1 Jun 30 10:00:39 ubuntu mysqld[14953]: The manual page at http://www.mysql.com/doc/en/Crashing.html contains Jun 30 10:00:39 ubuntu mysqld[14953]: information that should help you find out what is causing the crash. Jun 30 10:00:39 ubuntu mysqld_safe[14970]: Number of processes running now: 0 Jun 30 10:00:39 ubuntu mysqld_safe[14972]: restarted Jun 30 10:00:39 ubuntu mysqld[14975]: 090630 10:00:39 InnoDB: Started; log sequence number 0 43655 Jun 30 10:00:39 ubuntu mysqld[14975]: 090630 10:00:39 [Note] Recovering after a crash using /var/log/mysql/mysql-bin Jun 30 10:00:39 ubuntu mysqld[14975]: 090630 10:00:39 [Note] Starting crash recovery... Jun 30 10:00:39 ubuntu mysqld[14975]: 090630 10:00:39 [Note] Crash recovery finished. Jun 30 10:00:39 ubuntu mysqld[14975]: 090630 10:00:39 [Note] /usr/sbin/mysqld: ready for connections. Jun 30 10:00:39 ubuntu mysqld[14975]: Version: '5.0.22-Debian_0ubuntu6.06.11-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Debian Etch distribution Here is some debug info: # gdb /usr/sbin/mysqld GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) q r...@builder:~# gdb /usr/sbin/mysqld | tee /tmp/mysqltrace.txt GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) r Starting program: /usr/sbin/mysqld (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1211894080 (LWP 31517)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 090630 12:51:05 InnoDB: Started; log sequence number 0 43655 090630 12:51:05 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.0.22-Debian_0ubuntu6.06.11-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Debian Etch distribution [New Thread -1241224272 (LWP 31520)] [New Thread -1249616976 (LWP 31521)] [New Thread -1258009680 (LWP 31522)] [New Thread -1266402384 (LWP 31523)] [New Thread -1279702096 (LWP 31524)] [New Thread -1288094800 (LWP 31525)] [New Thread -1296487504 (LWP 31526)] [Thread -1279702096 (zombie) exited] [New Thread -1304880208 (LWP 31527)] [New Thread -1276731472 (LWP 31528)] [New Thread -1277005904 (LWP 31529)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1277005904 (LWP 31529)] 0xb7c7bf00 in vfprintf () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7c7bf00 in vfprintf () from /lib/tls/i686/cmov/libc.so.6 #1 0xb7c9741b in vsprintf () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7c8476b in sprintf () from /lib/tls/i686/cmov/libc.so.6 #3 0x08198b0c in check_stack_overrun () #4 0x0812f7be in Item_func::fix_fields () #5 0x0812f932 in Item_func::fix_fields () #6 0x0812f932 in Item_func::fix_fields () #7 0x0812f932 in Item_func::fix_fields () #8 0x0812f932 in Item_func::fix_fields () --- removed a lot more Item_func::fix_fields messages #849 0x0812f932 in Item_func::fix_fields () #850 0x0812f932 in Item_func::fix_fields () #851 0x0812f932 in Item_func::fix_fields () #852 0x0812f932 in Item_func::fix_fields () #853 0x0812f932 in Item_func::fix_fields () #854 0x0812f932 in Item_func::fix_fields () #855 0x081c19ef in setup_fields () #856 0x081d3b6c in JOIN::prepare () #857 0x081e6a38 in mysql_select () #858 0x081e6d91 in handle_select () #859 0x0819d260 in mysql_execute_command () #860 0x081a2ce7 in mysql_parse () #861 0x081a32b1 in dispatch_command () #862 0x081a43ec in do_command () #863 0x081a4d98 in handle_one_connection () #864 0xb7eb9341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #865 0xb7d0a4ee in clone () from /lib/tls/i686/cmov/libc.so.6 ** Affects: mysql-dfsg-5.0 (Ubuntu) Importance: Undecided Status: New -- MySQL 5.0.22 Crash on Ubuntu 6.06.2 LTS (SELECT 0+0+0...) https://bugs.launchpad.net/bugs/394036 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu. -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
