Hi, Installed compiled mysql-5.1.31 in a centOS 4.4 box. When tried to execute an insert query I get Error 2013. In fact mysql server crashes and restarts.
*mysql> INSERT INTO `session_table` VALUES (2,'2',122,'38507720d9d18aede22a2346571a35e7','2009-03-18 10:50:57'); ERROR 2013 (HY000): Lost connection to MySQL server during query * Any idea why this is happening? I was able to restore a database which has tables with 400000-500000 records without any issues. Attached is the error log. Thanks in advance. Regards, Kurian Thayil.
091218 23:17:17 InnoDB: Assertion failure in thread 2977856416 in file handler/ha_innodb.cc line 3454 InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. InnoDB: If you get repeated assertion failures or crashes, even InnoDB: immediately after the mysqld startup, there may be InnoDB: corruption in the InnoDB tablespace. Please refer to InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-recovery.html InnoDB: about forcing recovery. 091218 23:17:17 - 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=8384512 read_buffer_size=131072 max_used_connections=1 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 = 337716 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0xa9c51a0 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... stack_bottom = 0xb17e71dc thread_stack 0x30000 /usr/local/libexec/mysqld(my_print_stacktrace+0x1d) [0x8513e5d] /usr/local/libexec/mysqld(handle_segfault+0x30d) [0x81fa849] /lib/tls/libpthread.so.0 [0x9e4a98] /lib/tls/libc.so.6(abort+0xe9) [0x851289] /usr/local/libexec/mysqld(ha_innobase::write_row(unsigned char*)+0x40c) [0x8392030] /usr/local/libexec/mysqld(handler::ha_write_row(unsigned char*)+0x59) [0x82de3a5] /usr/local/libexec/mysqld(write_record(THD*, st_table*, st_copy_info*)+0x3f7) [0x82763af] /usr/local/libexec/mysqld(mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates, bool)+0x921) [0x8277e19] /usr/local/libexec/mysqld(mysql_execute_command(THD*)+0x547f) [0x820d8f7] /usr/local/libexec/mysqld(mysql_parse(THD*, char const*, unsigned int, char const**)+0x12c) [0x8211264] /usr/local/libexec/mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0xcd8) [0x8212020] /usr/local/libexec/mysqld(do_command(THD*)+0xd4) [0x8212b3c] /usr/local/libexec/mysqld(handle_one_connection+0x531) [0x8202b65] /lib/tls/libpthread.so.0 [0x9de3cc] /lib/tls/libc.so.6(__clone+0x5e) [0x8f3f0e] Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0xa9ee858 = INSERT INTO `session_table` VALUES (2,'2',122,'38507720d9d18aede22a2346571a35e7','2009-03-18 10:50:57') thd->thread_id=1 thd->killed=NOT_KILLED 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. 091218 23:17:17 mysqld_safe Number of processes running now: 0 091218 23:17:17 mysqld_safe mysqld restarted InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_logfiles! 091218 23:17:17 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... 091218 23:17:17 InnoDB: Started; log sequence number 0 52495 091218 23:17:17 [Note] Event Scheduler: Loaded 0 events 091218 23:17:17 [Note] /usr/local/libexec/mysqld: ready for connections. Version: '5.1.31' socket: '/tmp/mysql/unix.sock' port: 8842 Source distribution
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=arch...@jab.org