[MDEV-29725] LeakSanitizer errors in mysqldump / primary_key_fields Created: 2022-10-06  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

--source include/have_innodb.inc
 
create table t (a int);
 
--exec $MYSQL_DUMP --order-by-primary --all-databases > /dev/null
 
# Cleanup
drop table t;

10.3 074e3582

==1909514==ERROR: LeakSanitizer: detected memory leaks
 
Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x7f5f58a0fe8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x56554fcb10ac in my_malloc /data/src/10.3/mysys/my_malloc.c:101
    #2 0x56554fbf0ce7 in primary_key_fields /data/src/10.3/client/mysqldump.c:6489
    #3 0x56554fbe006e in get_table_structure /data/src/10.3/client/mysqldump.c:3015
    #4 0x56554fbec1e9 in dump_all_tables_in_db /data/src/10.3/client/mysqldump.c:5513
    #5 0x56554fbea568 in dump_all_databases /data/src/10.3/client/mysqldump.c:5142
    #6 0x56554fbf2bd6 in main /data/src/10.3/client/mysqldump.c:6917
    #7 0x7f5f582a2d09 in __libc_start_main ../csu/libc-start.c:308


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