mariadb/mysql-test/suite
Andrei Elkin c7e38076f3 MDEV-9510 Segmentation fault in binlog thread causes crash
With combination of --log-bin and Galera the server may crash
reporting two characteristic stacks:

  /usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG13mark_xid_doneEmb+0xc7)[0x7f182a8e2cb7]
  /usr/sbin/mysqld(binlog_background_thread+0x2b5)[0x7f182a8e3275]

or

  /usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG21do_checkpoint_requestEm+0x9d)[0x7ff395b2dafd]
  /usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG20checkpoint_and_purgeEm+0x11)[0x7ff395b2db91]
  /usr/sbin/mysqld(_ZN13MYSQL_BIN_LOG16rotate_and_purgeEb+0xc2)[0x7ff395b300b2]

The reason of the failure appears to be non-matching decrements for
  `xid_count_per_binlog::xid_count`
which can occur when a transaction is executed having its connection issued
`SET @@sql_log_bin=0`. In such case the xid count is not incremented but
its decrements still runs to turn `binlog_xid_count_list` into improper state
which the following FLUSH BINARY LOGS exposes through the crash.

*Note_1*: the regression test reuses an existing galera.sql_log_bin
which does not run stably (even in its base form) by mtr with --log-bin.

*Note_2*: 10.0-galera branch is free of this issue having missed MDEV-7205
fixes.
2017-11-15 22:26:32 +02:00
..
archive Merge branch '10.0' into 10.1 2017-08-08 10:18:43 +02:00
binlog MDEV-12012/MDEV-11969 Can't remove GTIDs for a stale GTID Domain ID 2017-11-15 22:26:32 +02:00
binlog_encryption Merge branch '10.0' into 10.1 2017-01-16 03:18:14 +02:00
csv Merge 10.0 into 10.1 2017-05-19 12:29:37 +03:00
encryption MDEV-14219 Allow online table rebuild when encryption or compression parameters change 2017-10-31 09:10:25 +02:00
engines Merge branch '10.0' into 10.1 2017-09-21 22:02:21 +02:00
federated MDEV-12725 select on federated table crashes server 2017-08-08 22:49:09 +02:00
funcs_1 MDEV-11943 I_S.TABLES inconsistencies with tables with unknown storage engine 2017-03-10 18:21:24 +01:00
funcs_2 Merge branch '10.0' into 10.1 2017-01-16 03:18:14 +02:00
galera MDEV-9510 Segmentation fault in binlog thread causes crash 2017-11-15 22:26:32 +02:00
galera_3nodes Bug Fix 2017-10-11 01:09:05 +05:30
handler
heap
innodb Merge 10.0 into 10.1 2017-11-06 18:10:23 +02:00
innodb_fts Merge branch '10.0' into 10.1 2017-10-22 13:03:41 +02:00
innodb_zip Merge 10.0 into 10.1 2017-11-06 18:10:23 +02:00
jp
large_tests
maria Merge branch '10.0' into 10.1 2017-10-22 13:03:41 +02:00
mariabackup MDEV-14333 Mariabackup --apply-log-only crashes if incomplete transactions with update_undo logs are present 2017-11-09 14:37:03 +02:00
mtr/t
mtr2
multi_source MDEV-9544 FLUSH [RELAY] LOGS does not rotate logs for a named slave 2017-06-05 13:11:10 +05:30
optimizer_unfixed_bugs Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
parts Merge tag 'mariadb-10.0.33' into bb-10.0-galera 2017-11-03 12:34:05 +05:30
percona
perfschema MDEV-12012/MDEV-11969 Can't remove GTIDs for a stale GTID Domain ID 2017-11-15 22:26:32 +02:00
perfschema_stress
plugins MDEV-13921 Audit log writes invalid SQL if single-line comments are 2017-11-03 22:43:51 +04:00
roles Merge branch '10.0' into 10.1 2017-10-22 13:03:41 +02:00
rpl MDEV-12012/MDEV-11969 Can't remove GTIDs for a stale GTID Domain ID 2017-11-15 22:26:32 +02:00
storage_engine Merge branch '10.0' into 10.1 2017-08-08 10:18:43 +02:00
stress
sys_vars Merge 10.0 into 10.1 2017-11-06 18:10:23 +02:00
unit
vcol Merge branch '10.0' into 10.1 2017-10-22 13:03:41 +02:00
wsrep Fix Merge Error 2017-08-23 16:49:42 +05:30