This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
pushed: [RFA] crash while re-reading symbols from objfile on ppc-aix.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 13 Nov 2013 06:47:40 +0400
- Subject: pushed: [RFA] crash while re-reading symbols from objfile on ppc-aix.
- Authentication-results: sourceware.org; auth=none
- References: <1384258285-21433-1-git-send-email-brobecker at adacore dot com> <874n7hilie dot fsf at fleche dot redhat dot com>
> Joel> * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
> Joel> after re-initialization of OBJFILE's obstack.
>
> Joel> Tested on x86_64-linux, no regression. Also tested on ppc-aix using
> Joel> AdaCore's testsuite (expect hangs at the end of the test, on ppc-aix,
> Joel> so I can't collect any result).
>
> Joel> Ok to commit?
Just to confirm that this patch is now in.
I made one small change to the revision log, based on a private
command from Pedro:
The crash occurs while trying to allocate some memory on the bfd_bfd
obstack. But, at some point in time, the whole obstack data gets
corrupted, nullified. So the memory allocation fails trying to call
a function at a NULL address. (side note: when debugging GDB in GDB,
top-gdb reports a SIGILL, while the shell makes it look like it was
a SIGSEGV - the discrepancy is not critical to the investigation
and therefore was not explored)
I changed it to say that it just fails, and explained that I wasn't
really sure which exact signal(s??) get raised.
--
Joel