Re: CORE dumps...

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Sun, 27 Oct 1996 22:54:27 +0000 (GMT)


On Sun, 27 Oct 1996, DPD wrote:

> Hello there!
>
> Can some one help find out more about the "core" files I have on my
> system......
>
> I would appreciate some pointers as to where I can read more about
> where they come from, how they are created, etc...
>

When some program causes a problem (ie is broken), and trys to do
something illegal (like write to a piece of memory it dosn't own), it's
killed off.

To be helpful, we can dump it's memory out to a file (the core file), if
you can then load the core into gdb (like $ gdb /whatever/program core),
and attempt to debug the problem. Unfortnatly, it can be the libaries
that cause the core dump.

If you don't want to do any debugging, you can limit the size of the core
file that can be dumped (ie limit it to 0 bytes, and you don't get a core
at all)

If you want to do that, in bash just type 'ulimit -c 0', adding it to
~/.profile or /etc/profile would be a good idea tho ;).

> Thanks!
>
> Dom
>
>
Bryn

--
PGP key pass phrase forgotten,   \ Overload -- core meltdown sequence 
again :( and I don't care ;)      |            initiated.
                                 / This space is intentionally left   
                                |  blank, apart from this text ;-)
                                 \____________________________________