Re: How to get RedHat 8.0 to allow core dump files

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

 



On Thu, Dec 12, 2002 at 09:48:19PM -0600, Dan Winslow wrote:
> core file size        (blocks, -c) unlimited
> This is in the current shell I am running programs from. It will not produce
> a core dump file. The fault says :
> Segmentation fault (core dumped)
> So its trying to dump, but.....no file.

Are you trying to see if a core dump has been produced by running ls core?
You won't find it that way, since in RH 8.0, the core files are named
core.$$ (in shell syntax) - ie, the PID gets appended.

binand@binand[~]:(7) cat a.c
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
int main (void) {
    printf ("PID = %d\n", getpid());
    raise (SIGQUIT);
    return 0;
}
binand@binand[~]:(8) gcc a.c
binand@binand[~]:(9) ./a.out
PID = 15611
Quit (core dumped)
binand@binand[~]:(10) ls -l core.15611
-rw-------    1 binand   binand      65536 Dec 13 09:37 core.15611
binand@binand[~]:(11) cat /etc/redhat-release
Red Hat Linux release 8.0 (Psyche)

Binand



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux