>Description:
MySQL crashed at final step, when executing script mysql_install_db, with msg:
mysqld got signal 11;

Here is all last output line at finish installation:

        /usr/bin/ginstall -c .libs/mysqlmanager /usr/local/bin/mysqlmanager
        make[2]: Nothing to be done for `install-data-am'.
        make[2]: Leaving directory 
`/var/lib/users/install/install_php_all/mysql-4.0.5-beta/tools'
        make[1]: Leaving directory 
`/var/lib/users/install/install_php_all/mysql-4.0.5-beta/tools'
        make[1]: Entering directory 
`/var/lib/users/install/install_php_all/mysql-4.0.5-beta'
        make[2]: Entering directory 
`/var/lib/users/install/install_php_all/mysql-4.0.5-beta'
        make[2]: Nothing to be done for `install-exec-am'.
        make[2]: Nothing to be done for `install-data-am'.
        make[2]: Leaving directory 
`/var/lib/users/install/install_php_all/mysql-4.0.5-beta'
        make[1]: Leaving directory 
`/var/lib/users/install/install_php_all/mysql-4.0.5-beta'
        
Here is output for 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
        sort_buffer_size=2097144
        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=0x83d78d0
        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:
        0x8088580
        0x822ad2a
        0x8240f27
        0x8097ae1
        0x809a74e
        0x8097900
        0x8092198
        0x8224e8e
        0x82648d4
        ./mysql_install_db: line 1: 21185 Segmentation fault      
/usr/local/libexec/mysqld --bootstrap --skip-grant-tables --basedir=/usr/local 
--datadir=/var/lib/mysql --skip-innodb --skip-bdb
        Installation of grant tables failed!
        
        Examine the logs in /var/lib/mysql for more information.
        You can also try to start the mysqld daemon with:
        /usr/local/libexec/mysqld --skip-grant &
        You can use the command line tool
        /usr/local/bin/mysql to connect to the mysql
        database and look at the grant tables:
        
        shell> /usr/local/bin/mysql -u root mysql
        mysql> show tables
        
        Try 'mysqld --help' if you have problems with paths. Using --log
        gives you a log in /var/lib/mysql 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/bin/mysqlbug script!

I read in log files: 

        021125 01:03:36  mysqld started
        021125  1:03:36  InnoDB: Out of memory in additional memory pool.
        InnoDB: InnoDB will start allocating memory from the OS.
        InnoDB: You may get better performance if you configure a bigger
        InnoDB: value in the MySQL my.cnf file for
        InnoDB: innodb_additional_mem_pool_size.
        InnoDB: The first specified data file ./ibdata1 did not exist:
        InnoDB: a new database to be created!
        021125  1:03:36  InnoDB: Setting file ./ibdata1 size to 10 MB
        InnoDB: Database physically writes the file full: wait...
        021125  1:03:37  InnoDB: Log file ./ib_logfile0 did not exist: new to be 
created
        InnoDB: Setting log file ./ib_logfile0 size to 5 MB
        InnoDB: Database physically writes the file full: wait...
        021125  1:03:38  InnoDB: Log file ./ib_logfile1 did not exist: new to be 
created
        InnoDB: Setting log file ./ib_logfile1 size to 5 MB
        InnoDB: Database physically writes the file full: wait...
        InnoDB: Doublewrite buffer not found: creating new
        InnoDB: Doublewrite buffer created
        InnoDB: Creating foreign key constraint system tables
        InnoDB: Foreign key constraint system tables created
        021125  1:03:39  InnoDB: Started
        021125  1:03:39  Fatal error: Can't open privilege tables: Table 'mysql.host' 
doesn't exist
        021125 01:03:39  mysqld ended

By your references, I tried to resolve by:
        - decreasing values of some variables in my.cnf file
        key_buffer_size to 50000
        read_buffer_size=5000
        (with same result, just memory used difered: 52047 K instead 225791 K.
        - uncomment innodb lines in my.cnf file
        (with same result)
        - try to execute:       /usr/local/libexec/mysqld --skip-grant &
        (result: 
        [7] 21770
        
        [7]+  Stopped                 /usr/local/libexec/mysqld --skip-grant)
        - sure, any command like /usr/local/bin/mysql is unusable, because no table is 
database mysql
        - I not find any solution in MySQL manual section 'Problems running 
mysql_install_db' and related.
        
>How-To-Repeat:
        Try to install mysql-4.0.5-beta as root, from location 
/var/lib/users/install/install_php_all/mysql-4.0.5-beta
        (supose that this path is not critical), with:
        CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions 
-fno-rtti"
        # ./configure --prefix=/usr/local --localstatedir=/var/lib/mysql 
--enable-assembler --with-mysqld-user=mysql --with-mysqld-ldflags=-all-static 
--enable-thread-safe-client --enable-large-files --with-innodb
        # make
        # make install
        (all above is done without errors)
        # cd /usr/local/mysql/bin
        # ./mysql_install_db
        (here is errors)

        Note: I has suposed that I tried to used (wrong?) option: 
--with-mysqld-user=mysql (see configure)
        and tried to reinstall without this. Same result.

>Fix:
        I don't know how
>Submitter-Id:  <submitter ID>
>Originator:    
>Organization:
   Fox Software Company Romania
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      
>Severity:      critical
>Priority:      medium
>Category:      mysql
>Class: sw-bug
>Release:       mysql-4.0.5-beta (Source distribution)

>Environment:
        Intel Pentium III Katmai 450 Mhz / 256 MB Ram, 
        Linux Slackware-current, 
        target: localhost, 
        make -v 3.80
        gcc -v 3.2
System: Linux dev 2.4.19 #1 Sun Aug 18 13:24:13 PDT 2002 i686 unknown
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-slackware-linux/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/usr --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld 
--verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2
Compilation info: CC='gcc'  CFLAGS=''  CXX='g++'  CXXFLAGS=''  LDFLAGS=''  ASFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 Nov 23 04:44 /lib/libc.so.6 -> libc-2.3.1.so
-rwxr-xr-x    1 root     root      1433605 Nov 20 00:33 /lib/libc-2.3.1.so
-rw-r--r--    1 root     root      2424590 Nov 20 00:33 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Nov 20 00:27 /usr/lib/libc.so
Configure command: ./configure --prefix=/usr/local --localstatedir=/var/lib/mysql 
--enable-assembler --with-mysqld-user=mysql --with-mysqld-ldflags=-all-static 
--enable-thread-safe-client --enable-large-files --with-innodb


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to