Bug #6325 mysql crash on exit
Submitted: 29 Oct 2004 15:57 Modified: 19 Jan 2005 23:02
Reporter: Enrique Garcia Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:3.23.58 OS:NetBSD 1.6.2_RC3
Assigned to: CPU Architecture:Any

[29 Oct 2004 15:57] Enrique Garcia
Description:
This bug is similar to the #1126, with the diference in the version of the mysql-server.
Mysql crash on exit, this is the info:

matrix% mysql -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 40916 to server version: 3.23.58-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
mysql> exit
Bye
matrix% mysql -p sic
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 40917 to server version: 3.23.58-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> exit
Segmentation fault (core dumped)
matrix% dgb mysql  mysql.core
dgb: Command not found.
matrix% gdb mysql  mysql.core
GNU gdb 5.0nb1
Copyright 2000 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 "i386--netbsdelf"...(no debugging symbols found)...
Core was generated by `mysql'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/libedit.so.2...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libedit.so.2
Reading symbols from /usr/lib/libcurses.so.5...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libcurses.so.5
Reading symbols from /usr/lib/libtermcap.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libtermcap.so.0
Reading symbols from /usr/pkg/lib/mysql/libmysqlclient.so.10...
(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/mysql/libmysqlclient.so.10
Reading symbols from /usr/lib/libz.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.0
Reading symbols from /usr/lib/libcrypt.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.0
Reading symbols from /usr/lib/libstdc++.so.4...(no debugging symbols found)...
---Type <return> to continue, or q <return> to quit---
done.
Loaded symbols for /usr/lib/libstdc++.so.4
Reading symbols from /usr/lib/libm387.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libm387.so.0
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
#0  0x8050802 in dladdr ()
(gdb) bt
#0  0x8050802 in dladdr ()
#1  0x8050863 in dladdr ()
#2  0x804aaa2 in dladdr ()
#3  0x804aa08 in dladdr ()
#4  0x804a480 in free ()
(gdb) q
matrix% uname -a
NetBSD matrix 1.6.2_RC3 NetBSD 1.6.2_RC3 (GENERIC) #2: Mon Jan  5 14:36:15 CST 2004     gallegos@mientras:/usr/obj/sys/arch/i386/compile/GENERIC i386
matrix% pkg_info | grep mysql
pkg_info: disabling PKG_PATH when operating on all packages.
mysql-client-3.23.58 MySQL, a free SQL database (client)
mysql-server-3.23.58 MySQL, a free SQL database (server)

How to repeat:
Enter the mysql server with a database and then exit.
[2 Nov 2004 8:49] Sergey Kostyliov
Is your mysql  builded agaisnt bundled, or  system libedit?
[3 Nov 2004 14:38] Enrique Garcia
The software is not builded against bundled, that is for sure!. And in that way I am not asking solution for a bundled software, nevertheless in a short effort (from my side) to report a bug trying to help made the next generation of sofware better.
[19 Jan 2005 23:02] MySQL Verification Team
I wasn't able to repeat on Slackware box.