[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/29433] New: Detected memory leaks in readelf
From: |
tricker51449 at gmail dot com |
Subject: |
[Bug binutils/29433] New: Detected memory leaks in readelf |
Date: |
Sat, 30 Jul 2022 14:38:04 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29433
Bug ID: 29433
Summary: Detected memory leaks in readelf
Product: binutils
Version: 2.38
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: tricker51449 at gmail dot com
Target Milestone: ---
Created attachment 14246
--> https://sourceware.org/bugzilla/attachment.cgi?id=14246&action=edit
Exception input
Hi, binutils team
When i use the readelf in binutils-2.38, i get memory leaks by
AddressSanitizer.
# ./binutils/readelf -a readelf_crash
==127064==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 8192 byte(s) in 1 object(s) allocated from:
#0 0x5590aea8ec2e in malloc
(/workspace/binutils-2.38/binutils/readelf+0x2b1c2e) (BuildId:
5d094d520f89bb06)
#1 0x5590aebf660b in xrealloc
/workspace/binutils-2.38/libiberty/./xmalloc.c:179:14
#2 0x5590aebf660b in xcrealloc
/workspace/binutils-2.38/binutils/./dwarf.c:10762:10
#3 0x5590aebf660b in read_and_display_attr_value
/workspace/binutils-2.38/binutils/./dwarf.c:2792:7
#4 0x5590aebefab8 in read_and_display_attr
/workspace/binutils-2.38/binutils/./dwarf.c:3342:10
#5 0x5590aebefab8 in process_debug_info
/workspace/binutils-2.38/binutils/./dwarf.c:3956:15
#6 0x5590aeb00c96 in load_separate_debug_files
/workspace/binutils-2.38/binutils/./dwarf.c:11542:11
#7 0x5590aeb00c96 in process_object
/workspace/binutils-2.38/binutils/readelf.c:21967:27
#8 0x5590aeafbe67 in process_file
/workspace/binutils-2.38/binutils/readelf.c:22394:13
#9 0x5590aeafbe67 in main
/workspace/binutils-2.38/binutils/readelf.c:22465:11
#10 0x7fe068bc6d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId:
89c3cb85f9e55046776471fed05ec441581d1969)
SUMMARY: AddressSanitizer: 8192 byte(s) leaked in 1 allocation(s).
Attached is the exception input file. Any help would be greatly appreciated.
Thanks & Best regards!
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/29433] New: Detected memory leaks in readelf,
tricker51449 at gmail dot com <=