PDA

View Full Version : core files after reloading


iCARus
05-11-2008, 06:15 AM
Hi.

After the reload of httpd (cPanel) one of our custmer get core file.

core.4169: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'lsphp5'


Is there any way to know why is this core created ?

Thanks.

mistwang
05-11-2008, 12:45 PM
That might be a PHP problem, you should use GDB to check the core file against lsphp5 binary.

gdb lsphp5 <core_file>
bt

iCARus
05-12-2008, 12:23 AM
I get this:


Core was generated by `lsphp5'.
Program terminated with signal 11, Segmentation fault.
Cannot access memory at address 0xb7ff6000
#0 0x009d599f in ?? ()

mistwang
05-12-2008, 10:46 AM
The call stack has been messed up, cannot tell anything.
Anyway, if it does not happen frequently, there is nothing to worry about.

felosi
05-17-2008, 02:54 AM
Well you may wanna set your core limits in limits.conf to 0 otherwise if a user has a script that doesnt agree with lsphp it can fill up your entire disk space pretty fast. Trust me Ive been there lol. Also it wouldnt hurt to disable core dumps in litespeed admin.

As far as being php error though mistwang I understand that but is this just somethng lsapi php does dumping the cores like that? I never seen apache/mod_php make the core files like that.

hadyabed
07-03-2008, 09:15 PM
Well you may wanna set your core limits in limits.conf to 0 otherwise if a user has a script that doesnt agree with lsphp it can fill up your entire disk space pretty fast. Trust me Ive been there lol. Also it wouldnt hurt to disable core dumps in litespeed admin.

As far as being php error though mistwang I understand that but is this just somethng lsapi php does dumping the cores like that? I never seen apache/mod_php make the core files like that.

I have a problem similar to his. Where is limits.conf located?
Thanks.
-Hady Abed

felosi
07-03-2008, 10:01 PM
well it does no good with litespeed as I think litespeeds sets its own ulimits whicvh includes core files. Generally it is located in /etc/security/limits.conf but from experience will do no good with lsws

There is a patch george made and posted in one of my threads, it works, search for it