|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I'd like to know how to find which program produced a particular core dump file, any idea? thanks, -- Cédric Lucantis |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Fri, Mar 09, 2007 at 03:16:11AM EST, Cédric Lucantis wrote:
> Hi, > > I'd like to know how to find which program produced a particular core dump > file, any idea? $ file core_file for further analysis see also options relative to core dumps under .. $ man gdb Thanks, cga -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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, -- -- Jhair -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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' |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
> >> 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' Strangely, it doesn't work on my system: omer@pc-cedric:~$ file core core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style But gdb -batch did the trick, thanks! -- Cédric Lucantis |
|
![]() |
| Outils de la discussion | |
|
|