Re: Why ? When segmentation fault,there has no core file

2006-07-09 Thread Valdis . Kletnieks
On Fri, 07 Jul 2006 19:51:53 +0800, chao yeaj said: Hello everyone I compiled my application with the ``-g '' options and when debug with gdb, i can list the source file You can also say 'gdb my_program' at the shell prompt, and then issue the gdb command 'run'. When the

Re: Why ? When segmentation fault,there has no core file

2006-07-09 Thread Atanas Atanasov
My best advice is to read the GDB Manual - http://www.gnu.org/software/gdb/documentation/. Chapters 4 and 5 should give you a fairly good idea how to perform simple debugging on your program. If you don't feel like get some GUI debugger like Insight (http://sources.redhat.com/insight/). Atanas

Why ? When segmentation fault,there has no core file

2006-07-07 Thread chao yeaj
Hello everyone I compiled my application with the ``-g '' options and when debug with gdb, i can list the source file The problem is : when segmentation fault ,there has nocore file if the has a core file ,i can debug it, but there has nocore file why?

Re: Why ? When segmentation fault,there has no core file

2006-07-07 Thread John Cupitt
On 7/7/06, chao yeaj [EMAIL PROTECTED] wrote: The problem is : when segmentation fault ,there has nocore file if the has a core file ,i can debug it, but there has nocore file You probably have coredumps turned off. Try ulimit -c unlimited before running your program.

Re: Why ? When segmentation fault,there has no core file

2006-07-07 Thread Andrey Dubravin
On Fri, 7 Jul 2006 13:01:06 +0100 John Cupitt [EMAIL PROTECTED] wrote: On 7/7/06, chao yeaj [EMAIL PROTECTED] wrote: The problem is : when segmentation fault ,there has no core file if the has a core file ,i can debug it, but there has nocore file You probably have coredumps

Why ? When segmentation fault,there has no core file

2006-07-07 Thread chao yeaj
Hello everyone I compiled my application with the ``-g '' options and when debug with gdb, i can list the source file The problem is : when segmentation fault ,there has nocore file if the has a core file ,i can debug it, but there has nocore file why?

Re: Why ? When segmentation fault,there has no core file

2006-07-07 Thread Valdis . Kletnieks
On Fri, 07 Jul 2006 19:51:53 +0800, chao yeaj said: Hello everyone I compiled my application with the ``-g '' options and when debug with gdb, i can list the source file You can also say 'gdb my_program' at the shell prompt, and then issue the gdb command 'run'. When the