Memory leaks in gen_lex_hash.cc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Low
|
Alexey Kopytov | ||
2.2 |
Fix Released
|
Low
|
Alexey Kopytov | ||
2.3 |
Fix Released
|
Low
|
Alexey Kopytov |
Bug Description
Duplicating the upstream report http://
When creating an AddressSanitize
18:01:03
18:01:03 =======
18:01:03 ==17392==ERROR: LeakSanitizer: detected memory leaks
18:01:03
18:01:03 Direct leak of 13792 byte(s) in 1 object(s) allocated from:
18:01:03 #0 0x7f879d6b2a96 in __interceptor_
18:01:03 #1 0x401ab9 in add_struct_
18:01:03 #2 0x401d5b in add_structs_
18:01:03 #3 0x401dd6 in add_structs_
18:01:03 #4 0x401dd6 in add_structs_
18:01:03 #5 0x401dd6 in add_structs_
18:01:03 #6 0x401dd6 in add_structs_
18:01:03 #7 0x401dd6 in add_structs_
18:01:03 #8 0x401dd6 in add_structs_
18:01:03 #9 0x4021a0 in print_find_
18:01:03 #10 0x400ca2 in main /mnt/workspace/
18:01:03 #11 0x7f879d2b7ec4 in __libc_start_main (/lib/x86_
18:01:03
18:01:03 SUMMARY: AddressSanitizer: 13792 byte(s) leaked in 1 allocation(s).
18:01:03 sql/CMakeFiles/
Indeed, there's a number of malloc()/realloc() calls, but the allocated memory is never freed. This becomes a problem, because gen_lex_hash is executed as a part of the build process.
How to repeat:
Build with the "-DWITH_ASAN=on" CMake flag on a Ubuntu Utopic machine. I'm not sure if the leak sanitizer is enabled by default, so "export ASAN_OPTIONS=
Related branches
- Alexey Kopytov (community): Approve
- Alexey Kopytov (community): Approve
-
Diff: 10 lines (+1/-0)1 file modifiedsql/gen_lex_hash.cc (+1/-0)
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-927