Two DBUG +O commands in a row leak the first output file handle
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.6 |
Invalid
|
Low
|
Laurynas Biveinis | |||
5.7 |
Invalid
|
Low
|
Laurynas Biveinis |
Bug Description
SET SESSION debug= '+O,../../log/bug46165.5.trace';
SET SESSION debug= '+O,../../log/bug46165.6.trace';
SET SESSION debug= '-O';
results in unclosed bug46165.5.trace.
This also shows up as a Valgrind error on main.variables_
main.variables_
worker[3] Valgrind report from /home/laurynas/
main.variables
-------
HEAP SUMMARY:
in use at exit: 30,644,184 bytes in 209 blocks
total heap usage: 66,915 allocs, 66,706 frees, 87,992,076 bytes allocated
552 bytes in 1 blocks are still reachable in loss record 107 of 128
at 0x4C2DB8F: malloc (vg_replace_
by 0x666BC8C: __fopen_internal (iofopen.c:69)
by 0xAC4619: DBUGOpenFile (dbug.c:1904)
by 0xAC65AE: DbugParse (dbug.c:607)
by 0xAC68B7: _db_set_ (dbug.c:800)
by 0x67FB08: Sys_var_
by 0x51E2BE: sys_var:
by 0x51E658: set_var:
by 0x51EF92: sql_set_
by 0x5A035E: mysql_execute_
by 0x5A4B6F: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6060)
by 0x5A63AC: dispatch_
by 0x5A8158: do_command(THD*) (sql_parse.cc:789)
by 0x661DF2: do_handle_
by 0x661EEF: handle_
by 0x83F867: pfs_spawn_thread (pfs.cc:1015)
LEAK SUMMARY:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 552 bytes in 1 blocks
suppressed: 30,643,632 bytes in 208 blocks
tags: | added: ci upstream valgrind |
summary: |
- Two DBUG +O commands in a row leak the first output file + Two DBUG +O commands in a row leak the first output file handle |
https:/ /github. com/percona/ percona- server/ pull/806 /github. com/percona/ percona- server/ pull/807 /github. com/percona/ percona- server/ pull/808
https:/
https:/