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.

cPanel results in Segmentation faults

Discussion in 'General Discussion' started by Spike1506, May 10, 2010.

  1. Spike1506

    Spike1506 Registered

    Joined:
    May 10, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    All of the sudden every script in /scripts results in a Segmentation fault.
    Even upgrading or a force upgrade is not possible due the segmentation faults.
    yum update results in: memory alloc (71900 bytes) returned NULL.
    And running perl commands also results in segmentation faults.

    How can I solve this?
    My cPanel version: 11.25.0-CURRENT_45139
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Wide variety of possible causes

    Segmentation faults can be caused by any number of things, and it sounds like this is affecting most operations on the server. The first thing to do is to check dmesg:

    Code:
    # dmesg
    In the output, look specifically for any memory- or hardware-related error or failure messages. Next, check to see if the system has any free RAM:

    Code:
    # free -m
    I would recommend that you submit a ticket so that we can look at the server directly. There really is a large number of things that can be wrong, and it is difficult to even speculate without logging into the server.
     
  3. cPanelJamyn

    cPanelJamyn Social Engineer
    Staff Member

    Joined:
    Jan 29, 2009
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    0
    This is likely an insufficient memory issue; I presume you're running on a VM (with associated dynamic memory allocation) so these issues can happen more often in those environments. If it exists, what does 'cat /proc/user_beancounters' return?
     
  4. Spike1506

    Spike1506 Registered

    Joined:
    May 10, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    dmesg does not show any hardware related issues to me.
    Only messages like: perl[19803]: segfault at 00007fffcb462ff0 rip 00002aeedfee2be4 rsp 00007fffcb462ff0 error 6
    setupvirtfs[19942]: segfault at 00007fffa2331ff8 rip 00002b5208d514c0 rsp 00007fffa2332008 error 6
    fixperl[20228]: segfault at 00007fff6834cff0 rip 00002b964303585a rsp 00007fff6834cfa0 error 6

    free -m results in:
    total used free shared buffers cached
    Mem: 1024 818 205 0 15 137
    -/+ buffers/cache: 664 359
    Swap: 2047 172 1875

    So the amount of memory is not a problem either.
    If I have to support a ticket what is the best place to do so?

    That results in a "No such file or directory" error.
     
Loading...

Share This Page