Project

General

Profile

Actions

Bug #6359

open

memory leaks in format(1M)

Added by Hans Rosenfeld almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2015-10-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

While working on 6301 I noticed that there are a bunch of memory leaks in format(1M):

# env LD_PRELOAD=/lib/libumem.so UMEM_DEBUG=default format
^Z
# gcore `pgrep format`
gcore: core.102718 dumped
# mdb core.102718
> ::findleaks
CACHE     LEAKED   BUFCTL CALLER
080af010       5 081c99e8 libc.so.1`strdup+0x2e
080af010       3 081c9b50 libc.so.1`strdup+0x2e
080b6010       1 0812acd0 libfdisk.so.1`fdisk_alloc_part_table+0x1c
080b6010       1 0812ac58 libfdisk.so.1`fdisk_alloc_part_table+0x1c
080b6010       3 0812ad48 libfdisk.so.1`fdisk_alloc_part_table+0x1c
080c7010       1 081493f8 libfdisk.so.1`fdisk_read_extpart+0x28
080c7010       3 081494e8 libfdisk.so.1`fdisk_read_extpart+0x28
080c7010       1 08149470 libfdisk.so.1`fdisk_read_extpart+0x28
080cd010       1 0812a4d8 vtoc64_to_label+0x33
------------------------------------------------------------------------
   Total      19 buffers, 5200 bytes
>

No data to display

Actions

Also available in: Atom PDF