This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14290] gdb_bfd_unref frees an already freed memory block
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 27 Nov 2012 15:47:29 +0000
- Subject: [Bug gdb/14290] gdb_bfd_unref frees an already freed memory block
- Auto-submitted: auto-generated
- References: <bug-14290-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14290
--- Comment #7 from Tom Tromey <tromey at redhat dot com> 2012-11-27 15:47:29 UTC ---
Thanks for the analysis.
For submitting patches see:
http://sourceware.org/gdb/contribute/
I read this patch and I think it may still have problems,
although it is definitely an improvement over the status quo.
First, darwin_bfd_open leaks 'abfd'.
Second, if we close 'abfd' then the dependent BFD probably breaks.
One approach would be to write a wrapper for bfd_mach_o_fat_extract
along the lines of gdb_bfd_openr_next_archived_file.
I'll upload a patch shortly. I'd appreciate it if you could try
it out and see whether it fixes your problem.
--
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.