[MDEV-26942] Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' with SESSION_TRACK_SYSTEM_VARIABLES and binlog Created: 2021-10-29  Updated: 2023-07-28  Resolved: 2023-07-28

Status: Closed
Project: MariaDB Server
Component/s: Replication, Variables
Affects Version/s: 10.2
Fix Version/s: N/A

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: not-10.3, not-10.4, not-10.5, not-10.6, not-10.7


 Description   

Setting to trivial and leaving unassigned, because it's a 10.2-only issue and involves SESSION_TRACK_SYSTEM_VARIABLES and some concurrency

--source include/have_innodb.inc
--source include/have_log_bin.inc
 
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(2);
 
CREATE TABLE t2 (b INT) ENGINE=InnoDB;
 
--connect (con1,localhost,root,,test)
SET AUTOCOMMIT=OFF;
INSERT INTO t2 VALUES (1);
 
--connection default
SET GLOBAL BINLOG_COMMIT_WAIT_COUNT= 100;
SET SESSION SESSION_TRACK_SYSTEM_VARIABLES= '*';
 
--connection con1
--send
  COMMIT;
 
--connection default
DELETE FROM t1;
 
# Cleanup
DROP TABLE t1, t2;
SET GLOBAL BINLOG_COMMIT_WAIT_COUNT= DEFAULT;

10.2 42ae7659

Warning:   24 bytes freed by T@9, allocated by T@11 at sql/session_tracker.cc:337, sql/session_tracker.cc:141, sql/session_tracker.cc:859, sql/sql_class.cc:7164, sql/log.cc:5935, sql/log.cc:8107, sql/log.cc:7842, sql/log.cc:7643
2021-10-30  2:09:26 139907151918848 [Note] /mnt-hd8t/bld/10.2-debug-nightly/bin/mysqld (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
mysqld: /data/src/10.2/sql/mysqld.cc:4099: void my_malloc_size_cb_func(long long int, my_bool): Assertion `(longlong) thd->status_var.local_memory_used >= 0 || !debug_assert_on_not_freed_memory' failed.
211030  2:09:26 [ERROR] mysqld got signal 6 ;



 Comments   
Comment by Elena Stepanova [ 2023-07-28 ]

10.2 is long EOL.

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