[MDEV-13441] rpl-tokudb.rpl_tokudb_rfr_partition_table ASSERTION Failure Created: 2017-08-03  Updated: 2022-09-12  Resolved: 2022-09-12

Status: Closed
Project: MariaDB Server
Component/s: Replication, Storage Engine - TokuDB
Affects Version/s: 10.0.32
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Vicențiu Ciorbaru Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

Server version: 10.0.32-MariaDB-debug
key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=4
max_threads=153
thread_count=4
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 62856 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x7ff24507f070
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 = 0x7ff2792c4918 thread_stack 0x48000
mysys/stacktrace.c:267(my_print_stacktrace)[0xea512c]
sql/signal_handler.cc:161(handle_fatal_signal)[0x86484a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7ff2784f7390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7ff27720f428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7ff27721102a]
/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/plugins/ha_tokudb.so(+0x1d1004)[0x7ff263152004]
/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/plugins/ha_tokudb.so(_Z24toku_do_assert_zero_failmPKcS0_S0_ii+0x0)[0x7ff2631520ff]
/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/plugins/ha_tokudb.so(+0xca5fb)[0x7ff26304b5fb]
/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/plugins/ha_tokudb.so(_Z21toku_hton_assert_failPKcS0_S0_ii+0xb5)[0x7ff26302e7dc]
/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/plugins/ha_tokudb.so(_ZN9ha_tokudb20do_uniqueness_checksEPhP13__toku_db_txnP3THD+0xc0)[0x7ff263008668]
/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/plugins/ha_tokudb.so(_ZN9ha_tokudb9write_rowEPh+0x714)[0x7ff263009b6c]
sql/handler.cc:6019(handler::ha_write_row(unsigned char*))[0x872f3d]
sql/ha_partition.cc:4199(ha_partition::write_row(unsigned char*))[0xe6950a]
sql/handler.cc:6019(handler::ha_write_row(unsigned char*))[0x872eeb]
sql/log_event.cc:11491(Rows_log_event::write_row(rpl_group_info*, bool))[0x96ee55]
sql/log_event.cc:11673(Write_rows_log_event::do_exec_row(rpl_group_info*))[0x96f6f7]
sql/log_event.cc:9954(Rows_log_event::do_apply_event(rpl_group_info*))[0x96b6fc]
sql/log_event.h:1361(Log_event::apply_event(rpl_group_info*))[0x5c4e06]
sql/slave.cc:3311(apply_event_and_update_pos(Log_event*, THD*, rpl_group_info*, rpl_parallel_thread*))[0x5ba8d7]
sql/slave.cc:3642(exec_relay_log_event(THD*, Relay_log_info*, rpl_group_info*))[0x5bb1ef]
sql/slave.cc:4753(handle_slave_sql)[0x5be61a]
perfschema/pfs.cc:1862(pfs_spawn_thread)[0xa52886]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7ff2784ed6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ff2772e13dd]
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x0): 
Connection ID (thread ID): 11
Status: NOT_KILLED
 
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on
 
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file
----------SERVER LOG END-------------
 
 
 - saving '/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/log/rpl-tokudb.rpl_tokudb_rfr_partition_table-row/' to '/home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/log/rpl-tokudb.rpl_tokudb_rfr_partition_table-row/'
 - found 'core' (0/5)
 
Trying 'dbx' to get a backtrace
 
Trying 'gdb' to get a backtrace from coredump /home/vicentiu/Workspace/MariaDB-10.1/mysql-test/var/log/rpl-tokudb.rpl_tokudb_rfr_partition_table-row/mysqld.2/data/core
Core generated by '/home/vicentiu/Workspace/MariaDB-10.1/sql/mysqld'
Output from gdb follows. The first stack trace is from the failing thread.
The following stack traces are from all threads (so the failing one is
duplicated).
--------------------------
[New LWP 1678]
[New LWP 1507]
[New LWP 1508]
[New LWP 1512]
[New LWP 1505]
[New LWP 1510]
[New LWP 1511]
[New LWP 1506]
[New LWP 1634]
[New LWP 1563]
[New LWP 1595]
[New LWP 1566]
[New LWP 1502]
[New LWP 1561]
[New LWP 1568]
[New LWP 1569]
[New LWP 1576]
[New LWP 1677]
[New LWP 1562]
[New LWP 1571]
[New LWP 1575]
[New LWP 1564]
[New LWP 1590]
[New LWP 1577]
[New LWP 1599]
[New LWP 1565]
[New LWP 1604]
[New LWP 1579]
[New LWP 1581]
[New LWP 1635]
[New LWP 1567]
[New LWP 1584]
[New LWP 1586]
[New LWP 1570]
[New LWP 1592]
[New LWP 1572]
[New LWP 1573]
[New LWP 1594]
[New LWP 1574]
[New LWP 1596]
[New LWP 1578]
[New LWP 1598]
[New LWP 1580]
[New LWP 1600]
[New LWP 1582]
[New LWP 1603]
[New LWP 1585]
[New LWP 1605]
[New LWP 1593]
[New LWP 1607]
[New LWP 1597]
[New LWP 1609]
[New LWP 1602]
[New LWP 1611]
[New LWP 1606]
[New LWP 1613]
[New LWP 1608]
[New LWP 1615]
[New LWP 1610]
[New LWP 1617]
[New LWP 1612]
[New LWP 1619]
[New LWP 1614]
[New LWP 1621]
[New LWP 1616]
[New LWP 1618]
[New LWP 1620]
[New LWP 1644]
[New LWP 1622]
[New LWP 1623]
[New LWP 1643]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/vicentiu/Workspace/MariaDB-10.1/sql/mysqld --defaults-group-suffix=.2 --d'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
62	../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory.
[Current thread is 1 (Thread 0x7ff2792c5700 (LWP 1678))]
#0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
#1  0x0000000000ea5232 in my_write_core (sig=6) at /home/vicentiu/Workspace/MariaDB-10.1/mysys/stacktrace.c:478
#2  0x0000000000864bcb in handle_fatal_signal (sig=6) at /home/vicentiu/Workspace/MariaDB-10.1/sql/signal_handler.cc:285
#3  <signal handler called>
#4  0x00007ff27720f428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#5  0x00007ff27721102a in __GI_abort () at abort.c:89
#6  0x00007ff263152004 in toku_do_backtrace_abort () at /home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/PerconaFT/portability/toku_assert.cc:147
#7  0x00007ff2631520ff in toku_do_assert_fail (expr_as_string=0x7ff2792c3c90 "Handlerton: 0 ", function=0x7ff26315b6f0 <ha_tokudb::do_uniqueness_checks(unsigned char*, __toku_db_txn*, THD*)::__FUNCTION__> "do_uniqueness_checks", file=0x7ff263156a00 "/home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/ha_tokudb.cc", line=3699, caller_errno=0) at /home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/PerconaFT/portability/toku_assert.cc:168
#8  0x00007ff26304b5fb in env_crash (db_env=0x7ff276474c00, msg=0x7ff2792c3c90 "Handlerton: 0 ", fun=0x7ff26315b6f0 <ha_tokudb::do_uniqueness_checks(unsigned char*, __toku_db_txn*, THD*)::__FUNCTION__> "do_uniqueness_checks", file=0x7ff263156a00 "/home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/ha_tokudb.cc", line=3699, caller_errno=0) at /home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/PerconaFT/src/ydb.cc:2573
#9  0x00007ff26302e7dc in toku_hton_assert_fail (expr_as_string=0x7ff263156006 "0", fun=0x7ff26315b6f0 <ha_tokudb::do_uniqueness_checks(unsigned char*, __toku_db_txn*, THD*)::__FUNCTION__> "do_uniqueness_checks", file=0x7ff263156a00 "/home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/ha_tokudb.cc", line=3699, caller_errno=0) at /home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/hatoku_hton.cc:163
#10 0x00007ff263008668 in ha_tokudb::do_uniqueness_checks (this=0x7ff245150088, record=0x7ff245067aa8 "\375\025", txn=0x7ff24507c400, thd=0x7ff24507f070) at /home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/ha_tokudb.cc:3698
#11 0x00007ff263009b6c in ha_tokudb::write_row (this=0x7ff245150088, record=0x7ff245067aa8 "\375\025") at /home/vicentiu/Workspace/MariaDB-10.1/storage/tokudb/ha_tokudb.cc:4081
#12 0x0000000000872f3d in handler::ha_write_row (this=0x7ff245150088, buf=0x7ff245067aa8 "\375\025") at /home/vicentiu/Workspace/MariaDB-10.1/sql/handler.cc:6019
#13 0x0000000000e6950a in ha_partition::write_row (this=0x7ff245019088, buf=0x7ff245067aa8 "\375\025") at /home/vicentiu/Workspace/MariaDB-10.1/sql/ha_partition.cc:4199
#14 0x0000000000872eeb in handler::ha_write_row (this=0x7ff245019088, buf=0x7ff245067aa8 "\375\025") at /home/vicentiu/Workspace/MariaDB-10.1/sql/handler.cc:6019
#15 0x000000000096ee55 in Rows_log_event::write_row (this=0x7ff2450a23f0, rgi=0x7ff245016800, overwrite=false) at /home/vicentiu/Workspace/MariaDB-10.1/sql/log_event.cc:11491
#16 0x000000000096f6f7 in Write_rows_log_event::do_exec_row (this=0x7ff2450a23f0, rgi=0x7ff245016800) at /home/vicentiu/Workspace/MariaDB-10.1/sql/log_event.cc:11673
#17 0x000000000096b6fc in Rows_log_event::do_apply_event (this=0x7ff2450a23f0, rgi=0x7ff245016800) at /home/vicentiu/Workspace/MariaDB-10.1/sql/log_event.cc:9954
#18 0x00000000005c4e06 in Log_event::apply_event (this=0x7ff2450a23f0, rgi=0x7ff245016800) at /home/vicentiu/Workspace/MariaDB-10.1/sql/log_event.h:1360
#19 0x00000000005ba8d7 in apply_event_and_update_pos (ev=0x7ff2450a23f0, thd=0x7ff24507f070, rgi=0x7ff245016800, rpt=0x0) at /home/vicentiu/Workspace/MariaDB-10.1/sql/slave.cc:3311
#20 0x00000000005bb1ef in exec_relay_log_event (thd=0x7ff24507f070, rli=0x7ff26d70acf8, serial_rgi=0x7ff245016800) at /home/vicentiu/Workspace/MariaDB-10.1/sql/slave.cc:3642
#21 0x00000000005be61a in handle_slave_sql (arg=0x7ff26d709000) at /home/vicentiu/Workspace/MariaDB-10.1/sql/slave.cc:4753
#22 0x0000000000a52886 in pfs_spawn_thread (arg=0x7ff243050370) at /home/vicentiu/Workspace/MariaDB-10.1/storage/perfschema/pfs.cc:1860
#23 0x00007ff2784ed6ba in start_thread (arg=0x7ff2792c5700) at pthread_create.c:333
#24 0x00007ff2772e13dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Test is disabled for now. (10.0)

CC:elenst



 Comments   
Comment by Sergei Golubchik [ 2022-09-12 ]

10.0 was EOLed in March 2019

Generated at Thu Feb 08 08:05:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.