Bug #43693 Maria: segfault during RESTORE
Submitted: 17 Mar 2009 9:34 Modified: 26 May 2010 17:52
Reporter: Guilhem Bichot Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Maria storage engine Severity:S3 (Non-critical)
Version:6.0-maria OS:Any
Assigned to: CPU Architecture:Any
Triage: Triaged: D1 (Critical)

[17 Mar 2009 9:34] Guilhem Bichot
Description:
During a RESTORE operation, a segfault is generated. It seems to involve only Server code:
#8  0x08810655 in free_root (root=0xaef9428, MyFlags=0) at my_alloc.c:355
#9  0x08334eb5 in closefrm (table=0xaef8df0, free_share=true) at table.cc:2140
#10 0x08323cb3 in intern_close_table (table=0xaef8df0) at sql_base.cc:800
#11 0x08323d07 in free_cache_entry (table=0xaef8df0) at sql_base.cc:822
#12 0x08324393 in close_thread_table (thd=0xa7df6b80, table_ptr=0xa7df6bcc)
    at sql_base.cc:1504
#13 0x0832495e in close_open_tables (thd=0xa7df6b80) at sql_base.cc:1228
#14 0x08324cb9 in close_thread_tables (thd=0xa7df6b80, is_back_off=false)
    at sql_base.cc:1476
#15 0x088d8b04 in Backup_restore_ctx::unlock_tables (this=0xa7e3dfa8)
    at kernel.cc:938
but the tables are of Maria type.
We should investigate if this happens also with non-Maria tables.

How to repeat:
see pushbuild2 URL
[17 Mar 2009 12:38] Guilhem Bichot
Bug happened when using this command line on Linux i686:
# 18:51:01 # runall.pl \ 
# 18:51:01 # --basedir=... \ 
# 18:51:01 # --mysqld=--loose-innodb-lock-wait-timeout=5 \ 
# 18:51:01 # --mysqld=--table-lock-wait-timeout=5 \ 
# 18:51:01 # --mysqld=--loose-falcon-lock-wait-timeout=5 \ 
# 18:51:01 # --mysqld=--loose-falcon-debug-mask=2 \ 
# 18:51:01 # --mysqld=--skip-safemalloc \ 
# 18:51:01 # --grammar=conf/backup_simple.yy \ 
# 18:51:01 # --reporters=Deadlock,ErrorLog,Backtrace \ 
# 18:51:01 # --duration=1200 \ 
# 18:51:01 # --vardir=... \ 
# 18:51:01 # --mysqld=--log-output=file \ 
# 18:51:01 # --queries=100000 \ 
# 18:51:01 # --engine=maria