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.

core files in /root

Discussion in 'General Discussion' started by BigLebowski, Sep 28, 2009.

  1. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    hi there

    I've read posts about the ominous nature of these, but I'm having trouble finding the cause of them. I've used "strings" which seems to dump the file. The file contains the entire bash history, intermingled with garbage. Are there any easy ways to find out what is producing these files?

    Regards
    Dude
     
  2. cPanelDavidL

    cPanelDavidL Member
    Staff Member

    Joined:
    Nov 12, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    These core files will typically end up in specific folders that also house the originator of the dump itself. What you can do is isolate files within the dir that have exec bits in place and then run those executives to see if they once again regenerate the core. Once you know what makes the core you can then use GBD to backtrace that core.

    For example if we found /usr/local/cpanel/core.3483 and we figured out that /usr/local/cpanel/cpsrvd-ssl was producing these core files.

    Code:
    gdb /usr/local/cpanel/cpsrvd-ssl core.3483
    
    What this will produce is output telling you specifically why the core was created ( in most cases ).
     
  3. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Excellent, thank you, this was very helpful.

    Dude
     
Loading...

Share This Page