[lkml]   [1996]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectNO core dump ?
    Everybody is happy if no core dump occurs. Ok, I'm not happy.
    I have written a program and made some mistakes. The program
    crashes _Segmentation fault_ - but no core dump.

    Therefore I tested this one:

    int main(unsigned int argc, char **argv)
    char *p;

    p = 0;
    *p = 0;

    compiled by /usr/bin/gcc -v -g -o x x.c

    Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs
    gcc version 2.7.2
    /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -lang-c -v -undef -D__GNUC__=2
    -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__
    -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix)
    -Asystem(posix) -Acpu(i386) -Amachine(i386) -g -D__i486__ x.c /tmp/cca00926.i
    GNU CPP version 2.7.2 (i386 Linux/ELF)
    #include "..." search starts here:
    #include <...> search starts here:
    End of search list.
    /usr/lib/gcc-lib/i486-linux/2.7.2/cc1 /tmp/cca00926.i -quiet -dumpbase x.c
    -g -version -o /tmp/cca00926.s
    GNU C version 2.7.2 (i386 Linux/ELF) compiled by GNU C version 2.7.2.
    /usr/i486-linux/bin/as -V -Qy -o /tmp/cca009261.o /tmp/cca00926.s
    GNU assembler version 960228 (i486-linux), using BFD version
    /usr/i486-linux/bin/ld -m elf_i386 -dynamic-linker /lib/ -o x
    /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
    -L/usr/lib/gcc-lib/i486-linux/2.7.2 -L/usr/i486-linux/lib /tmp/cca009261.o
    -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o

    ldd x reports => /lib/

    ./x works with

    Segmentation fault

    but no CORE DUMP.

    Any ideas ?

    BTW kernel 1.3.97 (working without problems).

    Thanks Peter

    Peter Asboeck e-mail:
    s-mail: Peter Asboeck
    c/o Servo Data Ges.m.b.H.
    J.-K.-Vogelstr. 2
    A-4020 Linz

     \ /
      Last update: 2005-03-22 13:37    [W:0.022 / U:36.176 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site