By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,201 Members | 957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,201 IT Pros & Developers. It's quick & easy.

4.0.14 install problem: mysqld crashes

P: n/a
Description: I've recently compiled mysql 4.0.14 on redhat 8.0.
The installation fails, however, when running mysql_install_db.
I've attached a transcript below.

I gather from searching the 'net that this isn't an entirely
unusual thing to happen, and is likely the result of some
misconfiguration on my part, or perhaps a version incompatability
with my libc. Unfortunately, I haven't seen any concrete suggestions
on how to get past it.

I've studied the installation instructions pretty closely,
experimented with various compilation flags. I just keep getting
the same results.

This should be a pretty vanilla installation. Can someone please
point me in the direction of figuring out what I'm doing wrong?
How-To-Repeat: Geez ... how *not* to repeat it :)
Fix: dunno Submitter-Id: ga**@cotecorner.com
Originator: Gary
Organization: personal use MySQL support: email support
Synopsis: 4.0.14 install problems; mysqld crashes
Severity: minor
Priority: low
Category: mysql
Class: sw-bug
Release: mysql-4.0.14 (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 xeon 2.4.20-19.7 #2 Wed Aug 20 14:21:18 CDT 2003 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-redha
t-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 -fno-exceptions -fno-rtti -felide-constructors' LDFLAGS=''
ASFLAGS=''
LIBC:
lrwxrwxrwx 1 root root 14 Aug 21 17:58 /lib/libc.so.6 ->
libc-2.2.93.so
-rwxr-xr-x 1 root root 1235468 Sep 5 2002 /lib/libc-2.2.93.so
-rw-r--r-- 1 root root 2233342 Sep 5 2002 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 Sep 5 2002 /usr/lib/libc.so
Configure command: ./configure '--prefix=/usr/local/mysql'
'--enable-assembler' '--with-mysqld-ldflags=-all-static' 'CFLAGS=-O3 '
'CXXFLAGS=-O3 -fno-exceptions -fno-rtti -felide-constructors' 'CXX=gcc'

$ ./mysql_install_db

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=8388600
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 =
225791 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=0x83cc2d8
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=0xbf5fea68, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x8089a26
0x82402f8
0x8251796
0x809a0e5
0x809ce2f
0x8099f04
0x8094718
0x823b74d
0x82720ba
../mysql_install_db: line 1: 31298 Segmentation fault
/usr/local/mysql/libexec/mysqld --bootstrap --skip-grant-tables --basedir=/u
sr/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!

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.