The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/var/log/core file

Discussion in 'General Discussion' started by drose25, Dec 21, 2006.

  1. drose25

    drose25 Well-Known Member

    Joined:
    Apr 3, 2002
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    What is the core file in the /var/log generated by? I have one that is 500mb or so, and I want to either set it up to be rotated in logrotate.d if it's a log file, or figure out why it's there if not.
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    A fatal error in a program automatically triggers a core dump, and by extension the phrase "to dump core" has come to mean, in many cases, any fatal error. A core dump is often a useful tool for a programmer seeking to isolate and identify an error in an application/service. You can delete these files in your /var/log if you want, unless you wish to logrotate them for future diagnosis.
     
  3. randomuser

    randomuser Well-Known Member

    Joined:
    Jun 25, 2005
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    To see what application caused the coredump, type: file core
     
  4. bjarne

    bjarne Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Core dumps is from prgrams that exit bad and leave the core dump for investigations, I think:)

    Worse is that hackers are doing stuff to make core dumps and get root access, this is possible on like Centos 4.4 if kernel is not upgraded, and others systems to.

    Do check you have a updatet kernel.
     
Loading...

Share This Page