iirc core dump format was changed to elf(5) sometime
around when PIE was imported, you probably need older gdb

On 20:38 Thu 08 Oct, openbsd.misc.tmp openbsd.misc.tmp wrote:
> Hi!
> 
> I have an application that in very seldom cases causes core dumps on about a
> dotzen machines that are located on customers sites.
> 
> What I have is application.core, but I cannot read this:
> 
> # gdb -c /home/me/application.core /home/me/application
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-unknown-openbsd4.3"...(no debugging symbols
> found)
> 
> "/home/me/application.core " is not a core dump: File format not recognized
> (gdb) quit
> 
> # file /home/me/application.core
> /home/me/application.core: data
> 
> Anybody got an idea how this can happen? What can I do with the file I have?
> 
> This happened more than once. Yet, all the .core files I was able to get
> were unusable to me. However, when I initiate a .core file by exiting the
> application intentionally with a signal, the resulting core files are OK.
> 
> Thanks in advance!
> 
> Regards,
> T.

Reply via email to