lkml.org 
[lkml]   [1996]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: magic file entry to understand core dumps
Date
	I seem to remember a discussion about this before, and there was
something about making it core.test if it were to die. There were concerns
for folks still using minix-fs, etc.

We can't make everyone happy all the time.

- jared

Johnie Stafford graced my mailbox with this long sought knowledge:
> >>>>> "jm" == Jared Mauch <jared@wolverine.hq.cic.net> writes:
>
> jm> Works for me:
> jm> lunar:~> make test
> jm> cc test.c -o test
> jm> ./test
> jm> lunar:~> ./test
> jm> Floating exception (core dumped)
> jm> lunar:~> file core
> jm> core: ELF 32-bit LSB core file i386 (386 and up) Version 1
> jm> lunar:~> cat test.c
> jm> main()
> jm> {
> jm> printf("%d\n", 0/0);
> jm> }
> jm> lunar:~>
>
>
> jm> Marty Leisner graced my mailbox with this long sought knowledge:
> >>
> >> Does anyone have a magic line to correctly decode a linux elf
> >> core dump?
> >>
> >> I looked in gdb but got pretty confused...(but it seems to understand
> >> the core file).
> >>
> >> It would be worthwhile to write a cheezy program to print the command
> >> name of the core dump if file can't do it...
>
> I think he was looking more for the output that Solaris has:
>
> js@kraken$ ./test
> Arithmetic Exception (core dumped)
> js@kraken$ file core
> core: ELF 32-bit MSB core file SPARC Version 1, from 'test'
> ^^^^^^^^^^^
> This has the name of the offending command in the output file.
>
> Johnie
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Johnie Stafford | Internet E-mail: jms@pobox.com
> KB5YVF - Lafayette, LA | Ham Radio Packet: kb5yvf@k5arh.#lftla.la.us.noam
> | WWW URL: http://www.pobox.com/~jms
> pobox.com for lifetime email -- mail info@pobox.com
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.090 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site