[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/12720] New: [regression] ar d segfaults
From: |
doko at debian dot org |
Subject: |
[Bug binutils/12720] New: [regression] ar d segfaults |
Date: |
Sun, 1 May 2011 15:47:02 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12720
Summary: [regression] ar d segfaults
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: address@hidden
ReportedBy: address@hidden
ar d libtcl8.5.a tclAppInit.o
segfaults.
caused by:
+++ b/binutils/ChangeLog
@@ -2,6 +2,8 @@
* strings.c (print_strings): Plug memory leak.
* ar.c (move_members): Plug memory leak.
+ (delete_members): Plug memory leak.
+ (write_archive): Plug memory leak.
reverting the change avoids the segfault.
(gdb) bt
#0 0x00007ffff739a165 in raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff739cf70 in abort () at abort.c:92
#2 0x00007ffff73d9ae0 in malloc_printerr (action=2, str=0x7ffff748df15
"free(): invalid pointer", ptr=0x3d61) at malloc.c:6272
#3 0x0000000000402e13 in delete_members (argc=4, argv=0x60e070) at
../../binutils/ar.c:1145
#4 main (argc=4, argv=0x60e070) at ../../binutils/ar.c:742
(gdb) up
#1 0x00007ffff739cf70 in abort () at abort.c:92
92 abort.c: No such file or directory.
in abort.c
(gdb) up
#2 0x00007ffff73d9ae0 in malloc_printerr (action=2, str=0x7ffff748df15
"free(): invalid pointer", ptr=0x3d61) at malloc.c:6272
6272 malloc.c: No such file or directory.
in malloc.c
(gdb) up
#3 0x0000000000402e13 in delete_members (argc=4, argv=0x60e070) at
../../binutils/ar.c:1145
1145 free ((char *) tmp);
(gdb) p tmp
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug binutils/12720] New: [regression] ar d segfaults,
doko at debian dot org <=