Bug #40890 maria: Server crashes in sysbench OLTP_RW test at ctype-bin.c:8
Submitted: 20 Nov 2008 15:49 Modified: 8 Jan 2009 10:38
Reporter: Alexey Stroganov Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Maria storage engine Severity:S1 (Critical)
Version:6.0.8-release OS:Any
Assigned to: Sergei Golubchik CPU Architecture:Any

[20 Nov 2008 15:49] Alexey Stroganov
Description:
The crash with following backtrace was observed in OLTP_RW sysbench test:

(gdb) bt
#0  0x0000000000acc7f7 in my_strnncoll_binary (cs=<value optimized out>, s=0x27fc4 <Address 0x27fc4 out of bounds>, slen=8,
    t=0x2aab4da00bd8 "�\177\002", tlen=8, t_is_prefix=0 '\0') at ctype-bin.c:84
#1  0x0000000000a8f1d8 in lfind (head=0x1b925c0, cs=0xf74e60, hashnr=3745613115, key=0x2aab4da00bd8 "�\177\002",
    keylen=<value optimized out>, cursor=0x400c19b0, pins=0x1b8cc00) at lf_hash.c:111
#2  0x0000000000a8f806 in lf_hash_delete (hash=0x11e6780, pins=0x1b8cc00, key=0x2aab4da00bd8, keylen=8) at lf_hash.c:211
#3  0x0000000000a1105e in trnman_end_trn (trn=<value optimized out>, commit=<value optimized out>) at trnman.c:465
#4  0x0000000000a7da07 in ma_commit (trn=0x2aab4da00bd8) at ma_commit.c:37
#5  0x0000000000a23fce in ha_maria::external_lock (this=0x1b1c8a8, thd=0x1ad2940, lock_type=2) at ha_maria.cc:2273
#6  0x000000000073c1aa in handler::ha_external_lock (this=0x2aab4da00bd8, thd=0x27fc4, lock_type=8) at handler.cc:5298
#7  0x0000000000641f08 in mysql_unlock_tables (thd=0x1ad2940, sql_lock=0x2aab4da008d0) at lock.cc:821
#8  0x0000000000634845 in select_send::send_eof (this=0x1b43a40) at sql_class.cc:1662
#9  0x00000000006b407b in do_select (join=0x1ad5f18, fields=0x1b42090, table=0x0, procedure=<value optimized out>)
    at sql_select.cc:13497
#10 0x00000000006c6e62 in JOIN::exec (this=0x1ad5f18) at sql_select.cc:2829
#11 0x00000000006c2cce in mysql_select (thd=0x1ad2940, rref_pointer_array=0x1b42170, tables=<value optimized out>,
    wild_num=<value optimized out>, fields=<value optimized out>, conds=0x1b438c8, og_num=0, order=0x0, group=0x0,
    having=0x0, proc_param=0x0, select_options=0, result=0x1b43a40, unit=0x1b41b28, select_lex=0x1b41f88)
    at sql_select.cc:3019
#12 0x00000000006c875c in handle_select (thd=0x1ad2940, lex=0x1b41a88, result=0x1b43a40, setup_tables_done_option=0)
    at sql_select.cc:301
#13 0x0000000000656bb7 in execute_sqlcom_select (thd=0x1ad2940, all_tables=0x1b42c28) at sql_parse.cc:4646
#14 0x000000000065a9de in mysql_execute_command (thd=0x1ad2940) at sql_parse.cc:2066
#15 0x00000000006d4029 in Prepared_statement::execute (this=0x1b41710, expanded_query=<value optimized out>,
    open_cursor=false) at sql_prepare.cc:3578
#16 0x00000000006d6ffc in Prepared_statement::execute_loop (this=0x1b41710, expanded_query=0x400c3470, open_cursor=false,
    packet=<value optimized out>, packet_end=<value optimized out>) at sql_prepare.cc:3245
#17 0x00000000006d76a5 in mysql_stmt_execute (thd=0x1ad2940, packet_arg=0x1ae1ad1 "", packet_length=16208416)
    at sql_prepare.cc:2467
#18 0x000000000065febe in dispatch_command (command=COM_STMT_EXECUTE, thd=0x1ad2940, packet=0x1ae1ad1 "", packet_length=15)
    at sql_parse.cc:960
#19 0x0000000000652a72 in handle_one_connection (arg=<value optimized out>) at sql_connect.cc:1156
#20 0x00002b7a6c0c0193 in start_thread () from /lib64/libpthread.so.0
#21 0x00002b7a6c93845d in clone () from /lib64/libc.so.6
#22 0x0000000000000000 in ?? ()

How to repeat:
Instructions and test case will be provided later.
[15 Dec 2008 10:08] Bugs System
Pushed into 6.0.9-alpha  (revid:serg@mysql.com-20081205105151-tqxe1q4g3wqz0mk7) (version source revid:guilhem@mysql.com-20081213204800-0nubni3t4ihn4hv9) (pib:5)
[8 Jan 2009 10:38] MC Brown
Test case failure. No documentation needed.