Actions
Bug #5918
openMemory leak when zfs_destroy_snaps_nvl fails
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-05-11
Due date:
% Done:
0%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
The sample program attached simulates a failing snapshot destroy.
When executed, mdb shows the leak:
> ::findleaks CACHE LEAKED BUFCTL CALLER 0807d010 1 080b49e8 libnvpair.so.1`nv_alloc_sys+0x1b 0807d010 1 080b2440 libnvpair.so.1`nv_alloc_sys+0x1b 08082010 1 080c6040 libnvpair.so.1`nv_alloc_sys+0x1b ------------------------------------------------------------------------ Total 3 buffers, 128 bytes
Files
Updated by Jan Schlien about 7 years ago
I executed the sample program with the following command
$ LD_PRELOAD="libumem.so" UMEM_DEBUG=default ./destroy-leak
Updated by Yuri Pankov about 7 years ago
You could do a '::sysbp _exit' and run your test case from inside the mdb instead of adding the sleep().
Actions