Bug #43713 The backup_interruption test fails intermittently
Submitted: 17 Mar 2009 20:22 Modified: 10 Jun 2009 17:03
Reporter: Hema Sridharan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Backup Severity:S3 (Non-critical)
Version:mysql-6.0-backup OS:Any
Assigned to: Rafal Somla CPU Architecture:Any

[17 Mar 2009 20:22] Hema Sridharan
Description:
I pulled a new mysql-6.0-backup tree on 03/17. The backup_interruption test fails sporadically.

How to repeat:
Execute backup_interruption test from mysql-test

/mysql-test: ./mysql-test-run.pl --suite=backup_engines backup_interruption

backup_engines.backup_interruption 'falcon' [ pass ]   9286^M
backup_engines.backup_interruption 'memory' [ fail ]
        Test ended at 2009-03-17 20:55:41

CURRENT_TEST: backup_engines.backup_interruption
mysqltest: In included file "./suite/backup_engines/include/backup_restore_interrupt.inc": At line 73: query 'SELECT state FROM INFORMATION_SCHEMA.PROCESSLIST WHERE id=$id' failed: 2013: Lost connection to MySQL server during query

Back trace
==========
090317 22:55:41 - 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=1048576
read_buffer_size=131072
max_used_connections=2
max_threads=151
thread_count=2
connection_count=2
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 60694 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0x2aaab01b1678
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 = 0x499d60f0 thread_stack 0x40000
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(my_print_stacktrace+0x32) [0xd8c0db]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(handle_segfault+0x2a6) [0x72f7e2]
/lib64/libpthread.so.0 [0x36a3c0de60]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(my_hash_insert+0x106) [0xd991a4]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld [0xd86bb6]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld [0xd86ae8]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(safe_mutex_lock+0x459) [0xd85e5c]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(fill_schema_processlist(THD*, TABLE_LIST*, Item*)+0x48c) [0x8d3490]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(get_schema_tables_result(JOIN*, enum_schema_table_state)+0x2e1) [0x8c52ab]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(JOIN::exec()+0x6d0) [0x7e3dce]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*)+0x31f) [0x7e0431]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(handle_select(THD*, LEX*, select_result*, unsigned long)+0x1de) [0x7e5e1a]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld [0x74040d]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(mysql_execute_command(THD*)+0x87d) [0x74151d]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(mysql_parse(THD*, char const*, unsigned int, char const**)+0x278) [0x7493b8]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0x978) [0x74a456]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(do_command(THD*)+0x227) [0x74b95d]
/export/home/tmp/BUG38792/mysql-6.0-backup/sql/mysqld(handle_one_connection+0x11a) [0x738852]
/lib64/libpthread.so.0 [0x36a3c062e7]
/lib64/libc.so.6(clone+0x6d) [0x36a30ce3bd]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0xce57190 = SELECT state FROM INFORMATION_SCHEMA.PROCESSLIST WHERE id=2
thd->thread_id=3
thd->killed=NOT_KILLED
[17 Mar 2009 20:43] Chuck Bell
This is something we should fix soon. Please see BUG#43357 for similar report (may be duplicate).
[25 Mar 2009 6:06] Rafal Somla
This patch <http://lists.mysql.com/commits/70145>, already pushed to mysql-6.0-backup, fixes the problem by removing I_S selects from the test.

Note that the original problem lies in I_S implementation and is not solved. See BUG#43357, BUG#41346, BUG#37990.
[10 Jun 2009 13:19] Rafal Somla
Doc team,

This problem has been fixed by refactoring the test in the patch for BUG#37990 so that now it does not use selects from I_S.PROCESSLIST.

The problem with I_S itself is reported as BUG#41336 and BUG#43357 (and possibly more).
[10 Jun 2009 17:03] Paul DuBois
No changelog entry needed.