Bug #35944 Crash mysql_lock_tables when using table logging
Submitted: 9 Apr 2008 16:58 Modified: 15 May 2010 8:55
Reporter: Philip Stoev Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.24 OS:Any
Assigned to: Philip Stoev CPU Architecture:Any

[9 Apr 2008 16:58] Philip Stoev
Description:
When executing the iuds6 test, mysqld crashed as follows:

handle_segfault+0x201)[0x5b2941]
/lib64/libpthread.so.0[0x3ba880de70]
thr_lock+0x1ca)[0x82dd8a]
thr_multi_lock+0x171)[0x82e3e1]
mysql_lock_tables(THD*, st_table**, unsigned int, unsigned int, bool*)+0x14f)[0x5ae20f]
open_ltable(THD*, TABLE_LIST*, thr_lock_type, unsigned int)+0x13b)[0x5f1f1b]
open_performance_schema_table(THD*, TABLE_LIST*, Open_tables_state*)+0x46)[0x5f5d36]
Log_to_csv_event_handler::log_general(THD*, long, char const*, unsigned int, int, char const*, unsigned int, char const*, unsigned int, charset_info_st*)+0xf5)[0x637e95]
LOGGER::general_log_write(THD*, enum_server_command, char const*, unsigned int)+0x180)[0x639240]
general_log_write(THD*, enum_server_command, char const*, unsigned int)+0x62)[0x63d382]
sp_instr_stmt::execute(THD*, unsigned int*)+0x145)[0x6dd8f5]
sp_head::execute(THD*)+0x33a)[0x6dab6a]
sp_head::execute_procedure(THD*, List<Item>*)+0x3c3)[0x6dbe73]
Event_job_data::execute(THD*, bool)+0x4af)[0x6eeecf]
Event_worker_thread::run(THD*, Event_queue_element_for_exec*)+0x154)[0x6eb5b4]
event_worker_thread+0x15)[0x6eb445]
/lib64/libpthread.so.0[0x3ba88062f7]
/lib64/libc.so.6(clone+0x6d)[0x3ba80ce85d]

How to repeat:
A simpler test case will hopefully arrive.
[15 May 2010 8:55] Philip Stoev
Unfortunately, not repeatable.