Valgrind: 66,168 bytes in 1 blocks are possibly lost in log_init()

Bug #1166622 reported by Roel Van de Paar
6
This bug affects 1 person
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_malloc.c:270)
==15069== by 0x9FF758: mem_area_alloc(unsigned long*, mem_pool_t*) (mem0pool.cc:381)
==15069== by 0x9FE256: mem_heap_create_block(mem_block_info_t*, unsigned long, unsigned long, char const*, unsigned long) (mem0mem.cc:334)
==15069== by 0x9F4257: mem_heap_create_func(unsigned long, unsigned long, char const*, unsigned long) (mem0mem.ic:434)
==15069== by 0x9F4434: mem_alloc_func(unsigned long, unsigned long*, char const*, unsigned long) (mem0mem.ic:520)
==15069== by 0x9F4E5B: log_init() (log0log.cc:823)
==15069== by 0xAA2A20: innobase_start_or_create_for_mysql() (srv0start.cc:1880)
==15069== by 0x9B5799: innobase_init(void*) (ha_innodb.cc:3221)
==15069== by 0x634EAA: ha_initialize_handlerton(st_plugin_int*) (handler.cc:658)
==15069== by 0x761C4F: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1126)
==15069== by 0x763D89: plugin_init(int*, char**, int) (sql_plugin.cc:1417)
==15069== by 0x61D991: init_server_components() (mysqld.cc:4799)
==15069== by 0x622239: mysqld_main(int, char**) (mysqld.cc:5380)
==15069== by 0x604ECDC: (below main) (in /lib64/libc-2.12.so)
==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

Revision history for this message
Roel Van de Paar (roel11) wrote :

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

Revision history for this message
Roel Van de Paar (roel11) wrote :

Note to self: no AL re-testing required as per Sergei

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-650

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.