Page 1 of 1
cpanel - tomcat Seg Faults
Posted: Tue Jul 19, 2011 11:37 am
by hostingguy
Get these quite often - its a development server in a non production non public environment and so no one is actually using it for hosting content, and so its taking no traffic but these errors occurr quite often.
Jul 19 08:02:23 hostname kernel: jsvc[20755]: segfault at 76c50ae95da0 ip 000076c50ac7f9ec sp 00007fffc96364e0 error 7 in ld-2.5.so[76c50ac79000+1c000]
Jul 19 08:02:23 hostname kernel: grsec: Segmentation fault occurred at 000076c50ae95da0 in /usr/local/jakarta/apache-tomcat-5.5.33/bin/jsvc[jsvc:20755] uid/euid:102/102 gid/egid:99/99, parent /usr/local/jakarta/apache-tomcat-5.5.33/bin/jsvc[jsvc:3248] uid/euid:0/0 gid/egid:0/0
Re: cpanel - tomcat Seg Faults
Posted: Tue Jul 19, 2011 12:46 pm
by mikeshinn
Does it run and serve content? Or does it just die right away?
Re: cpanel - tomcat Seg Faults
Posted: Tue Jul 19, 2011 12:49 pm
by hostingguy
Since no one uses it, no domains are on it, and there is no content to serve I am assuming that its trying to start and dying right away but since Im making an assumption that may not be the case.
Re: cpanel - tomcat Seg Faults
Posted: Tue Jul 19, 2011 6:22 pm
by mikeshinn
If its dying right away, its possible you just need to configure java to be allowed to smash your stack. Have you tried configuring it to do this, per the FAQ below:
https://www.atomicorp.com/wiki/index.ph ... ped_by_PAX
It may also be loading a library thats trying to configure your stack to be smashable, I've seen some poorly packaged openssl libraries setup this way (*shudder!* openssl smashing your stack?! Instant root!). If setting java to smash the stack doesnt resolve the issue, and you cant find a library trying to do this it might be a real segfault, in which case I recommend this process:
https://www.atomicorp.com/wiki/index.php/Apache
Although thats for apache segfault debugging, the principle still applies.
Re: cpanel - tomcat Seg Faults
Posted: Wed Jul 20, 2011 1:43 pm
by hostingguy
I did
/sbin/chpax -ps /usr/local/jakarta/apache-tomcat-5.5.33/bin/jsvc
but that didnt seem to change anything.
psmon isnt installed since its a cpanel system and there are all the perl dependancies so Im not sure why it would be doing it on a fairly regular basis
Re: cpanel - tomcat Seg Faults
Posted: Wed Jul 20, 2011 3:09 pm
by mikeshinn
You need a few more switches for java generally, try -emrspx.