Description:
mysqld crashes with the following stack trace when it gets a DEBUG packet
#0 0x4015f4a6 in strlen () from /lib/libc.so.6
#1 0x4013578e in _IO_vfprintf (s=0x40203700, format=Variable "format" is not av
ailable.
) at vfprintf.c:1450
#2 0x4013b500 in printf (format=0x8f8f8f8f <Address 0x8f8f8f8f out of bounds>)
at printf.c:34
#3 0x083ae7e5 in Event_scheduler::dump_internal_status (this=0x8e15d30)
at event_scheduler.cc:776
#4 0x083b883d in Events::dump_internal_status () at events.cc:1030
#5 0x082c19f0 in mysql_print_status () at sql_test.cc:540
#6 0x0823242e in dispatch_command (command=COM_DEBUG, thd=0x8df6608,
packet=0x8e19f49 "", packet_length=1) at sql_parse.cc:1244
#7 0x082310e8 in do_command (thd=0x8df6608) at sql_parse.cc:666
#8 0x0822fbfb in handle_one_connection (arg=0x8df6608) at sql_connect.cc:1091
#9 0x082285b7 in handle_connection_in_main_thread (thd=0x8df6608)
at mysqld.cc:4224
#10 0x082288f7 in create_new_thread (thd=0x8df6608) at mysqld.cc:4319
#11 0x08228e38 in handle_connections_sockets (arg=0x0) at mysqld.cc:4544
#12 0x08228182 in main (argc=4, argv=0xbfdd1f84) at mysqld.cc:3909
Crashes both debug and non-debug binary.
How to repeat:
$mysqladmin debug
mysqladmin: debug failed; error: 'Lost connection to MySQL server during query'