Valgrind: 66,168 bytes in 1 blocks are possibly lost in log_init()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Sergei Glushchenko | ||
5.5 |
Invalid
|
Undecided
|
Unassigned | ||
5.6 |
Fix Released
|
High
|
Sergei Glushchenko |
Bug Description
==15069== HEAP SUMMARY:
==15069== in use at exit: 52,503,744 bytes in 2,972 blocks
==15069== total heap usage: 26,600,585 allocs, 26,597,613 frees, 34,485,597,101 bytes allocated
==15069==
==15069== 66,168 bytes in 1 blocks are possibly lost in loss record 467 of 491
==15069== at 0x4C278FE: malloc (vg_replace_
==15069== by 0x9FF758: mem_area_
==15069== by 0x9FE256: mem_heap_
==15069== by 0x9F4257: mem_heap_
==15069== by 0x9F4434: mem_alloc_
==15069== by 0x9F4E5B: log_init() (log0log.cc:823)
==15069== by 0xAA2A20: innobase_
==15069== by 0x9B5799: innobase_
==15069== by 0x634EAA: ha_initialize_
==15069== by 0x761C4F: plugin_
==15069== by 0x763D89: plugin_init(int*, char**, int) (sql_plugin.
==15069== by 0x61D991: init_server_
==15069== by 0x622239: mysqld_main(int, char**) (mysqld.cc:5380)
==15069== by 0x604ECDC: (below main) (in /lib64/
==15069==
==15069== LEAK SUMMARY:
==15069== definitely lost: 0 bytes in 0 blocks
==15069== indirectly lost: 0 bytes in 0 blocks
==15069== possibly lost: 66,168 bytes in 1 blocks
==15069== still reachable: 0 bytes in 0 blocks
==15069== suppressed: 52,437,576 bytes in 2,971 blocks
==15069==
==15069== For counts of detected and suppressed errors, rerun with: -v
==15069== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 265 from 265)
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 41 lines (+9/-3)2 files modifiedPercona-Server/storage/innobase/include/log0log.h (+1/-0)
Percona-Server/storage/innobase/log/log0log.cc (+8/-3)
Thanks to Laurynas: log archiving: log_shutdown() should free log_sys- >archive_ buf and log_init() should save the original pointer returned by mem_zalloc before ut_aligning it. Our bug, easy fix