drop table if exists t5; create table `t5` (`col2` tinytext not null, fulltext (`col2`)) engine=myisam; insert into t5 values ('aaaaaa'); set session myisam_sort_buffer_size=1; repair table t5; sbester@box2:~/mysql/5.1/mysql-advanced-gpl-5.1.44-linux-x86_64-glibc23> valgrind --tool=memcheck --read-var-info=yes --track-origins=yes --leak-check=full --db-attach=yes --num-callers=50 -v --show-reachable=yes ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-grant- tables --skip-name-resolve --log-warnings=2 ==18767== Memcheck, a memory error detector ==18767== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==18767== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==18767== Command: ./bin/mysqld --no-defaults --basedir=. --datadir=./data --skip-grant-tables --skip-name-resolve --log-warnings=2 ==18767== --18767-- Valgrind options: --18767-- --tool=memcheck --18767-- --read-var-info=yes --18767-- --track-origins=yes --18767-- --leak-check=full --18767-- --db-attach=yes --18767-- --num-callers=50 --18767-- -v --18767-- --show-reachable=yes --18767-- Contents of /proc/version: --18767-- Linux version 2.6.18.2-34-default (geeko@buildhost) (gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)) #1 SMP Mon Nov 27 11:46:27 UTC 2006 --18767-- Arch and hwcaps: AMD64, amd64-sse3 --18767-- Page sizes: currently 4096, max supported 4096 --18767-- Valgrind library directory: /usr/local/lib/valgrind --18767-- Reading syms from /home/sbester/mysql/5.1/mysql-advanced-gpl-5.1.44-linux-x86_64-glibc23/bin/mysqld (0x400000) --18767-- warning: addVar: unknown size (backup) --18767-- warning: addVar: unknown size (backup) --18767-- warning: addVar: unknown size (qinfo) --18767-- warning: addVar: unknown size (qinfo) --18767-- warning: addVar: unknown size (file_parser_dummy_hook) --18767-- warning: addVar: unknown size (eq_creator) --18767-- warning: addVar: unknown size (ne_creator) --18767-- warning: addVar: unknown size (gt_creator) --18767-- warning: addVar: unknown size (lt_creator) --18767-- warning: addVar: unknown size (ge_creator) --18767-- Reading syms from /lib64/ld-2.5.so (0x4000000) --18767-- Reading syms from /usr/local/lib/valgrind/memcheck-amd64-linux (0x38000000) --18767-- object doesn't have a dynamic symbol table --18767-- Reading suppressions file: /usr/local/lib/valgrind/default.supp --18767-- REDIR: 0x40144d0 (strlen) redirected to 0x3803e657 (vgPlain_amd64_linux_REDIR_FOR_strlen) --18767-- Reading syms from /usr/local/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a1e000) --18767-- Reading syms from /usr/local/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c20000) ==18767== WARNING: new redirection conflicts with existing -- ignoring it --18767-- new: 0x040144d0 (strlen ) R-> 0x04c23f00 strlen --18767-- REDIR: 0x4013fe0 (index) redirected to 0x4c23d70 (index) --18767-- REDIR: 0x4014190 (strcmp) redirected to 0x4c23fd0 (strcmp) --18767-- Reading syms from /lib64/libpthread-2.5.so (0x4e28000) --18767-- Reading syms from /lib64/libdl-2.5.so (0x5043000) --18767-- Reading syms from /lib64/libcrypt-2.5.so (0x5247000) --18767-- Reading syms from /lib64/libnsl-2.5.so (0x5480000) --18767-- Reading syms from /lib64/libm-2.5.so (0x5697000) --18767-- Reading syms from /lib64/libc-2.5.so (0x58ed000) --18767-- REDIR: 0x59621d0 (memset) redirected to 0x4c24170 (memset) --18767-- REDIR: 0x59637c0 (memcpy) redirected to 0x4c25100 (memcpy) --18767-- REDIR: 0x59613f0 (rindex) redirected to 0x4c23c20 (rindex) --18767-- REDIR: 0x59610f0 (strnlen) redirected to 0x4c23e90 (strnlen) --18767-- REDIR: 0x5962040 (memmove) redirected to 0x4c241c0 (memmove) --18767-- REDIR: 0x5960d50 (strlen) redirected to 0x4c23ec0 (strlen) --18767-- REDIR: 0x595cd70 (calloc) redirected to 0x4c221d2 (calloc) --18767-- REDIR: 0x595d300 (malloc) redirected to 0x4c22eda (malloc) --18767-- Reading syms from /lib64/libgcc_s.so.1 (0x6830000) --18767-- object doesn't have a symbol table --18767-- REDIR: 0x5961ad0 (memchr) redirected to 0x4c24050 (memchr) --18767-- REDIR: 0x595aec0 (free) redirected to 0x4c22aea (free) --18767-- REDIR: 0x5961280 (strncmp) redirected to 0x4c23f20 (strncmp) --18767-- REDIR: 0x5962fe0 (stpcpy) redirected to 0x4c24c20 (stpcpy) --18767-- REDIR: 0x5960330 (strcpy) redirected to 0x4c25380 (strcpy) --18767-- REDIR: 0x595ffd0 (strcmp) redirected to 0x4c23f90 (strcmp) --18767-- REDIR: 0xffffffffff600400 (???) redirected to 0x3803e64d (vgPlain_amd64_linux_REDIR_FOR_vtime) --18767-- REDIR: 0x595fe20 (index) redirected to 0x4c23cb0 (index) --18767-- REDIR: 0x5964450 (rawmemchr) redirected to 0x4c24250 (rawmemchr) --18767-- REDIR: 0x595fc60 (strcat) redirected to 0x4c246d0 (strcat) --18767-- REDIR: 0x5962430 (mempcpy) redirected to 0x4c249a0 (mempcpy) --18767-- REDIR: 0x595d790 (realloc) redirected to 0x4c22f8b (realloc) 100101 13:24:15 [Note] Plugin 'FEDERATED' is disabled. --18767-- REDIR: 0xffffffffff600000 (???) redirected to 0x3803e643 (vgPlain_amd64_linux_REDIR_FOR_vgettimeofday) 100101 13:24:20 InnoDB: Started; log sequence number 0 44243 --18767-- memcheck GC: 1024 nodes, 1024 survivors (100.0%) --18767-- memcheck GC: increase table size to 2048 --18767-- REDIR: 0x5964580 (strchrnul) redirected to 0x4c24220 (strchrnul) --18767-- Reading syms from /lib64/libnss_files-2.5.so (0xdbd6000) 100101 13:24:22 [Note] ./bin/mysqld: ready for connections. Version: '5.1.44-enterprise-gpl-advanced' socket: '/tmp/mysql.sock' port: 3306 MySQL Enterprise Server - Advanced Edition (GPL) ==18767== Thread 11: ==18767== Syscall param pwrite64(buf) points to uninitialised byte(s) ==18767== at 0x4E35A78: ??? (in /lib64/libpthread-2.5.so) ==18767== by 0x897D0B: my_pwrite (my_pread.c:144) ==18767== by 0x8B121F: flush_cached_blocks (mf_keycache.c:3517) ==18767== by 0x8B2F0E: flush_key_blocks_int (mf_keycache.c:3808) ==18767== by 0x8B35CA: flush_key_blocks (mf_keycache.c:4065) ==18767== by 0x868F06: mi_lock_database (mi_locking.c:63) ==18767== by 0x6CFCD9: handler::ha_external_lock(THD*, int) (handler.cc:4613) ==18767== by 0x5D929F: mysql_unlock_tables(THD*, st_mysql_lock*) (lock.cc:786) ==18767== by 0x628FB9: close_thread_tables(THD*) (sql_base.cc:1340) ==18767== by 0x5F7402: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1628) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== Address 0x6a3e054 is 20 bytes inside a block of size 6,854,656 alloc'd ==18767== at 0x4C22F5C: malloc (vg_replace_malloc.c:195) ==18767== by 0x89B391: my_malloc (my_malloc.c:34) ==18767== by 0x8AF933: my_large_malloc (my_largepage.c:64) ==18767== by 0x8B06C7: init_key_cache (mf_keycache.c:436) ==18767== by 0x6D04CA: ha_init_key_cache (handler.cc:3715) ==18767== by 0x5F9E62: process_key_caches(int (*)(char const*, st_key_cache*)) (set_var.cc:4134) ==18767== by 0x5E1A3A: init_server_components() (mysqld.cc:3941) ==18767== by 0x5E5F40: main (mysqld.cc:4419) ==18767== Uninitialised value was created by a heap allocation ==18767== at 0x4C22F5C: malloc (vg_replace_malloc.c:195) ==18767== by 0x89B391: my_malloc (my_malloc.c:34) ==18767== by 0x89B8BA: my_multi_malloc (mulalloc.c:50) ==18767== by 0x8601E4: mi_open (mi_open.c:576) ==18767== by 0x85D429: ha_myisam::open(char const*, int, unsigned int) (ha_myisam.cc:698) ==18767== by 0x6D0DAE: handler::ha_open(st_table*, char const*, int, int) (handler.cc:2090) ==18767== by 0x6322D9: open_table_from_share(THD*, st_table_share*, char const*, unsigned int, unsigned int, unsigned int, st_table*, bool) (table.cc:1886) ==18767== by 0x62C037: open_unireg_entry(THD*, st_table*, TABLE_LIST*, char const*, char*, unsigned int, st_mem_root*, unsigned int) (sql_base.cc:3922) ==18767== by 0x62CE7E: open_table(THD*, TABLE_LIST*, st_mem_root*, bool*, unsigned int) (sql_base.cc:2919) ==18767== by 0x62DD08: open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) (sql_base.cc:4594) ==18767== by 0x62DEEF: open_and_lock_tables_derived(THD*, TABLE_LIST*, bool) (sql_base.cc:5000) ==18767== by 0x662DBB: mysql_insert(THD*, TABLE_LIST*, List&, List >&, List&, List&, enum_duplicates, bool) (mysql_priv.h:1576) ==18767== by 0x5F25DC: mysql_execute_command(THD*) (sql_parse.cc:3183) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== ==18767== ==18767== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n ==18767== Source and destination overlap in memcpy(0x847d118, 0x847d118, 44) ==18767== at 0x4C2516B: memcpy (mc_replace_strmem.c:482) ==18767== by 0x8872AE: _create_index_by_sort (sort.c:287) ==18767== by 0x8816D3: mi_repair_by_sort (mi_check.c:2432) ==18767== by 0x85C1C2: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1148) ==18767== by 0x85C637: ha_myisam::repair(THD*, st_ha_check_opt*) (ha_myisam.cc:1031) ==18767== by 0x6D4A07: handler::ha_repair(THD*, st_ha_check_opt*) (handler.cc:3154) ==18767== by 0x6EE3C2: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*)) (sql_table.cc:4780) ==18767== by 0x6EF230: mysql_repair_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:5041) ==18767== by 0x5F41D6: mysql_execute_command(THD*) (sql_parse.cc:2983) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== ==18767== ==18767== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n ==18767== Syscall param write(buf) points to uninitialised byte(s) ==18767== at 0x4E34DEB: ??? (in /lib64/libpthread-2.5.so) ==18767== by 0x897FC6: my_write (my_write.c:38) ==18767== by 0x899562: my_b_flush_io_cache (mf_iocache.c:1758) ==18767== by 0x8873FC: _create_index_by_sort (sort.c:209) ==18767== by 0x8816D3: mi_repair_by_sort (mi_check.c:2432) ==18767== by 0x85C1C2: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1148) ==18767== by 0x85C637: ha_myisam::repair(THD*, st_ha_check_opt*) (ha_myisam.cc:1031) ==18767== by 0x6D4A07: handler::ha_repair(THD*, st_ha_check_opt*) (handler.cc:3154) ==18767== by 0x6EE3C2: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*)) (sql_table.cc:4780) ==18767== by 0x6EF230: mysql_repair_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:5041) ==18767== by 0x5F41D6: mysql_execute_command(THD*) (sql_parse.cc:2983) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== Address 0x9cd0053 is 19 bytes inside a block of size 65,536 alloc'd ==18767== at 0x4C22F5C: malloc (vg_replace_malloc.c:195) ==18767== by 0x89B391: my_malloc (my_malloc.c:34) ==18767== by 0x898DCF: init_io_cache (mf_iocache.c:244) ==18767== by 0x89AEDE: open_cached_file (mf_cache.c:69) ==18767== by 0x886968: write_keys_varlen (sort.c:702) ==18767== by 0x887289: _create_index_by_sort (sort.c:282) ==18767== by 0x8816D3: mi_repair_by_sort (mi_check.c:2432) ==18767== by 0x85C1C2: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1148) ==18767== by 0x85C637: ha_myisam::repair(THD*, st_ha_check_opt*) (ha_myisam.cc:1031) ==18767== by 0x6D4A07: handler::ha_repair(THD*, st_ha_check_opt*) (handler.cc:3154) ==18767== by 0x6EE3C2: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*)) (sql_table.cc:4780) ==18767== by 0x6EF230: mysql_repair_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:5041) ==18767== by 0x5F41D6: mysql_execute_command(THD*) (sql_parse.cc:2983) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== Uninitialised value was created by a heap allocation ==18767== at 0x4C22F5C: malloc (vg_replace_malloc.c:195) ==18767== by 0x89B391: my_malloc (my_malloc.c:34) ==18767== by 0x887080: _create_index_by_sort (sort.c:161) ==18767== by 0x8816D3: mi_repair_by_sort (mi_check.c:2432) ==18767== by 0x85C1C2: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1148) ==18767== by 0x85C637: ha_myisam::repair(THD*, st_ha_check_opt*) (ha_myisam.cc:1031) ==18767== by 0x6D4A07: handler::ha_repair(THD*, st_ha_check_opt*) (handler.cc:3154) ==18767== by 0x6EE3C2: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*)) (sql_table.cc:4780) ==18767== by 0x6EF230: mysql_repair_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:5041) ==18767== by 0x5F41D6: mysql_execute_command(THD*) (sql_parse.cc:2983) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== ==18767== ==18767== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n ==18767== Use of uninitialised value of size 8 ==18767== at 0x8AEB10: ha_key_cmp (my_handler.c:238) ==18767== by 0x87B853: sort_key_cmp (mi_check.c:3790) ==18767== by 0x8A0ED5: queue_insert (queues.c:215) ==18767== by 0x886065: merge_buffers (sort.c:938) ==18767== by 0x88746C: _create_index_by_sort (sort.c:1048) ==18767== by 0x8816D3: mi_repair_by_sort (mi_check.c:2432) ==18767== by 0x85C1C2: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1148) ==18767== by 0x85C637: ha_myisam::repair(THD*, st_ha_check_opt*) (ha_myisam.cc:1031) ==18767== by 0x6D4A07: handler::ha_repair(THD*, st_ha_check_opt*) (handler.cc:3154) ==18767== by 0x6EE3C2: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*)) (sql_table.cc:4780) ==18767== by 0x6EF230: mysql_repair_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:5041) ==18767== by 0x5F41D6: mysql_execute_command(THD*) (sql_parse.cc:2983) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== ==18767== ==18767== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n ==18767== Invalid read of size 1 ==18767== at 0x8AEB10: ha_key_cmp (my_handler.c:238) ==18767== by 0x87B853: sort_key_cmp (mi_check.c:3790) ==18767== by 0x8A0ED5: queue_insert (queues.c:215) ==18767== by 0x886065: merge_buffers (sort.c:938) ==18767== by 0x88746C: _create_index_by_sort (sort.c:1048) ==18767== by 0x8816D3: mi_repair_by_sort (mi_check.c:2432) ==18767== by 0x85C1C2: ha_myisam::repair(THD*, st_mi_check_param&, bool) (ha_myisam.cc:1148) ==18767== by 0x85C637: ha_myisam::repair(THD*, st_ha_check_opt*) (ha_myisam.cc:1031) ==18767== by 0x6D4A07: handler::ha_repair(THD*, st_ha_check_opt*) (handler.cc:3154) ==18767== by 0x6EE3C2: mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*)) (sql_table.cc:4780) ==18767== by 0x6EF230: mysql_repair_table(THD*, TABLE_LIST*, st_ha_check_opt*) (sql_table.cc:5041) ==18767== by 0x5F41D6: mysql_execute_command(THD*) (sql_parse.cc:2983) ==18767== by 0x5F726D: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5971) ==18767== by 0x5F814D: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1233) ==18767== by 0x5F8A15: do_command(THD*) (sql_parse.cc:874) ==18767== by 0x5EB3B5: handle_one_connection (sql_connect.cc:1127) ==18767== by 0x4E2E09D: start_thread (in /lib64/libpthread-2.5.so) ==18767== by 0x59AE4CC: clone (in /lib64/libc-2.5.so) ==18767== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==18767== ==18767== ==18767== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n 100101 13:24:44 - 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=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 = 338299 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x844abb0 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 = 0x40c70f0 thread_stack 0x40000 ./bin/mysqld(my_print_stacktrace+0x2e)[0x8afb6e] ./bin/mysqld(handle_segfault+0x322)[0x5e12b2] /lib64/libpthread.so.0[0x4e36130] ./bin/mysqld(ha_key_cmp+0x230)[0x8aeb10] ./bin/mysqld[0x87b854] ./bin/mysqld(queue_insert+0x56)[0x8a0ed6] ./bin/mysqld[0x886066] ./bin/mysqld(_create_index_by_sort+0x56d)[0x88746d] ./bin/mysqld(mi_repair_by_sort+0x6f4)[0x8816d4] ./bin/mysqld(_ZN9ha_myisam6repairEP3THDR17st_mi_check_paramb+0x623)[0x85c1c3] ./bin/mysqld(_ZN9ha_myisam6repairEP3THDP15st_ha_check_opt+0xa8)[0x85c638] ./bin/mysqld(_ZN7handler9ha_repairEP3THDP15st_ha_check_opt+0x98)[0x6d4a08] ./bin/mysqld[0x6ee3c3] ./bin/mysqld(_Z18mysql_repair_tableP3THDP10TABLE_LISTP15st_ha_check_opt+0x61)[0x6ef231] ./bin/mysqld(_Z21mysql_execute_commandP3THD+0x29e7)[0x5f41d7] ./bin/mysqld(_Z11mysql_parseP3THDPKcjPS2_+0x35e)[0x5f726e] ./bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xece)[0x5f814e] ./bin/mysqld(_Z10do_commandP3THD+0xe6)[0x5f8a16] ./bin/mysqld(handle_one_connection+0x246)[0x5eb3b6] /lib64/libpthread.so.0[0x4e2e09e] /lib64/libc.so.6(clone+0x6d)[0x59ae4cd] Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x8452160 is an invalid pointer 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. --18767-- Discarding syms at 0xdbd81c0-0xdbddf48 in /lib64/libnss_files-2.5.so due to munmap() ==18767==