← Back to team overview

maria-developers team mailing list archive

crash in TC_LOG_MMAP::log_one_transaction in maria-10.0.0

 

Hello,
I am having problems with the shinny new mariadb-10.0.0.

I have a simple test case that replaces a row in innodb and tokudb and
then commits.  Eventually, mysqld hits this assert:

mysqld: /home/prohaska/maria10-build/mariadb-10.0.0/sql/log.cc:7547:
int TC_LOG_MMAP::log_one_transaction(my_xid): Assertion `p->ptr <
p->end' failed.

The test works great when the binlog is enabled.  The test crashes
when the binlog is OFF.  So, maybe the problem is isolated to the
TC_LOG_MMAP logic.  I noticed that the TC_LOG_MMAP::unlog function is
quite different than the mariadb-5.5 version.

What is the best way to get this fixed?  Would it help if i made the
test case available?

Thanks
Rich Prohaska

Here is the stack trace:

Program received signal SIGABRT, Aborted.
0x0000003006a32885 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003006a32885 in raise () from /lib64/libc.so.6
#1  0x0000003006a34065 in abort () from /lib64/libc.so.6
#2  0x0000003006a2b9fe in __assert_fail_base () from /lib64/libc.so.6
#3  0x0000003006a2bac0 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000008862bf in TC_LOG_MMAP::log_one_transaction
(this=0x1541f00 <tc_log_mmap>, xid=142018) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/log.cc:7547
#5  0x0000000000885442 in TC_LOG_MMAP::log_and_order (this=0x1541f00
<tc_log_mmap>, thd=0x27f0000, xid=142018, all=true,
need_prepare_ordered=false, need_commit_ordered=true) at
/home/prohaska/maria10-\
build/mariadb-10.0.0/sql/log.cc:7180
#6  0x00000000007b819f in ha_commit_trans (thd=0x27f0000, all=true) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/handler.cc:1329
#7  0x0000000000710307 in trans_commit (thd=0x27f0000) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/transaction.cc:213
#8  0x000000000060a2df in mysql_execute_command (thd=0x27f0000) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/sql_parse.cc:4084
#9  0x000000000060f1a7 in mysql_parse (thd=0x27f0000,
rawbuf=0x7fff6c0050b8 "commit", length=6, parser_state=0x7fffe4112660)
at /home/prohaska/maria10-build/mariadb-10.0.0/sql/sql_parse.cc:6056
#10 0x00000000006029a3 in dispatch_command (command=COM_QUERY,
thd=0x27f0000, packet=0x27fa341 "commit", packet_length=6) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/sql_parse.cc:1216
#11 0x0000000000601bdb in do_command (thd=0x27f0000) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/sql_parse.cc:945
#12 0x00000000006ff6d1 in do_handle_one_connection (thd_arg=0x27f0000)
at /home/prohaska/maria10-build/mariadb-10.0.0/sql/sql_connect.cc:1254
#13 0x00000000006ff179 in handle_one_connection (arg=0x27f0000) at
/home/prohaska/maria10-build/mariadb-10.0.0/sql/sql_connect.cc:1168
#14 0x0000003006e077f1 in start_thread () from /lib64/libpthread.so.0
#15 0x0000003006ae592d in clone () from /lib64/libc.so.6


Follow ups