This is the mail archive of the gdb-patches@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]

pushed: [RFA] crash while re-reading symbols from objfile on ppc-aix.


> 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


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