[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/26239] New: memory leak in libiberty, hashtab.c
From: |
featherrain26 at gmail dot com |
Subject: |
[Bug binutils/26239] New: memory leak in libiberty, hashtab.c |
Date: |
Tue, 14 Jul 2020 13:08:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26239
Bug ID: 26239
Summary: memory leak in libiberty, hashtab.c
Product: binutils
Version: 2.36 (HEAD)
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: featherrain26 at gmail dot com
Target Milestone: ---
Created attachment 12698
--> https://sourceware.org/bugzilla/attachment.cgi?id=12698&action=edit
leak instance
Hi, there.
There is a memory leak in file libiberty/hashtab.c.
Here is the reproducing environment and procedure:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
gcc: 5.4.0
compilation:
CFLAGS="-fsanitize=address,undefined" ./configure
nm-new -C -a -l --synthetic poc
Here is the error message:
==77316==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 224 byte(s) in 2 object(s) allocated from:
#0 0x7f88f652c7fa in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x987fa)
#1 0x93545c in htab_create_typed_alloc ../../libiberty/hashtab.c:357
#2 0x93545c in htab_create_alloc ../../libiberty/hashtab.c:285
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7f88f652c662 in malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98662)
#1 0x45bff7 in bfd_malloc ../../bfd/libbfd.c:275
Indirect leak of 208 byte(s) in 2 object(s) allocated from:
#0 0x7f88f652c7fa in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x987fa)
#1 0x935473 in htab_create_typed_alloc ../../libiberty/hashtab.c:360
#2 0x935473 in htab_create_alloc ../../libiberty/hashtab.c:285
SUMMARY: AddressSanitizer: 456 byte(s) leaked in 5 allocation(s).
Regards,
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/26239] New: memory leak in libiberty, hashtab.c,
featherrain26 at gmail dot com <=