Segfaults all over the place!

techid

Member
Aug 5, 2002
24
0
151
phpManger requires the Mcrypt module in order to function. This module was not compiled with PHP so I ran the buildapache.sea to include the module. I ran this on Tuesday at 24:30ish. At about 00:04 Wednesday Morning I received my first Seg Fault Error.

I am going with the problem is the Mcrypt Module for PHP.
 
Last edited:

techid

Member
Aug 5, 2002
24
0
151
I am in the process of running the two commands above and the buildapache.sea. Below I have included the options I selected for buildapache.

--Apache--
~User Bandwidth Leech Protection
FrontPage Module
Raise Hard_Server_Limit
Raise FD_Setsize
Rewrite Module
SSL Module
suEXEC

--PHP--
BC Math
Calendar Support
Curl
Curl SSL Support
FTP
GD
IMAP Module
MB String
Mcrypt
Ming Support
Magic Quotas
mySQL Module
Pear
Sablot XSLT
Sockets
Track Vars
versioning
zlib

Once this is completed, I will let you know what the outcome is.
 
Last edited:
O

ozzi4648

Guest
Well im glad i did not jump on the bandwaggon by upgrading to the latest version of buildapache.sea. Ill let you guys be the guinea pigs with this one. My origional cpins works just fine, the one i installed a few months back with php 4.2.3. Even php 4.3.0 is major vuln right now. Yes i had a few segfaults posting the origional msg, but as mysteriously as they appeared they suddenly dissappeared. Not sure what i did. I think i just deleted some of those ridiculously huge log files in /usr/local/apache/logs/* since Cpanel is not rotating them, still!!
 

techid

Member
Aug 5, 2002
24
0
151
With using the buildapache.sea (Thu Mar 6 01:34:39 2003) and compiling the new version of Mcrypt that was included in it I have received 0 Seg Fault errors in my error log within the past 12 hours.

I am still running into one other small issue, but I don't think it is related to the original problem. Until I figure that out, I am saying the original problem has been fixed.
 

fmalekpour

Well-Known Member
PartnerNOC
Dec 4, 2002
85
1
158
We have had this problem since last night, apache will stop every almost 3 hours, sometimes segment fault and sometimes FD_SETSIZE, we just have this problem on one of our servers. All of others work great.
 

acer2k

Well-Known Member
Nov 12, 2001
107
0
316
I am using the latest buildapache (April 15th?) And am still getting these segfaults ::

[Sun May 11 10:11:15 2003] [notice] child pid 2384 exit signal Segmentation fault (11)
[Sun May 11 10:11:21 2003] [notice] child pid 2383 exit signal Segmentation fault (11)
[Sun May 11 10:11:23 2003] [error] [client 61.219.37.9] File does not exist: /home/phparena/public_html/pafaq
[Sun May 11 10:11:23 2003] [error] [client 61.219.37.9] File does not exist: /home/phparena/public_html/404.shtml
[Sun May 11 10:11:24 2003] [notice] child pid 2382 exit signal Segmentation fault (11)
[Sun May 11 10:11:30 2003] [notice] SIGUSR1 received. Doing graceful restart
[Sun May 11 10:13:41 2003] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun May 11 10:13:41 2003] [crit] (98)Address already in use: make_sock: could not bind to port 443
[Sun May 11 10:13:41 2003] [crit] (98)Address already in use: make_sock: could not bind to port 443
[Sun May 11 10:13:41 2003] [notice] Apache/1.3.27 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.0 PHP/4.3.1 FrontPage/5.0.2.2510 mod_ssl/2.8.12 OpenSSL/0.9.6b configured -- resuming normal operations
 

acer2k

Well-Known Member
Nov 12, 2001
107
0
316
Still having segfault problems. Is this ever going to be fixed?

cPanel.net Support Ticket Number:
 

cyon

Well-Known Member
PartnerNOC
Jan 15, 2003
314
0
241
same here..

I found this problem first time described one year ago (06-16-02)..

I would realy be happy for a solution!

cPanel.net Support Ticket Number:
 

WeMasterz5

Well-Known Member
Feb 24, 2003
360
0
166
Miami
still here

[Sun Jul 20 23:08:36 2003] [notice] child pid 21904 exit signal Segmentation fault (11)

is there a way of telling what the child pid # is for

cPanel.net Support Ticket Number:
 

porcupine

Well-Known Member
PartnerNOC
Apr 18, 2002
74
0
306
Toronto, Ontario
cPanel Access Level
DataCenter Provider
I've run into the same thing, but noticed a pattern.

The seg faults, they only happen when someone attempts to load a .htaccess protected page. The page goes to a cannot be displayed (regardless if you try just a directory, a specific page, etc. etc.):

[Tue Jul 22 04:56:01 2003] [notice] child pid 22221 exit signal Segmentation fault (11)
[Tue Jul 22 04:56:01 2003] [notice] child pid 22218 exit signal Segmentation fault (11)
[Tue Jul 22 04:56:02 2003] [error] [client 24.150.46.137] File does not exist: /home/capstone/public_html/401.shtml
[Tue Jul 22 04:56:03 2003] [notice] child pid 22224 exit signal Segmentation fault (11)
[Tue Jul 22 04:56:03 2003] [notice] child pid 4258 exit signal Segmentation fault (11)
[Tue Jul 22 04:56:03 2003] [error] [client 24.150.46.137] File does not exist: /home/capstone/public_html/401.shtml
[Tue Jul 22 04:56:04 2003] [notice] child pid 22227 exit signal Segmentation fault (11)
[Tue Jul 22 04:56:04 2003] [notice] child pid 22099 exit signal Segmentation fault (11)

Seems that .htaccess has been crippled by the latest apache upgrades, across at least 3-4 of our own webservers, but isn't affecting all client webservers. I've tried replacing the .htaccess, changing around the contents, etc. only thing that works is removing it, also checked permissions, etc. While random segfaults are a pain in the arse, .htaccess files not working whatsoever are going to cost CPanel hosts their customers in the end.

cPanel.net Support Ticket Number:
 

WeMasterz5

Well-Known Member
Feb 24, 2003
360
0
166
Miami
we started getting them after we updated the apache before the internal notice came out in the WHM

Apache 1.3.28 Zombie/Defunct Process Bug If you have updated to apache 1.3.28 before 2pm EST Sunday July 20th, you should update it again as a serious flaw has been discovered which prevents child proceses from terminating. We have developed a patch that resolves this problem, however you must rebuild apache to get this fix.
Severity
I have not seen any faults since I redone this apache, hopefulyy it was fixed if this has anything to do with this

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

trukfixer

Active Member
Jun 27, 2003
34
0
156
Miami, Florida
Originally posted by norm
Yeah, also added ulimit -n 16384 to /etc/rc.d/init.d/httpd.

Everything was running fine for about 8-10 hours, then Segfaults started popping up again like before.

The weird thing is, during a segfault, pages that have:

<?
include("http://www.domain.com/include.html")
?>

Don't work, but pages that have includes like:

<?
include("include.html")
?>

Work just fine

After an httpd restart, both includes work without problem
really outta have the absolute path in an include, not the http:// path... it'll help cut down on load and bandwidth... IMO, that's just plain bad PHP coding....

should be more like..
Code:
include("/home/user/public_html/script/include.php");
IF such an include path is necessary.. :D

(include an html file?? why not just use templates anyway? makes a lot more sense.. or name the html file as .php..)

whatevah...

Bri!

cPanel.net Support Ticket Number:
 

norm

Well-Known Member
Apr 23, 2002
52
0
306
Porcupine,
You mentioned some boxes didnt have seg faults, were they configured differently?


trukfixer,

I was talking about remote files.

And re: coding, I'll let my clients code however they wish, I don't have time to inspect every line.

I think my original problem was already fixed months ago due to a buggy mcrypt

But thanks for the helpful advise.

Originally posted by trukfixer
really outta have the absolute path in an include, not the http:// path... it'll help cut down on load and bandwidth... IMO, that's just plain bad PHP coding....

should be more like..
Code:
include("/home/user/public_html/script/include.php");
IF such an include path is necessary.. :D

(include an html file?? why not just use templates anyway? makes a lot more sense.. or name the html file as .php..)

whatevah...

Bri!

cPanel.net Support Ticket Number:
cPanel.net Support Ticket Number:
 
Last edited:

reddrake

Well-Known Member
Apr 2, 2003
79
0
156
Wisconsin,Usa
Did anyone see the old Apache help forum that was started ages ago? Look for it! It tells you to comment out mod_perl I believe in config.
Thanks,
Brian

cPanel.net Support Ticket Number:
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by WeMasterz5
we started getting them after we updated the apache before the internal notice came out in the WHM

I have not seen any faults since I redone this apache, hopefulyy it was fixed if this has anything to do with this

me too. i upgraded 3 boxes of mine with apache after i saw that msg in whm news, no seg faults in my apache logs. hoping its already been sorted.

cPanel.net Support Ticket Number: