Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.3(EOL), 10.4(EOL), 10.5, 10.6
-
None
Description
mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
#7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
|
#8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202
|
#9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379
|
#10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383
|
#11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656
|
#12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824
|
The code is:
DBUG_PRINT("error", |
("Packets out of order (Found: %d, expected %u)", |
(int) net->buff[net->where_b + 3], |
net->pkt_nr));
|
EXTRA_DEBUG_ASSERT(0);
|
You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with:
./BUILD/compile-pentium64-valgrind-max
This crash happened after the last merge to 10.6, around last Friday, has not happened before that.
I did verify that all versions starting with 10.3 are affected. I did not test 10.2, so I don't know if this is affected
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 10.3 [ 22126 ] |
Assignee | Andrei Elkin [ elkin ] | Sujatha Sivakumar [ sujatha.sivakumar ] |
Description |
mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
#7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101 #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202 #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379 #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383 #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656 #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824 The code is: DBUG_PRINT("error", ("Packets out of order (Found: %d, expected %u)", (int) net->buff[net->where_b + 3], net->pkt_nr)); EXTRA_DEBUG_ASSERT(0); You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with: ./BUILD/compile-pentium64-valgrind-max This crash happened after the last merge to 10.6, around last Friday, has not happened before that. |
mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
{noformat} #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101 #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202 #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379 #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383 #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656 #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824 {noformat} The code is: {code:c++} DBUG_PRINT("error", ("Packets out of order (Found: %d, expected %u)", (int) net->buff[net->where_b + 3], net->pkt_nr)); EXTRA_DEBUG_ASSERT(0); {code} You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with: ./BUILD/compile-pentium64-valgrind-max This crash happened after the last merge to 10.6, around last Friday, has not happened before that. |
Fix Version/s | 10.5 [ 23123 ] |
Description |
mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
{noformat} #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101 #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202 #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379 #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383 #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656 #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824 {noformat} The code is: {code:c++} DBUG_PRINT("error", ("Packets out of order (Found: %d, expected %u)", (int) net->buff[net->where_b + 3], net->pkt_nr)); EXTRA_DEBUG_ASSERT(0); {code} You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with: ./BUILD/compile-pentium64-valgrind-max This crash happened after the last merge to 10.6, around last Friday, has not happened before that. |
mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
{noformat} #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101 #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202 #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379 #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383 #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656 #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824 {noformat} The code is: {code:c++} DBUG_PRINT("error", ("Packets out of order (Found: %d, expected %u)", (int) net->buff[net->where_b + 3], net->pkt_nr)); EXTRA_DEBUG_ASSERT(0); {code} You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with: ./BUILD/compile-pentium64-valgrind-max This crash happened after the last merge to 10.6, around last Friday, has not happened before that. I did verify that all versions starting with 10.3 are affected. I did not test 10.2, so I don't know if this is affected |
Fix Version/s | 10.3 [ 22126 ] |
Priority | Blocker [ 1 ] | Critical [ 2 ] |
Assignee | Sujatha Sivakumar [ sujatha.sivakumar ] | Andrei Elkin [ elkin ] |
Assignee | Andrei Elkin [ elkin ] | Brandon Nesterenko [ JIRAUSER48702 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Brandon Nesterenko [ JIRAUSER48702 ] | Andrei Elkin [ elkin ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Workflow | MariaDB v3 [ 121581 ] | MariaDB v4 [ 143790 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Andrei Elkin [ elkin ] | Brandon Nesterenko [ JIRAUSER48702 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
issue.field.resolutiondate | 2022-04-01 02:01:44.0 | 2022-04-01 02:01:44.516 |
Fix Version/s | 10.3.35 [ 27512 ] | |
Fix Version/s | 10.4.25 [ 27510 ] | |
Fix Version/s | 10.5.16 [ 27508 ] | |
Fix Version/s | 10.6.8 [ 27506 ] | |
Fix Version/s | 10.7.4 [ 27504 ] | |
Fix Version/s | 10.8.3 [ 27502 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
The test exposes an old bug which was introduced as part of following 10.3
commit: 74b35b68744ce552f09124e27ef1785af69d7989
~/bug_repo/test-10.3$ git log -1
commit 74b35b68744ce552f09124e27ef1785af69d7989 (HEAD -> 10.3)
Author: Andrei Elkin <andrei.elkin@mariadb.com>
Date: Wed Nov 22 19:34:42 2017 +0200
MDEV-13073. This part patch weeds out RUN_HOOK from the server as semisync
is defined statically. Consequently the observer interfaces are removed
as well.
Thread 1 (Thread 0x7fc2b8512700 (LWP 9572)):
#0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
#1 0x0000560e50ed4cd8 in my_write_core (sig=6) at /home/sujatha/bug_repo/test-10.3/mysys/stacktrace.c:481
#2 0x0000560e506eb7b1 in handle_fatal_signal (sig=6) at /home/sujatha/bug_repo/test-10.3/sql/signal_handler.cc:303
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5 0x00007fc2c8254921 in __GI_abort () at abort.c:79
#6 0x00007fc2c824448a in __assert_fail_base (fmt=0x7fc2c83cb750 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x560e50f9a47b "0", file=file@entry=0x560e50f9a320 "/home/sujatha/bug_repo/test-10.3/sql/net_serv.cc", line=line@entry=1163, function=function@entry=0x560e50f9a6e0 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:92
#7 0x00007fc2c8244502 in __GI___assert_fail (assertion=0x560e50f9a47b "0", file=0x560e50f9a320 "/home/sujatha/bug_repo/test-10.3/sql/net_serv.cc", line=1163, function=0x560e50f9a6e0 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
#8 0x0000560e5033decd in my_real_read (net=0x7fc25401e7a0, complen=0x7fc2b8511c30, header=0 '\000') at /home/sujatha/bug_repo/test-10.3/sql/net_serv.cc:1163
#9 0x0000560e5033e289 in my_net_read_packet_reallen (net=0x7fc25401e7a0, read_from_server=0 '\000', reallen=0x7fc2b8511d80) at /home/sujatha/bug_repo/test-10.3/sql/net_serv.cc:1340
#10 0x0000560e506a5c27 in cli_safe_read_reallen (mysql=0x7fc25401e7a0, reallen=0x7fc2b8511d80) at /home/sujatha/bug_repo/test-10.3/sql-common/client.c:588
#11 0x0000560e503625be in read_event (mysql=0x7fc25401e7a0, mi=0x560e533bbaf0, suppress_warnings=0x7fc2b8511d4e, network_read_len=0x7fc2b8511d80) at /home/sujatha/bug_repo/test-10.3/sql/slave.cc:3652
#12 0x0000560e50364ff0 in handle_slave_io (arg=0x560e533bbaf0) at /home/sujatha/bug_repo/test-10.3/sql/slave.cc:4769
#13 0x0000560e50e6ea26 in pfs_spawn_thread (arg=0x560e52ea1820) at /home/sujatha/bug_repo/test-10.3/storage/perfschema/pfs.cc:1863
#14 0x00007fc2c8f966db in start_thread (arg=0x7fc2b8512700) at pthread_create.c:463
#15 0x00007fc2c833571f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Test passed with its parent commit.
sujatha@sujatha:~/bug_repo/test-10.3/bld/mysql-test$ git log -1
commit e972125f11d8f37bc263b113e85ed064257a92ee (HEAD -> 10.3)
Author: Andrei Elkin <andrei.elkin@mariadb.com>
Date: Wed Nov 22 17:10:34 2017 +0200
sujatha@sujatha:~/bug_repo/test-10.3/bld/mysql-test$ ./mtr rpl_semi_sync_slave_compressed_protocol.test
Logging: /home/sujatha/bug_repo/test-10.3/mysql-test/mysql-test-run.pl rpl_semi_sync_slave_compressed_protocol.test
vardir: /home/sujatha/bug_repo/test-10.3/bld/mysql-test/var
Checking leftover processes...
Removing old var directory...
Creating var directory '/home/sujatha/bug_repo/test-10.3/bld/mysql-test/var'...
Checking supported features...
MariaDB Version 10.3.3-MariaDB-debug
- SSL connections supported
- binaries are debug compiled
Collecting tests...
Installing system database...
==============================================================================
TEST RESULT TIME (ms) or COMMENT
--------------------------------------------------------------------------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
rpl.rpl_semi_sync_slave_compressed_protocol 'row' [ pass ] 3146
--------------------------------------------------------------------------