Description:
I'm using MySQL 4.0.20 Linux 8 Source Distribution. It is being installed on this system for the first time : The postinstall (bin/mysql_install_db) procedure doesn't complete due to the following error:
[root@tirgdel38 mysql]# bin/mysql_install_db --user=mysql
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
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=131072
max_used_connections=0
max_connections=100
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 80383 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd=0x838e590
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=0xbf5fea88, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x808a356
0x8238a44
0x8249ee6
0x809b611
0x809e3b7
0x809b298
0x8095850
0x8233e99
0x826b11a
bin/mysql_install_db: line 1: 1960 Segmentation fault /usr/local/mysql/libexec/mysqld --bootstrap --skip-grant-tables --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --skip-innodb --skip-bdb
Installation of grant tables failed!
Examine the logs in /usr/local/mysql/var for more information.
You can also try to start the mysqld daemon with:
/usr/local/mysql/libexec/mysqld --skip-grant &
You can use the command line tool
/usr/local/mysql/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/local/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 /usr/local/mysql/var 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 is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/local/mysql/bin/mysqlbug script!
Here is some stats from mysqlbug:
Release: mysql-4.0.20 (Source distribution)
C compiler: gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
C++ compiler: gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Environment:
<machine, os, target, libraries (multiple lines)>
System: Linux tirgdel38.tirgatg 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Compilation info: CC='gcc' CFLAGS='-O3' CXX='gcc' CXXFLAGS='-O3' LDFLAGS='' ASFLAGS= ''
LIBC:
lrwxrwxrwx 1 root root 14 Jun 13 2003 /lib/libc.so.6 -> libc-2.2.93.so
-rwxr-xr-x 2 root root 1235468 Sep 6 2002 /lib/libc-2.2.93.so
-rw-r--r-- 1 root root 2233342 Sep 6 2002 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 Sep 6 2002 /usr/lib/libc.so
Configure command: ./configure '--prefix=/usr/local/mysql' '--enable-assembler' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--with-unix-socket-path=/usr/local/mysql/temp/mysql.sock' 'CC=gcc' 'CFLAGS=-O3' 'CXXFLAGS=-O3' 'CXX=gcc'
How to repeat:
Run the following commands on an identical system:
groupadd mysql
useradd -g mysql mysql
tar zxvf mysql-4.0.20 .tar.gz
cd mysql-4.0.20
CC=gcc CXX=gcc ./configure --prefix=/usr/local/mysql --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-unix-socket-path=/usr/local/mysql/temp/mysql.sock
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
Description: I'm using MySQL 4.0.20 Linux 8 Source Distribution. It is being installed on this system for the first time : The postinstall (bin/mysql_install_db) procedure doesn't complete due to the following error: [root@tirgdel38 mysql]# bin/mysql_install_db --user=mysql Preparing db table Preparing host table Preparing user table Preparing func table Preparing tables_priv table Preparing columns_priv table Installing all prepared tables 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=131072 max_used_connections=0 max_connections=100 threads_connected=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 80383 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=0x838e590 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=0xbf5fea88, backtrace may not be correct. Stack range sanity check OK, backtrace follows: 0x808a356 0x8238a44 0x8249ee6 0x809b611 0x809e3b7 0x809b298 0x8095850 0x8233e99 0x826b11a bin/mysql_install_db: line 1: 1960 Segmentation fault /usr/local/mysql/libexec/mysqld --bootstrap --skip-grant-tables --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --skip-innodb --skip-bdb Installation of grant tables failed! Examine the logs in /usr/local/mysql/var for more information. You can also try to start the mysqld daemon with: /usr/local/mysql/libexec/mysqld --skip-grant & You can use the command line tool /usr/local/mysql/bin/mysql to connect to the mysql database and look at the grant tables: shell> /usr/local/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 /usr/local/mysql/var 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 is the MySQL email archive. Please check all of the above before mailing us! And if you do mail us, you MUST use the /usr/local/mysql/bin/mysqlbug script! Here is some stats from mysqlbug: Release: mysql-4.0.20 (Source distribution) C compiler: gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) C++ compiler: gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Environment: <machine, os, target, libraries (multiple lines)> System: Linux tirgdel38.tirgatg 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Compilation info: CC='gcc' CFLAGS='-O3' CXX='gcc' CXXFLAGS='-O3' LDFLAGS='' ASFLAGS= '' LIBC: lrwxrwxrwx 1 root root 14 Jun 13 2003 /lib/libc.so.6 -> libc-2.2.93.so -rwxr-xr-x 2 root root 1235468 Sep 6 2002 /lib/libc-2.2.93.so -rw-r--r-- 1 root root 2233342 Sep 6 2002 /usr/lib/libc.a -rw-r--r-- 1 root root 178 Sep 6 2002 /usr/lib/libc.so Configure command: ./configure '--prefix=/usr/local/mysql' '--enable-assembler' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--with-unix-socket-path=/usr/local/mysql/temp/mysql.sock' 'CC=gcc' 'CFLAGS=-O3' 'CXXFLAGS=-O3' 'CXX=gcc' How to repeat: Run the following commands on an identical system: groupadd mysql useradd -g mysql mysql tar zxvf mysql-4.0.20 .tar.gz cd mysql-4.0.20 CC=gcc CXX=gcc ./configure --prefix=/usr/local/mysql --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-unix-socket-path=/usr/local/mysql/temp/mysql.sock make make install cp support-files/my-medium.cnf /etc/my.cnf cd /usr/local/mysql bin/mysql_install_db --user=mysql