Project

General

Profile

Actions

Bug #5918

open

Memory leak when zfs_destroy_snaps_nvl fails

Added by Jan Schlien over 6 years ago. Updated over 6 years ago.

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

destroy-leak.c (1.54 KB) destroy-leak.c Jan Schlien, 2015-05-11 08:58 AM
Actions #1

Updated by Jan Schlien over 6 years ago

I executed the sample program with the following command

$ LD_PRELOAD="libumem.so" UMEM_DEBUG=default ./destroy-leak
Actions #2

Updated by Yuri Pankov over 6 years ago

You could do a '::sysbp _exit' and run your test case from inside the mdb instead of adding the sleep().

Actions

Also available in: Atom PDF