Thread: core dump

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Sydney
    Posts
    1
    Rep Power
    0

    Angry core dump


    I have a program crashed saying segmentation fault, but I cannot see any clue from the output, I cannot even find a core dump file, how to have a core dump file while crash?
    Thanks
    Charlie
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    111
    ulimit -c unlimited

    christo
    This is me: http://chris.uk.com
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    India
    Posts
    61
    Rep Power
    12
    You can run a binary after compilation using gdb

    gdb "binary file"

    then give "r" to execute the binary it will tell you where the fault or error is, if there are any.

    you can see the man page of gdb for more info
    Regards
    JK

IMN logo majestic logo threadwatch logo seochat tools logo