Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11
Description
SET GLOBAL session_track_system_variables='a';
|
SHUTDOWN;
|
Leads to:
10.6.2 06dd151bb86ad5b87d4d46011f36da1289c01074 (Debug) |
2021-06-08 19:38:22 0 [Note] /test/MD050621-mariadb-10.6.2-linux-x86_64-dbg/bin/mysqld: Shutdown complete
|
|
Warning: Memory not freed: 32
|
Warning: 32 bytes lost at 0x14db2401b2e0, allocated by T@0 at 0x55c68baa843d, mysys/my_malloc.c:221, sql/sys_vars.ic:568, sql/set_var.cc:207, sql/set_var.cc:858, sql/set_var.cc:745, sql/sql_parse.cc:5027, sql/sql_parse.cc:8016
|
Memory lost: 32 bytes in 1 chunks
|
Warning: 32 bytes lost at 0x14db2401b2e0, allocated by T@0 at sql/sql_parse.cc:1897, mysys/my_malloc.c:221, sql/sys_vars.ic:568, sql/set_var.cc:207, sql/set_var.cc:858, sql/set_var.cc:745, sql/sql_parse.cc:5027, sql/sql_parse.cc:8016
|
Memory lost: 32 bytes in 1 chunks
|
Bug present in 10.2-10.6 both opt and dbg.
The memory loss size has changed over time. 10.2 Debug gives:
10.2.38 (Debug) |
2021-06-08 19:43:51 23053458228992 [Note] /test/MD270421-mariadb-10.2.38-linux-x86_64-dbg/bin/mysqld: Shutdown complete
|
|
Warning: Memory not freed: 8
|
Warning: 8 bytes lost at 0x14f748008b70, allocated by T@0 at mysys/my_malloc.c:229, sql/sys_vars.ic:527, sql/set_var.cc:208, sql/set_var.cc:837, sql/set_var.cc:738, sql/sql_parse.cc:4644, sql/sql_parse.cc:7796, sql/sql_parse.cc:1827
|
Memory lost: 8 bytes in 1 chunks
|
Warning: 8 bytes lost at 0x14f748008b70, allocated by T@0 at mysys/my_malloc.c:229, sql/sys_vars.ic:527, sql/set_var.cc:208, sql/set_var.cc:837, sql/set_var.cc:738, sql/sql_parse.cc:4644, sql/sql_parse.cc:7796, sql/sql_parse.cc:1827
|
Memory lost: 8 bytes in 1 chunks
|
And 10.3 optimized (10.3 debug also has 8 bytes):
2021-06-08 19:45:50 0 [Note] /test/MD270421-mariadb-10.3.29-linux-x86_64-opt/bin/mysqld: Shutdown complete
10.3.29 4d412e9854ccb3676a9a51a002fbcc6b44a26294 (Optimized) |
Warning: Memory not freed: 16
|
For an example fix on a similar bug, see
MDEV-24509