Bug #36113 mysql_install_db crashing
Submitted: 16 Apr 2008 6:47 Modified: 28 May 2008 15:01
Reporter: Frederic Meyer Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: General Severity:S1 (Critical)
Version:6.0.4 alpha OS:Linux (2.6.17.13-mm-laptop-3mdvsmp #1 SMP Tue Sep 19 23:36:56 EDT 2006 i686 Intel(R) Xeon(TM) CPU 3.00GHz G)
Assigned to: CPU Architecture:Any

[16 Apr 2008 6:47] Frederic Meyer
Description:
With configure command line:
./configure --prefix=/usr/local/mysql --mandir=/usr/share/man --infodir=/usr/share/info
--enable-local-infile --enable-largefile --with-man --with-docs --with-innodb
--with-csv-storage-engine --with-big-tables --with-mysqlmanager --with-pthread
--enable-thread-safe-client --without-debug --with-server --with-geometry
--with-extra-tools --without-example-storage-engine --with-archive-storage-engine
--without-ndbcluster --enable-shared --enable-assembler --enable-grant-options
--with-gnu-ld --with-tcp-port=3306 --with-unix-socket-path=/tmp/mysql.sock
--with-mysqld-user=mysql --with-zlib-dir=bundled --without-pstack --with-error-inject
--with-fast-mutexes --with-max-indexes=128 --with-ssl=yes --with-query-cache
--with-plugins=partition,archive,blackhole,example,falcon,federated,innobase
--without-plugin-ndbcluster --with-embedded-server --with-embedded-privilege-control
--with-atomic-ops=smp

I tried create grant tables with the command:
/usr/local/share/mysql/bin/mysql_install_db --user=mysql

I obtained this output:
Installing MySQL system tables...
080416  8:44:45 - mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=16777216
read_buffer_size=258048
max_used_connections=0
max_threads=151
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 132585 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0x89226a0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0xb6048b38, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x823bdde
0x82972af
0x828af7d
0x8344739
0x825288e
0x8254d3e
0x82566de
0xb7f58462
0xb7d7082e
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://dev.mysql.com/doc/refman/5.1/en/resolve-stack-dump.html
and follow instructions on how to resolve the stack trace.
Resolved stack trace is much more helpful in diagnosing the
problem, so please do resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8932bc0 = CREATE TEMPORARY TABLE tmp_db LIKE db
thd->thread_id=1
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

Installation of system tables failed!  Examine the logs in
/data/base/schemas for more information.

You can try to start the mysqld daemon with:

    shell> /usr/local/share/mysql/libexec/mysqld --skip-grant &

and use the command line tool /usr/local/share/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/local/share/mysql/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /data/base/schemas that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com/.  Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/local/share/mysql/bin/mysqlbug script!

How to repeat:
I don't know
[16 Apr 2008 7:05] Frederic Meyer
I obtained similar response when i started mysqld_safe.
[16 Apr 2008 7:07] Frederic Meyer
Log file produced by mysqld_safe

Attachment: cb01.corebreaker.com.err (text/plain), 1.90 KiB.

[28 Apr 2008 15:01] Susanne Ebrecht
Many thanks for writing a bug report. Unfortunately I can't reproduce this. Please, can you add strace output here.
[28 May 2008 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".