[MDEV-20581] Crash on wsrep.variables test case Created: 2019-09-13  Updated: 2020-10-06  Resolved: 2020-09-14

Status: Closed
Project: MariaDB Server
Component/s: Galera, Tests, wsrep
Affects Version/s: 10.4
Fix Version/s: 10.4.16, 10.5.7, 10.6.0

Type: Bug Priority: Critical
Reporter: Jan Lindström (Inactive) Assignee: Mario Karuza (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-17585 wsrep.variables failed in buildbot wi... Closed
relates to MDEV-21412 wsrep.variables test failed Closed

 Description   

./mtr wsrep.variables

(gdb) where
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff76d1535 in __GI_abort () at abort.c:79
#2  0x00007ffff76d140f in __assert_fail_base (fmt=0x7ffff785f588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555556f7531f "state_ == s_exec", file=0x555556f751e8 "/home/jan/mysql/10.4/wsrep-lib/src/client_state.cpp", line=344, function=<optimized out>) at assert.c:92
#3  0x00007ffff76e1012 in __GI___assert_fail (assertion=0x555556f7531f "state_ == s_exec", file=0x555556f751e8 "/home/jan/mysql/10.4/wsrep-lib/src/client_state.cpp", line=344, function=0x555556f75f20 <wsrep::client_state::enter_toi_local(std::vector<wsrep::key, std::allocator<wsrep::key> > const&, wsrep::const_buffer const&, int)::__PRETTY_FUNCTION__> "int wsrep::client_state::enter_toi_local(const key_array&, const wsrep::const_buffer&, int)") at assert.c:101
#4  0x0000555556a0736c in wsrep::client_state::enter_toi_local (this=0x7fffe0006ed8, keys=std::vector of length 1, capacity 1 = {...}, buffer=..., flags=3) at /home/jan/mysql/10.4/wsrep-lib/src/client_state.cpp:344
#5  0x0000555555fb4ec8 in wsrep_TOI_begin (thd=0x7fffe0000d60, db=0x555556a6a20e "mysql", table=0x0, table_list=0x0, alter_info=0x0) at /home/jan/mysql/10.4/sql/wsrep_mysqld.cc:1870
#6  0x0000555555fb5da6 in wsrep_to_isolation_begin (thd=0x7fffe0000d60, db_=0x555556a6a20e "mysql", table_=0x0, table_list=0x0, alter_info=0x0) at /home/jan/mysql/10.4/sql/wsrep_mysqld.cc:2022
#7  0x0000555555d54820 in mysql_execute_command (thd=0x7fffe0000d60) at /home/jan/mysql/10.4/sql/sql_parse.cc:5221
#8  0x0000555555d5dd6a in mysql_parse (thd=0x7fffe0000d60, rawbuf=0x7fffe0013378 "create user test@localhost", length=26, parser_state=0x7ffff16db150, is_com_multi=false, is_next_command=false) at /home/jan/mysql/10.4/sql/sql_parse.cc:7909
#9  0x0000555555d5d3a3 in wsrep_mysql_parse (thd=0x7fffe0000d60, rawbuf=0x7fffe0013378 "create user test@localhost", length=26, parser_state=0x7ffff16db150, is_com_multi=false, is_next_command=false) at /home/jan/mysql/10.4/sql/sql_parse.cc:7721
#10 0x0000555555d48d32 in dispatch_command (command=COM_QUERY, thd=0x7fffe0000d60, packet=0x7fffe00086d1 "create user test@localhost", packet_length=26, is_com_multi=false, is_next_command=false) at /home/jan/mysql/10.4/sql/sql_parse.cc:1827
#11 0x0000555555d474d8 in do_command (thd=0x7fffe0000d60) at /home/jan/mysql/10.4/sql/sql_parse.cc:1359
#12 0x0000555555ecee18 in do_handle_one_connection (connect=0x5555580f7050) at /home/jan/mysql/10.4/sql/sql_connect.cc:1412
#13 0x0000555555eceb67 in handle_one_connection (arg=0x5555580f7050) at /home/jan/mysql/10.4/sql/sql_connect.cc:1316
#14 0x00005555568e27ae in pfs_spawn_thread (arg=0x555558039260) at /home/jan/mysql/10.4/storage/perfschema/pfs.cc:1862
#15 0x00007ffff7f50182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#16 0x00007ffff77c9b1f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) up
#1  0x00007ffff76d1535 in __GI_abort () at abort.c:79
(gdb) 
#2  0x00007ffff76d140f in __assert_fail_base (fmt=0x7ffff785f588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555556f7531f "state_ == s_exec", file=0x555556f751e8 "/home/jan/mysql/10.4/wsrep-lib/src/client_state.cpp", line=344, function=<optimized out>) at assert.c:92
(gdb) 
#3  0x00007ffff76e1012 in __GI___assert_fail (assertion=0x555556f7531f "state_ == s_exec", file=0x555556f751e8 "/home/jan/mysql/10.4/wsrep-lib/src/client_state.cpp", line=344, function=0x555556f75f20 <wsrep::client_state::enter_toi_local(std::vector<wsrep::key, std::allocator<wsrep::key> > const&, wsrep::const_buffer const&, int)::__PRETTY_FUNCTION__> "int wsrep::client_state::enter_toi_local(const key_array&, const wsrep::const_buffer&, int)") at assert.c:101
(gdb) 
#4  0x0000555556a0736c in wsrep::client_state::enter_toi_local (this=0x7fffe0006ed8, keys=std::vector of length 1, capacity 1 = {...}, buffer=..., flags=3) at /home/jan/mysql/10.4/wsrep-lib/src/client_state.cpp:344
(gdb) p state_
$1 = wsrep::client_state::s_none



 Comments   
Comment by Stepan Patryshev (Inactive) [ 2020-01-08 ]

Closed since it is not reproduced on bb or Azure.

Comment by Marko Mäkelä [ 2020-01-20 ]

In 10.4, the test wsrep.variables was disabled with a reference to this ticket. If you close a ticket, also the test case should be enabled.

Before 10.4, the test case is disabled due to MDEV-17585.

Generated at Thu Feb 08 09:00:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.