[MDEV-28013] Memory leak on INSERT DELAYED Created: 2022-03-07  Updated: 2022-03-07  Resolved: 2022-03-07

Status: Closed
Project: MariaDB Server
Component/s: Embedded Server
Affects Version/s: 10.5
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Nayuta Yanagisawa (Inactive) Assignee: Oleksandr Byelkin
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-26986 LeakSanitizer/Valgrind errors in Bina... Closed
Relates
relates to MDEV-27894 Spider: SIGSEGV in __memmove_avx_unal... Closed

 Description   

The test case below results in a memory leak. At least confirmed on 10.5 (e8e755ea6cbac56d561375b940281a903c7db61c) debug build.

CREATE TABLE tbl_a (a INT UNSIGNED KEY,b INT UNSIGNED,c INT UNSIGNED,UNIQUE (b, c) USING HASH) ENGINE=MyISAM;
SHOW CREATE TABLE tbl_a;
INSERT DELAYED INTO tbl_a VALUES (0,0,0);

e8e755ea6cbac56d561375b940281a903c7db61c (debug)

Warning: Memory not freed: 80
Warning:   40 bytes lost at 0x7f65ec196a80, allocated by T@0 at 0x559424d00aa1, sql/sql_string.cc:44, sql/sql_string.h:639, sql/field.cc:4254, sql/field.cc:4435, sql/item.cc:3288, sql/item.h:915, sql/item_func.cc:1776
Warning:   40 bytes lost at 0x7f65ec0c3ea0, allocated by T@0 at sql/item.cc:6757, sql/sql_string.h:639, sql/field.cc:4254, sql/field.cc:4435, sql/item.cc:3288, sql/item.h:915, sql/item_func.cc:1776, sql/item.cc:6757
Warning:   40 bytes lost at 0x7f65ec196a80, allocated by T@0 at sql/sql_string.cc:44, sql/sql_string.h:639, sql/field.cc:4254, sql/field.cc:4435, sql/item.cc:3288, sql/item.h:915, sql/item_func.cc:1776, sql/item.cc:6757
Warning:   40 bytes lost at 0x7f65ec0c3ea0, allocated by T@0 at sql/sql_string.cc:44, sql/sql_string.h:639, sql/field.cc:4254, sql/field.cc:4435, sql/item.cc:3288, sql/item.h:915, sql/item_func.cc:1776, sql/item.cc:6757



 Comments   
Comment by Elena Stepanova [ 2022-03-07 ]

It shouldn't be (just) about the embedded server, is it?
This looks much like MDEV-26986. MDEV-26986 claims a relation to binlog, probably wrongly, I can't remember why. Otherwise it should be the same.

Comment by Nayuta Yanagisawa (Inactive) [ 2022-03-07 ]

Not just about the embedded server. I agree that the issue looks quite similar to MDEV-26986. It is very likely a duplicate. Thank you very much for your information.

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