bkf pull bk://mysql.bkbits.net/mysql-5.0 make clean aclocal; autoheader libtoolize --automake --force automake --force --add-missing; autoconf (cd innobase; aclocal; autoheader; autoconf; automake) (cd bdb/dist; sh s_all) CC=gcc CFLAGS="-O1 -g -march=pentiumpro" CXX=gcc CXXFLAGS="-O1 -g -march=pentiumpro \ -felide-constructors -fno-exceptions -fno-rtti" ./configure \ --enable-thread-safe-client \ --with-extra-charsets=all \ --enable-assembler \ --with-isam \ --enable-shared \ --with-vio \ --with-innodb \ --with-raid \ --with-comment \ --with-big-tables \ --with-debug=full \ --enable-local-infile \ --with-example-storage-engine \ --with-archive-storage-engine \ --with-csv-storage-engine \ --with-blackhole-storage-engine \ --with-federated-storage-engine \ --with-mysqld-ldflags=-all-static \ --enable-static \ --with-yassl \ --with-named-curses-libs=/lib/libncurses.so.5 \ --prefix=$HOME/server/5.0/mysql-5.0-community \ make make bin-dist then, tar zxvf ./mysql-5.0.46-linux-i686.tar.gz ./scripts/mysql_install_db ./bin/mysqld_safe --skip-grant-tables --log-bin --skip-name-resolve & error log: 070626 12:34:24 mysqld started 070626 12:34:24 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=/home/sbester/server/5.0/mysql-5.0.46-linux-i686/data/www-bin' to avoid this problem. InnoDB: The first specified data file ./ibdata1 did not exist: InnoDB: a new database to be created! 070626 12:34:24 InnoDB: Setting file ./ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 070626 12:34:25 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... 070626 12:34:25 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 070626 12:34:26 InnoDB: Started; log sequence number 0 0 070626 12:34:26 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them 070626 12:34:26 [Note] /home/sbester/server/5.0/mysql-5.0.46-linux-i686/bin/mysqld: ready for connections. Version: '5.0.46-debug-log' socket: '/tmp/mysql.sock' port: 3306 yes mysqld: log.cc:130: int binlog_commit(THD*, bool): Assertion `mysql_bin_log.is_open() && (all || !(thd->options & ((1ULL << 19) | (1ULL << 20))))' failed. 070626 12:35:13 - mysqld got signal 6; 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=8388572 read_buffer_size=131072 max_used_connections=6 max_connections=100 threads_connected=6 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 225788 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd=0x8c57588 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=0xbe1fe498, backtrace may not be correct. Stack range sanity check OK, backtrace follows: 0x80e20c3 handle_segfault + 529 0x83df5ad __pthread_sighandler + 173 0x841a531 __kill + 17 0x83dce7b __pthread_raise + 27 0x841a904 abort + 340 0x8416350 __assert_fail + 224 0x81701bc _Z13binlog_commitP3THDb + 170 0x81b36b8 _Z19ha_commit_one_phaseP3THDb + 156 0x81b3568 _Z15ha_commit_transP3THDb + 838 0x81b39f9 _Z25ha_autocommit_or_rollbackP3THDi + 99 0x8156eac _Z12mysql_insertP3THDP13st_table_listR4ListI4ItemERS3_IS5_ES6_S6_15enum_duplicatesb + 3208 0x80fbd39 _Z21mysql_execute_commandP3THD + 11031 0x8101d6e _Z11mysql_parseP3THDPKcjPS2_ + 348 0x80f7d4c _Z16dispatch_command19enum_server_commandP3THDPcj + 1956 0x80f759d _Z10do_commandP3THD + 529 0x80f66ae handle_one_connection + 874 0x83da481 pthread_start_thread + 225 0x843ae6a __clone + 106 New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://dev.mysql.com/doc/mysql/en/using-stack-trace.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 0x8c6ef50 = insert into t1 values (0) thd->thread_id=6 The manual page at http://www.mysql.com/doc/en/Crashing.html contains information that should help you find out what is causing the crash. You are running a statically-linked LinuxThreads binary on an NPTL system. This can result in crashes on some distributions due to LT/NPTL conflicts. You should either build a dynamically-linked binary, or force LinuxThreads to be used with the LD_ASSUME_KERNEL environment variable. Please consult the documentation for your distribution on how to do that. Number of processes running now: 2 mysqld process hanging, pid 13354 - killed mysqld process hanging, pid 13354 - killed 070626 12:35:13 mysqld restarted 070626 12:35:13 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=/home/sbester/server/5.0/mysql-5.0.46-linux-i686/data/www-bin' to avoid this problem. 070626 12:35:13 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 070626 12:35:13 InnoDB: Starting log scan based on checkpoint at InnoDB: log sequence number 0 78806. InnoDB: Doing recovery: scanned up to log sequence number 0 94278 InnoDB: Transaction 0 941 was in the XA prepared state. InnoDB: 2 transaction(s) which must be rolled back or cleaned up InnoDB: in total 1 row operations to undo InnoDB: Trx id counter is 0 1280 070626 12:35:13 InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percents: 98 99 InnoDB: Apply batch completed InnoDB: Last MySQL binlog file position 0 213, file name /home/sbester/server/5.0/mysql-5.0.46-linux-i686/data/www-bin.000001 InnoDB: Starting in background the rollback of uncommitted transactions 070626 12:35:13 InnoDB: Rolling back trx with id 0 942, 1 rows to undo 070626 12:35:13 InnoDB: Started; log sequence number 0 94278 070626 12:35:13 InnoDB: Starting recovery for XA transactions... 070626 12:35:13 InnoDB: Transaction 0 941 in prepared state after recovery 070626 12:35:13 InnoDB: Transaction contains changes to 1 rows 070626 12:35:13 InnoDB: 1 transactions in prepared state after recovery 070626 12:35:13 [Note] Found 1 prepared transaction(s) in InnoDB 070626 12:35:13 [Note] rollback xid 'MySQLXid\1\0\0\0Z\1\0\0\0\0\0\0' InnoDB: Rolling back of trx id 0 942 completed 070626 12:35:13 InnoDB: Rollback of non-prepared transactions completed 070626 12:35:13 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them 070626 12:35:13 [Note] /home/sbester/server/5.0/mysql-5.0.46-linux-i686/bin/mysqld: ready for connections. Version: '5.0.46-debug-log' socket: '/tmp/mysql.sock' port: 3306 yes sbester@www:~/server/5.0/mysql-5.0.46-linux-i686>