Re: core dumps
- From: Bob McGowan <bob_mcgowan@xxxxxxxxxxxx>
- Date: Mon, 12 Mar 2007 09:28:34 -0700
Jhair Tocancipa Triana wrote:
Cédric Lucantis writes:
Hi,
I'd like to know how to find which program produced a particular core dump file, any idea?
,----
| (debian-unstable)jtocancipa@golem:~$ ulimit -c unlimited
| | (debian-unstable)jtocancipa@golem:~$ echo "
| #include <stdio.h>
| | int main ()
| {
| char * foo = 0;
| *foo = 'bar';
| | return 0;
| }
| | " | gcc -xc -o baz -
| | (debian-unstable)jtocancipa@golem:~$ ./baz | Segmentation fault (core dumped)
| | (debian-unstable)jtocancipa@golem:~$ gdb -batch -c ./core | grep -i generated
| Core was generated by `./baz'.
`----
HTH,
May I suggest using the 'file' command?
$ baz
Segmentation fault (core dumped)
$ ls
baz core
$ file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'baz'
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- Follow-Ups:
- Re: core dumps
- From: Cédric Lucantis
- Re: core dumps
- References:
- core dumps
- From: Cédric Lucantis
- Re: core dumps
- From: Jhair Tocancipa Triana
- core dumps
- Prev by Date: Re: PayPal - Limited account access -
- Next by Date: Re: authentication failure
- Previous by thread: Re: core dumps
- Next by thread: Re: core dumps
- Index(es):
Relevant Pages
|
|