According to cristian: While burning my CPU.
> 
> Dear Sirs,

Oops, be carefull there are some "lady" linux-users around.

> 
> I should like to know what the file "core" is for. I noticed that it is
> not in the folder from the begining, it appears latter.
> 
> What is the meaning of the message "core dumped" and what to do to
> correct this situation ?

A file named core is a result of a segmentation fault caused by a program
either being started or crashing when it did a system call, normaly speaking
you should not get core files.
They contain things like memory states and other programing info.

To find out which program caused the seg, fault cd to the directory with the
core file in it and type 'gdb -c core' you will then see what program caused
the dump. You can use more commands to probe deeper into the core file to
see exachtly where the program exits, this depends on how the program was
compiled, man gdb will help you a little more. Use quit to leave gdb.

GDB is the GNU debugger and should be on your system if you installed the
GNU utils, a standard default install would install them automaticly.

Another handy program for debugging is 'strace', suppose the program which
causes a seg fault is called pipo, you would do the following;

'strace -o file.txt pipo'

As soon as the prompt reappiers you can look into file.txt to see what 
system calls the program uses and see where it exits. Be carefull with
strace on a running program, it will create one BIG file if left running 
to long.

> 
> Thanks
> 
> Cristian Carnutu
> 
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to