Bug #1227 mysql_install_db fails with Sig 11
Submitted: 8 Sep 2003 13:16 Modified: 16 Sep 2003 6:54
Reporter: Mike Green Email Updates:
Status: Can't repeat Impact on me:
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:mysql-3.23.57 (Source distribution) OS:Linux (Linux i686 kernel 2.4.20)
Assigned to: CPU Architecture:Any

[8 Sep 2003 13:16] Mike Green
After compiling 3.23.57 with gcc 3.2.1/kernel 2.4.20/glibc 2.3.1 mysql_install_db fails with a signal 11.  
The weird thing is that I can copy existing databases over and mysqld runs fine. 
I compile and run in a vmware host.  Here is some stats from mysqlbug: 
        Running in a vmware host - Linux 2.4.20, i686-autolinux-linux, gcc 3.2.1, 
        glibc 2.3.1 
System: Linux codemunch 2.4.20-0 #1 Fri Jul 18 08:56:28 CDT 2003 i686 unknown 
Architecture: i686 
Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc 
GCC: Reading specs from /usr/lib/gcc-lib/i686-autolinux-linux/3.2.1/specs 
Configured with: ../gcc-3.2.1/configure --prefix=/usr --enable-threads=posix --with-slibdir=/lib 
--enable-__cxa_atexit --enable-clocale=gnu --disable- 
checking --with-gnu-ld --disable-nls --target=i686-autolinux-linux --host=i686-autolinux-linux 
Thread model: posix 
gcc version 3.2.1 
Compilation info: CC='gcc'  CFLAGS='-O2'  CXX='gcc'  CXXFLAGS='-O2 -felide-constructors 
-fno-exceptions -fno-rtti'  LDFLAGS='' 
lrwxrwxrwx    1 root     root           13 Aug 19 10:33 /lib/libc.so.6 -> libc-2.3.1.so 
-rwxr-xr-x    1 root     root      1246464 Jul 18 15:07 /lib/libc-2.3.1.so 
-rw-r--r--    1 root     root      2509146 Jul 18 14:55 /usr/lib/libc.a 
-rw-r--r--    1 root     root          178 Jul 18 14:55 /usr/lib/libc.so 
-rw-r--r--    1 root     root      2356508 Jul 18 15:21 /usr/lib/libc-client.a 
Configure command: ./configure '--prefix=/usr' '--with-mysqld-user=mysql' 
'--with-unix-socket-path=/var/run/mysql/mysql.sock' '--localstatedir=/var/li 
b/mysql' '--with-debug=full' '--with-mysqld-ldflags=-all-static' '--without-test' 'CFLAGS=-O2' 
'CXXFLAGS=-O2 -felide-constructors -fno-exceptions -fno 
-rtti' 'CXX=gcc' 

How to repeat:
Run mysql_install_db after compiling on an identical system.
[8 Sep 2003 13:17] Mike Green
Screen capture of mysql_install_db command

Attachment: mysql_install_db.cap (text/plain), 3.48 KiB.

[8 Sep 2003 13:17] Mike Green
Mysql log from mysql_install_db --log

Attachment: mysql_install_db.log (text/x-log), 162 bytes.

[8 Sep 2003 13:18] Mike Green
Output of stack trace

Attachment: stack_trace_report (text/plain), 301 bytes.

[16 Sep 2003 6:54] Alexander Keremidarski
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to 'Open'.

Thank you for your interest in MySQL.

Looks like mysqld crashes with option --bootstrap

This is common indication of problematic build usually caused by bad combination of gcc and glibc. gcc 3.3 and glibc 2.3.2 are proved to be stable choice. Maybe you can consider upgrading.

However it will be good if we have test case.

Can you try running manually as

mysqld --bootstrap

to see if it will crash?

if yes try runnign it from within gdb and send us backtrace when it crashes