This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/14290] gdb_bfd_unref frees an already freed memory block


http://sourceware.org/bugzilla/show_bug.cgi?id=14290

--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2012-11-19 14:55:39 UTC ---
(In reply to comment #3)

> At any rate, I can confirm that this bug does not exist in 7.5 but exists in
> trunk. Let me know if there's anything else I can do to help.

> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> 0x00000001001dcccd in gdb_bfd_unref (abfd=0x10097b580) at gdb_bfd.c:291
> 291      gdb_assert (gdata->refc >= 1);
> (top-gdb) bt
> #0  0x00000001001dcccd in gdb_bfd_unref (abfd=0x10097b580) at gdb_bfd.c:291

This may mean that a BFD was opened but not registered with gdb's
BFD reference counter.

I think the most useful bit of information would be to find out where
this BFD is created.  With that I think I could write a patch that you
could test.

I don't have access to Mac OS so I can't do this myself.

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]