[sbester@box1 5.1]$ bzr log|head -n 10 ------------------------------------------------------------ revno: 3240 author: sunanda.menon@sun.com committer: MySQL Build Team branch nick: mysql-5.1 timestamp: Tue 2009-12-08 10:26:11 +0100 message: Null-merge from mysql-5.1.40sp1-release ------------------------------------------------------------ revno: 3138.8.21 [sbester@box1 5.1]$ bzr info Repository tree (format: pack-0.92) Location: shared repository: /home/sbester/build/bzr repository branch: . Related branches: parent branch: http://bazaar.launchpad.net/%7Emysql/mysql-server/mysql-5.1/ [sbester@box1 5.1]$ [sbester@box1 5.1]$ uname -a Linux box1.hti.co.za 2.6.18-1.2798.fc6xen #1 SMP Mon Oct 16 15:11:19 EDT 2006 i686 athlon i386 GNU/Linux [sbester@box1 5.1]$ valgrind --version valgrind-3.5.0 [sbester@box1 5.1]$ cat /etc/*release* Fedora Core release 6 (Zod) [sbester@box1 5.1]$ rpm -qa|grep libc glibc-devel-2.5-3 glibc-2.5-3 libcap-1.10-25 libcroco-0.6.1-2.1 glibc-headers-2.5-3 glibc-common-2.5-3 libcap-devel-1.10-25 libcroco-devel-0.6.1-2.1 [sbester@box1 5.1]$ rpm -qa|grep zlib zlib-1.2.3-3 zlib-devel-1.2.3-3 jzlib-1.0.7-4jpp.1 [sbester@box1 5.1]$ [sbester@box1 5.1]$ file ./sql/mysqld ./sql/mysqld: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped Built using: ./BUILD/compile-pentium-debug-max Run under valgrind using: [sbester@box1 5.1]$ valgrind --tool=memcheck --track-origins=yes --leak-check=full --db-attach=no -v --show-reachable=yes ./sql/mysqld --no-defaults --basedir=./ --language=./sql/share/english --datadir=/home/sbester/mysql/5.1/mysql-advanced-gpl-5.1.41-linux-i686-glibc23/data --innodb_flush_log_at_trx_commit=0 --skip-name-resolve --skip-grant-tables --open-files-limit=20000 --table_open_cache=10 ==30125== Invalid read of size 1 ==30125== at 0x12BE99: crc32 (in /usr/lib/libz.so.1.2.3) ==30125== by 0x85B7946: my_checksum (checksum.c:39) ==30125== by 0x83B5421: mysql_checksum_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:7921) ==30125== by 0x826E347: mysql_execute_command(THD*) (sql_parse.cc:2969) ==30125== by 0x8275552: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5970) ==30125== by 0x8276CC0: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1231) ==30125== by 0x8277F97: do_command(THD*) (sql_parse.cc:872) ==30125== by 0x8263D5B: handle_one_connection (sql_connect.cc:1127) ==30125== by 0x4893DA: start_thread (in /lib/libpthread-2.5.so) ==30125== by 0x3D606D: clone (in /lib/libc-2.5.so) ==30125== Address 0xa5a5a5a5 is not stack'd, malloc'd or (recently) free'd ==30125== 091031 12:50:54 - 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. Version: '5.1.43-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution Warning: Found locks from different threads in write: after waking up waiters Warning: Found locks from different threads in write: start of release lock Warning: Found locks from different threads in write: after waking up waiters Warning: Found locks from different threads in write: after waking up waiters Warning: Found locks from different threads in write: after waking up waiters Warning: Found locks from different threads in write: start of release lock Version: '5.1.43-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution 091031 12:55:25 [ERROR] Got error 128 when reading table './test/table0001' query failed '/*extreme*/alter table `table0001` engine=archive' : 1041 (Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space) (HY000) queries: 000000127 091031 12:59:49 [Note] ./sql/mysqld: ready for connections. Version: '5.1.43-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution ==30261== Warning: silly arg (-218648243) to malloc() ==30261== Warning: silly arg (-2011160539) to malloc() ==30261== Warning: set address range perms: large range [0x6b463028, 0xb7e8814c) (undefined) manually running 'show table status' while testcase runs caused debug assertion: Version: '5.1.43-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution --30307-- REDIR: 0x3726b0 (realloc) redirected to 0x40059bd (realloc) mysqld: my_seek.c:91: my_tell: Assertion `fd >= 0' failed. 091031 13:12:05 - 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=4 max_threads=151 threads_connected=4 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 337726 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x5f23e90 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 = 0x4ea63b8 thread_stack 0x30000 ./sql/mysqld(my_print_stacktrace+0x26)[0x85be7b7] ./sql/mysqld(handle_segfault+0x2ac)[0x825ab18] /lib/libpthread.so.0[0x491218] /lib/libc.so.6(abort+0x101)[0x333591] /lib/libc.so.6(__assert_fail+0xfb)[0x32b38b] ./sql/mysqld(my_tell+0x97)[0x859c791] ./sql/mysqld(do_flush+0x1f4)[0x8476ad2] ./sql/mysqld(azflush+0xa0)[0x8476bdd] ./sql/mysqld(_ZN10ha_archive4infoEj+0xe1)[0x84713e1] ./sql/mysqld[0x83d8e03] ./sql/mysqld(_Z14get_all_tablesP3THDP10TABLE_LISTP4Item+0x87e)[0x83e815e] ./sql/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x29f)[0x83d4d03] ./sql/mysqld(_ZN4JOIN4execEv+0x6c1)[0x82facab] ./sql/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x35f)[0x82f75d3] ./sql/mysqld(_Z13handle_selectP3THDP6st_lexP13select_resultm+0x20c)[0x82fcce6] ./sql/mysqld[0x826b5f1] ./sql/mysqld(_Z21mysql_execute_commandP3THD+0x8f7)[0x826c28f] ./sql/mysqld(_Z11mysql_parseP3THDPKcjPS2_+0x25b)[0x8275553] ./sql/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xb0d)[0x8276cc1] ./sql/mysqld(_Z10do_commandP3THD+0x268)[0x8277f98] ./sql/mysqld(handle_one_connection+0x140)[0x8263d5c] /lib/libpthread.so.0[0x4893db] /lib/libc.so.6(clone+0x5e)[0x3d606e] Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x5f64930 is an invalid pointer thd->thread_id=5 thd->killed=NOT_KILLED The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains Version: '5.1.43-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution ==30334== Thread 10: ==30334== Conditional jump or move depends on uninitialised value(s) ==30334== at 0x8475F40: read_header (azio.c:338) ==30334== by 0x8476B9A: azflush (azio.c:637) ==30334== by 0x84715B7: ha_archive::info(unsigned int) (ha_archive.cc:1503) ==30334== by 0x83D8E02: get_schema_tables_record(THD*, TABLE_LIST*, st_table*, bool, st_mysql_lex_string*, st_mysql_lex_string*) (sql_show.cc:3718) ==30334== by 0x83E815D: get_all_tables(THD*, TABLE_LIST*, Item*) (sql_show.cc:3487) ==30334== by 0x83D4D02: get_schema_tables_result(JOIN*, enum_schema_table_state) (sql_show.cc:6134) ==30334== by 0x82FACAA: JOIN::exec() (sql_select.cc:1774) ==30334== by 0x82F75D2: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:2440) ==30334== by 0x82FCCE5: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:269) ==30334== by 0x826B5F0: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5051) ==30334== by 0x826C28E: mysql_execute_command(THD*) (sql_parse.cc:2246) ==30334== by 0x8275552: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5970) ==30334== Uninitialised value was created by a stack allocation ==30334== at 0x8476B40: azflush (azio.c:629) ==30334== ==30334== Conditional jump or move depends on uninitialised value(s) ==30334== at 0x84760A5: read_header (azio.c:356) ==30334== by 0x8476B9A: azflush (azio.c:637) ==30334== by 0x84715B7: ha_archive::info(unsigned int) (ha_archive.cc:1503) ==30334== by 0x83D8E02: get_schema_tables_record(THD*, TABLE_LIST*, st_table*, bool, st_mysql_lex_string*, st_mysql_lex_string*) (sql_show.cc:3718) ==30334== by 0x83E815D: get_all_tables(THD*, TABLE_LIST*, Item*) (sql_show.cc:3487) ==30334== by 0x83D4D02: get_schema_tables_result(JOIN*, enum_schema_table_state) (sql_show.cc:6134) ==30334== by 0x82FACAA: JOIN::exec() (sql_select.cc:1774) ==30334== by 0x82F75D2: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:2440) ==30334== by 0x82FCCE5: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:269) ==30334== by 0x826B5F0: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5051) ==30334== by 0x826C28E: mysql_execute_command(THD*) (sql_parse.cc:2246) ==30334== by 0x8275552: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5970) ==30334== Uninitialised value was created by a stack allocation ==30334== at 0x8476B40: azflush (azio.c:629) ==30334== mysql> check table table0000 extended; +----------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +----------------+-------+----------+----------+ | test.table0000 | check | status | OK | +----------------+-------+----------+----------+ 1 row in set (0.08 sec) mysql> check table table0001 extended; +----------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +----------------+-------+----------+----------+ | test.table0001 | check | error | Corrupt | <---- :-0 +----------------+-------+----------+----------+ 1 row in set (2.70 sec) mysql> check table table0002 extended; +----------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +----------------+-------+----------+----------+ | test.table0002 | check | status | OK | +----------------+-------+----------+----------+ 1 row in set (0.73 sec) mysql> check table table0003 extended; +----------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +----------------+-------+----------+----------+ | test.table0003 | check | error | Corrupt | <---- :-0 +----------------+-------+----------+----------+ 1 row in set (0.01 sec)