gdb crash: double free with free_objfile
Mathieu Lacage
mathieu.lacage@gmail.com
Wed Jun 23 15:15:00 GMT 2010
hi,
On Fri, Feb 5, 2010 at 5:39 PM, Tom Tromey <tromey@redhat.com> wrote:
> Nope, right now objfile has the base address baked in to many things,
> e.g. symbol addresses or psymtabs_addrmap. I think we'd like to change
> this, so that we can share objfiles between inferiors, but nobody has
> tried to do that yet. I don't know how hard this would be.
>
> Your quickest route is probably a form of (a) -- change symbol_add_stub
> to check both the file name and the base address.
It took me a long time to get back to this issue because I was busy
with a couple of other things but the attached patch which was
generated against CVS HEAD fixes the problem for me (i.e., avoids the
segfault in gdb and gets me readable backtraces). Is there something
else I could do to help get this issue fixed in mainline ?
Mathieu
--
Mathieu Lacage <mathieu.lacage@gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solib.patch
Type: application/octet-stream
Size: 1335 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20100623/f9e040d1/attachment.obj>
More information about the Gdb
mailing list