[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X |
Date: |
Thu, 21 Jan 2016 17:05:48 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19435
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #5 from Nick Clifton <nickc at redhat dot com> ---
Hi Ian,
Sorry for dropping the ball on this one.
I am still not able to reproduce the problem, but I suspect that is because I
do not have the dsym file that is associated with the test binary that you
uploaded. Still there may a solution. There is only one call to free() inside
bfd_mach_o_close_and_cleanup(), if you ignore calls made by inferior functions,
and that is to free an allocated filename. So please could you try out this
patch:
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 72454f9..e0eaf3a 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -5805,7 +5805,7 @@ bfd_mach_o_close_and_cleanup (bfd *abfd)
mdata->dsym_bfd = NULL;
if (fat_bfd)
bfd_close (fat_bfd);
- free (dsym_filename);
+ /*free (dsym_filename);*/
}
}
and let me know if it works. It does mean that there would be a memory leak in
the mach-o backend, but not a serious one, and since the function is part of
the closing sequence it should not last for very long.
I did look at where dsym_filename might have been allocated, but it appears to
be a very tortuous route to where bfd_mach_o_close_and_cleanup tries to find
it.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/19435] New: objdump receives SIGABRT when disassembling Mach O binary on OS X, iankronquist at gmail dot com, 2016/01/06
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, iankronquist at gmail dot com, 2016/01/06
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, iankronquist at gmail dot com, 2016/01/06
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, iankronquist at gmail dot com, 2016/01/06
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, nickc at redhat dot com, 2016/01/08
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, iankronquist at gmail dot com, 2016/01/08
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X,
nickc at redhat dot com <=
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, nickc at redhat dot com, 2016/01/22
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, iankronquist at gmail dot com, 2016/01/24
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, cvs-commit at gcc dot gnu.org, 2016/01/25
- [Bug binutils/19435] objdump receives SIGABRT when disassembling Mach O binary on OS X, nickc at redhat dot com, 2016/01/25