101115 12:46:16 [Note] ./bin/mysqld: ready for connections. Version: '5.5.8-rc-valgrind-max-debug' socket: '/tmp/mysql.sock' port: 3307 Source distribution ==13485== Thread 24: ==13485== Invalid read of size 1 ==13485== at 0x4A06A68: memcpy (mc_replace_strmem.c:497) ==13485== by 0xA7C028: strmake_root (my_alloc.c:423) ==13485== by 0xA7BFD9: strdup_root (my_alloc.c:414) ==13485== by 0x5C9154: Query_arena::strdup(char const*) (sql_class.h:644) ==13485== by 0x651A85: mysqld_list_processes(THD*, char const*, bool) (sql_show.cc:1832) ==13485== by 0x5F174D: mysql_execute_command(THD*) (sql_parse.cc:3008) ==13485== by 0x5F83EA: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5512) ==13485== by 0x5EC791: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1029) ==13485== by 0x5EBDB3: do_command(THD*) (sql_parse.cc:769) ==13485== by 0x6CB459: do_handle_one_connection(THD*) (sql_connect.cc:745) ==13485== by 0x6CB293: handle_one_connection (sql_connect.cc:684) ==13485== by 0x30E1807760: start_thread (pthread_create.c:301) ==13485== by 0x1AC3670F: ??? ==13485== Address 0x15c68fb1 is 17 bytes inside a block of size 19 free'd ==13485== at 0x4A04D72: free (vg_replace_malloc.c:325) ==13485== by 0xA85F17: my_free (my_malloc.c:128) ==13485== by 0x5CEF48: mysql_change_db_impl(THD*, st_mysql_lex_string*, unsigned long, charset_info_st*) (sql_db.cc:1293) ==13485== by 0x5CF580: mysql_change_db(THD*, st_mysql_lex_string const*, bool) (sql_db.cc:1581) ==13485== by 0x5F1880: mysql_execute_command(THD*) (sql_parse.cc:3036) ==13485== by 0x5F83EA: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5512) ==13485== by 0x5EC791: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1029) ==13485== by 0x5EBDB3: do_command(THD*) (sql_parse.cc:769) ==13485== by 0x6CB459: do_handle_one_connection(THD*) (sql_connect.cc:745) ==13485== by 0x6CB293: handle_one_connection (sql_connect.cc:684) ==13485== by 0x30E1807760: start_thread (pthread_create.c:301) ==13485== by 0x1AB3270F: ??? ==13485== ==13485== ==13485== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y ==13485== starting debugger with cmd: /usr/bin/gdb -nw /proc/13556/fd/10000 13556 GNU gdb (GDB) Fedora (7.1-18.fc13) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /proc/13556/fd/10000...done. Attaching to program: /proc/13556/fd/10000, process 13556 Reading symbols from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so...done. Loaded symbols for /usr/lib64/valgrind/vgpreload_core-amd64-linux.so Reading symbols from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so...done. Loaded symbols for /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so Reading symbols from /lib64/libpthread.so.0...Reading symbols from /usr/lib/debug/lib64/libpthread-2.12.so.debug...done. [Thread debugging using libthread_db enabled] done. Loaded symbols for /lib64/libpthread.so.0 Reading symbols from /lib64/libz.so.1...Reading symbols from /usr/lib/debug/lib64/libz.so.1.2.3.debug...done. done. Loaded symbols for /lib64/libz.so.1 Reading symbols from /lib64/libm.so.6...Reading symbols from /usr/lib/debug/lib64/libm-2.12.so.debug...done. done. Loaded symbols for /lib64/libm.so.6 Reading symbols from /lib64/librt.so.1...Reading symbols from /usr/lib/debug/lib64/librt-2.12.so.debug...done. done. Loaded symbols for /lib64/librt.so.1 Reading symbols from /lib64/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib64/libcrypt-2.12.so.debug...done. done. Loaded symbols for /lib64/libcrypt.so.1 Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug/lib64/libdl-2.12.so.debug...done. done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/lib64/libc-2.12.so.debug...done. done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib64/libfreebl3.so...Reading symbols from /usr/lib/debug/lib64/libfreebl3.so.debug...done. done. Loaded symbols for /lib64/libfreebl3.so Reading symbols from /lib64/libgcc_s.so.1...Reading symbols from /usr/lib/debug/lib64/libgcc_s-4.4.4-20100630.so.1.debug...done. done. Loaded symbols for /lib64/libgcc_s.so.1 0x0000000004a06a68 in _vgrZU_libcZdsoZa_memcpy (dst=0x15efce60, src=, len=) at mc_replace_strmem.c:497 497 mc_replace_strmem.c: No such file or directory. in mc_replace_strmem.c (gdb) bt #0 0x0000000004a06a68 in _vgrZU_libcZdsoZa_memcpy (dst=0x15efce60, src=, len=) at mc_replace_strmem.c:497 #1 0x0000000000a7c029 in strmake_root (root=0x15aeee20, str=0x15c68fa0 "information_schema", len=18) at /home/sbester/build/bzr/mysql-5.5-security/mysys/my_alloc.c:423 #2 0x0000000000a7bfda in strdup_root (root=0x15aeee20, str=0x15c68fa0 "information_schema") at /home/sbester/build/bzr/mysql-5.5-security/mysys/my_alloc.c:414 #3 0x00000000005c9155 in Query_arena::strdup (this=0x15aebfe8, str=0x15c68fa0 "information_schema") at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_class.h:644 #4 0x0000000000651a86 in mysqld_list_processes (thd=0x15aebfd0, user=0x0, verbose=false) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_show.cc:1832 #5 0x00000000005f174e in mysql_execute_command (thd=0x15aebfd0) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_parse.cc:3008 #6 0x00000000005f83eb in mysql_parse (thd=0x15aebfd0, rawbuf=0x15efbff0 "show processlist", length=16, parser_state=0x1ac35730) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_parse.cc:5512 #7 0x00000000005ec792 in dispatch_command (command=COM_QUERY, thd=0x15aebfd0, packet=0x15aef3f1 "", packet_length=16) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_parse.cc:1029 #8 0x00000000005ebdb4 in do_command (thd=0x15aebfd0) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_parse.cc:769 #9 0x00000000006cb45a in do_handle_one_connection (thd_arg=0x15aebfd0) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_connect.cc:745 #10 0x00000000006cb294 in handle_one_connection (arg=0x15aebfd0) at /home/sbester/build/bzr/mysql-5.5-security/sql/sql_connect.cc:684 #11 0x00000030e1807761 in start_thread (arg=0x1ac36710) at pthread_create.c:301 #12 0x00000030e14e14ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 (gdb) frame 1 #1 0x0000000000a7c029 in strmake_root (root=0x15aeee20, str=0x15c68fa0 "information_schema", len=18) at /home/sbester/build/bzr/mysql-5.5-security/mysys/my_alloc.c:423 423 memcpy(pos,str,len); (gdb) list 418 char *strmake_root(MEM_ROOT *root, const char *str, size_t len) 419 { 420 char *pos; 421 if ((pos=alloc_root(root,len+1))) 422 { 423 memcpy(pos,str,len); 424 pos[len]=0; 425 } 426 return pos; 427 } (gdb)