This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB doesnot catches segmentation fault


Mahmood Naderan <nt_mahmood@yahoo.com> writes:

>>Then:
>>gdb gdb --core=yourcore.pid
>>Where "youcore.pid" is the core-file that GDB generated on crash
>
> Where does it save that file? I can not find it
>
> // Naderan *Mahmood;

With Fedora 15, it places it in the same place from where the program
was executed:

[user@localhost test]$ ulimit -c unlimited
[user@localhost test]$ sleep 5000
Segmentation fault (core dumped)
[user@localhost test]$ ls core.31559 

Cheers,

Phil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]