Results 1 to 5 of 5

Thread: Where can I find core dumps?

  1. #1
    Join Date
    Dec 2006
    Location
    USA
    Beans
    348
    Distro
    Ubuntu 13.04 Raring Ringtail

    Where can I find core dumps?

    Hey,

    I was wondering if anyone might be able to help me figure out where program core dumps go. Several times in the past I've had programs I'm using seg-fault, but i've never been able to find the core files for them. Today the same thing happened while using mysql-admin. I was hoping to find the core file so that I might report the crash, but I'm not sure where to find it. Anyone know where core dumps usually go?

    Thanks,
    Keith
    Open.nfo

  2. #2
    Join Date
    Jan 2005
    Location
    New Orleans
    Beans
    2,241
    Distro
    Ubuntu

    Re: Where can I find core dumps?

    Instead of showing you how, I recommend you read up on it here:

    http://www.justlinux.com/nhf/Filesys...bout_Them.html

    Be sure you understand any commands before running them.


  3. #3
    Join Date
    Sep 2006
    Beans
    2,914

    Re: Where can I find core dumps?

    do you system find and you will know
    Code:
    find / -name "core" -ls

  4. #4
    Join Date
    Oct 2007
    Location
    Fort Collins, CO, USA
    Beans
    480
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Where can I find core dumps?

    The old way was as described in the link that llamakc pointed to. The 'ulimit -c' setting that it refers to does affect whether core files are written and how large they are allowed to be. And the default 'ulimit -c' setting in ubuntu will prevent core files from being written.
    But there are new twists to the mechanism.
    The newer linux kernel versions will change the names of core files when asked to. The /proc/sys/kernel/core_uses_pid file or sysctl kernel.core_uses_pid setting can be used to make core file include a process id in their name. The /proc/sys/kernel/core_pattern file or sysctl kernel.core_pattern setting will cause core files to be written with an arbitrary name or in a different directory. It can even make core files be piped to a command instead of written to a file.
    In fact, ubuntu since the feisty release has included the 'apport' package which will intercept core dumps and create a report in /var/crash/ for core dumps that
    occur from programs in an ubuntu package. The apport process will also create a core file in the current working directory if the 'ulimit -c' setting allows that.

  5. #5
    Join Date
    Oct 2007
    Beans
    79
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Where can I find core dumps?

    # /etc/profile
    ulimit -S -c 0 > /dev/null 2>&1
    Registered Linux User #367849

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •