When a core file is not a core file

When a core file is not a core file

Post by Jim Cincot » Sun, 11 Sep 1994 02:17:22



We use gcc 2.5.8 and gdb 4.13 on Solaris 2.3.  Some of our applications
say they dump core on a SEGV (or some other error) and running a
'file core' indicates that they did.  However, the core file size
is only 800K+ and when loaded into gdb, an error indicating that the
core file is of incorrect format is displayed.  We have recently
implemented threads usage in our code.  Could this be contributing
to our "core" file problem?  Is there a solution or workaround?
Core files are an essential debugging aid.

------------------------------------------------------------------------------

Marquette Electronics, Inc.              CompuServe: 71064,1202
8200 W. Tower Ave.
Milwaukee, WI 53223                      Jimmy the 'C'
Toll-free: (800) 558-5120 x3628
   Direct: (414) 362-3628                "I protest, I am not a merry man!"
      Fax: (414) 357-5947                                         -- Lt. Worf
------------------------------------------------------------------------------

 
 
 

1. gdb: core file not in executable format: File format not recognized

We have been having problems recently getting a copy of gdb 4.17 to work
under solaris 2.4 on a sparc20.  Using gcc 2.7.2.3, which seems to compile
correctly, and copies of gdb both built from source and also a prebuilt
binary downloaded from Sunfreeware.com, I am unable to read any core file.  
The message I always get is:

core: not in executable format: File format not recognized

I am beginning to think that the problem lies not with the build of gdb,
but more with the configuration of gcc.  Can anyone help me?  I have run
out of ideas about the cause of this.....

thanks

Lindsay Jack


Dept. of Elec. and Elec. Eng.,  tel : +44 (0)141 548 2205 (direct line)  
University of Strathclyde,      fax : +44 (0)141 552 2487 Glasgow G1 1XQ,
Scotland, U.K.

2. LICQ and Socks5 probs

3. Get "Segmentation fault (core dumped)" but no core file found

4. a newbie question: apending a line to another

5. Mysterious core file from "CORE"

6. Looking for WindowList for CDE... and some TriTeal CDE bug reports too!

7. XF86_SVGA core dumped, but where is the core file?

8. Generic Scsi Device

9. dump core or not dump core

10. To core or not to core - Part 2

11. To core or not to core - You tell me

12. file descriptors in a core file

13. Core files - maximum file size