[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, May 22, 2010 at 23:07, Aioanei Rares <debian.dev.list@gmail.com> wrote:
On 05/22/2010 08:10 PM, Avinash H.M. wrote:
Hi All,

I am using DSL [ damn small linux ] which is branched from debain.
I am trying to use GCC, GDB.  Able to install both of them.

I am doing following
     - run a helloworld.c program whic has a while loop.  So while
running, its stuck in while.
     - another shell, "kill -11 PID" [ PID of the ./a.out ]
After kill, i get Segmentation fault.  But Core is not dumped. [ I
expect a print ( Core dumped ) ]

Anyone faced this ??? Please help.

- Avinash

First, compile your program with -g, then take a look at man core. Not every program that has received
a segfault signal dumps core.  Look at gcore to see how to generate it.

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4BF81657.7060002@gmail.com" target="_blank">http://lists.debian.org/4BF81657.7060002@gmail.com

Normally core dump is disabled.  You could find the maximum size of core file created using "ulimit -a", normally that is 0.
Increase it using
ulimit -c <maximum size>

Reply to: