DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Thanked 0 Times in 0 Posts
Default Segmentation fault (11) - Apache

I get these errors repeatedly below
Code:
child pid 54123 exit signal Segmentation fault (11)
Any ideas how I got about trouble shooting it
thanks
Reply With Quote
  #2   (View Single Post)  
Old 11th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,071
Thanked 198 Times in 156 Posts
Default

It's probably a bug, which application is generating this error?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 11th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Thanked 0 Times in 0 Posts
Default application

how do i find out which application is generating the error.
thanks
Reply With Quote
  #4   (View Single Post)  
Old 11th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Ok. Could you give us the full error message, in context.

I take it that this error is random: It shows up in logfiles occasionally, not when you are running a particular program. You also do not notice any particular program or feature failing. If any of that is incorrect, please tell us. If all of that is correct, then tell us that too.

Also, where is this error message appearing.

Lastly, please confirm what version of FreeBSD you are using. The output of "uname -a" will give us all of that.

Please answer _all_ questions that I, or anyone else asks. It is very frustrating when you ask an important question as well as a less important one, and you cannot get all the answers.

This is what a full syslog entry looks like. Syslog enties are found in /var/log/messages, as well as other /var/log files.
Code:
Jul 11 22:09:03 boffin ppp[2870]: Warning: set log local: Only available on the command line
You will notice, first, the date stamp, then the machine's hostname (boffin), then the name of the program (ppp), followed by it's PID(2870). The rest is the error message that the program gave. You should have all of this information.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #5   (View Single Post)  
Old 11th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Thanked 0 Times in 0 Posts
Default logs

hi again
Code:
Jul 11 15:20:13 B6745 kernel: pid 58662 (httpd), uid 1002: exited on signal 11
Jul 11 15:20:26 B6745 kernel: pid 58665 (httpd), uid 1002: exited on signal 11
Jul 11 15:21:28 B6745 kernel: pid 58674 (httpd), uid 1002: exited on signal 11
Jul 11 15:22:35 B6745 kernel: pid 58633 (httpd), uid 1002: exited on signal 11
Jul 11 15:22:40 B6745 kernel: pid 58673 (httpd), uid 1002: exited on signal 11
Jul 11 15:22:43 B6745 kernel: pid 58675 (httpd), uid 1002: exited on signal 11
Jul 11 15:25:03 B6745 kernel: pid 58681 (httpd), uid 1002: exited on signal 11
Jul 11 15:25:34 B6745 kernel: pid 58678 (httpd), uid 1002: exited on signal 11
Jul 11 15:27:38 B6745 kernel: pid 58690 (httpd), uid 1002: exited on signal 11
Jul 11 15:29:03 B6745 kernel: pid 58689 (httpd), uid 1002: exited on signal 11
Jul 11 15:30:49 B6745 kernel: pid 58697 (httpd), uid 1002: exited on signal 11
Jul 11 15:31:00 B6745 kernel: pid 58214 (httpd), uid 1002: exited on signal 11
Jul 11 15:31:40 B6745 kernel: pid 58729 (httpd), uid 1002: exited on signal 11
the error is not occasional.
The error_log of apache is full of them as you can see occurs ever 2 minutes.
The above output is from /var/log/messages
server setup = freebsd 5.4, apache2, php5 with zend optimzer enabled, Mysql5, postfix
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5

Last edited by ijk; 11th July 2008 at 02:55 PM.
Reply With Quote
  #6   (View Single Post)  
Old 11th July 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Did you happen to install apache binary instead from source?
Reply With Quote
  #7   (View Single Post)  
Old 11th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Thanked 0 Times in 0 Posts
Default from source

No.

followed the instructions given in the link to install apache.

http://www.bsdguides.org/guides/free...e2_install.php
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5
Reply With Quote
  #8   (View Single Post)  
Old 11th July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

The Sig11 FAQ
http://www.bitwizard.nl/sig11/
__________________
da more I know I know I know nuttin'
Reply With Quote
  #9   (View Single Post)  
Old 11th July 2008
chris chris is offline
Port Guard
 
Join Date: May 2008
Location: United Kingdom
Posts: 35
Thanked 6 Times in 3 Posts
Default

Is the Apache error log the only place your seeing these errors? For example are you having trouble compiling large applications and is there anything out of the ordinary in your /var/log/messages ? If you are having trouble compiling stuff too I'm betting the RAM is at fault.
Reply With Quote
Old 12th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Please confirm what version of FreeBSD you are running. (uname -a)

Oh, and I take it you have run memtest86 (or similar) for an hour or so to rule out memory errors?

Did you follow the guide that you linked to? If so, then send a brick to the person that wrote it.
I don't know how you are going to get rid of that out-of-date, incorrectly compiled version of apache. If you still have the source directory, then "make uninstall" or "make deinstall" might do it.
Then you can reinstall the current version, correctly, using the port.
Code:
cd /usr/ports/www/apache22
make install clean
Let us know how it goes.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 12th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Thanked 0 Times in 0 Posts
Default freebsd version 5.4

apache logs are not the only place is see these messages.
I also see them in /var/log/messages
Code:
Jul 11 15:21:28 D6666 kernel: pid 58674 (httpd), uid 1002: exited on signal 11
Jul 11 15:22:35 D6666 kernel: pid 58633 (httpd), uid 1002: exited on signal 11
Jul 11 15:22:40 D6666 kernel: pid 58673 (httpd), uid 1002: exited on signal 11
Jul 11 15:22:43 D6666 kernel: pid 58675 (httpd), uid 1002: exited on signal 11
Jul 11 15:25:03 D6666 kernel: pid 58681 (httpd), uid 1002: exited on signal 11
Jul 11 15:25:34 D6666 kernel: pid 58678 (httpd), uid 1002: exited on signal 11
Jul 11 15:27:38 D6666 kernel: pid 58690 (httpd), uid 1002: exited on signal 11
Jul 11 15:29:03 D6666 kernel: pid 58689 (httpd), uid 1002: exited on signal 11
Jul 11 15:30:49 D6666 kernel: pid 58697 (httpd), uid 1002: exited on signal 11
Jul 11 15:31:00 D6666 kernel: pid 58214 (httpd), uid 1002: exited on signal 11
Jul 11 15:31:40 D6666 kernel: pid 58729 (httpd), uid 1002: exited on signal 11
Jul 11 15:31:43 D6666 kernel: pid 58679 (httpd), uid 1002: exited on signal 11
Jul 11 15:33:14 D6666 kernel: pid 58666 (httpd), uid 1002: exited on signal 11
Jul 11 15:33:30 D6666 kernel: pid 58728 (httpd), uid 1002: exited on signal 11
Jul 11 15:33:39 D6666 kernel: pid 58739 (httpd), uid 1002: exited on signal 11
Jul 11 15:36:06 D6666 kernel: pid 58664 (httpd), uid 1002: exited on signal 11
Jul 11 15:37:17 D6666 kernel: pid 58740 (httpd), uid 1002: exited on signal 11
Jul 11 15:38:21 D6666 kernel: pid 58730 (httpd), uid 1002: exited on signal 11
The server seems to be runing fine otherwise. No trouble compiling

Quote:
You also do not notice any particular program or feature failing
what I have noticed is that when I access my websites every say 2 to 5 minutes the screen goes blank and than on refresh the website is back again.


I have included my server settings in my signature. My freebsd version is 5.4.
The server team have done various tests and assure me it is not a hardware problem.
Quote:
I don't know how you are going to get rid of that out-of-date, incorrectly compiled version of apache
that should not be a problem if that is what is causing the problem. how do you know it is incorrectly compiled.
Trying to find out what is generating these errors is it a php script or is it incorrectly configured apache.

I have upgraded to the latest version of apache 2.0 using the instructions below
http://daemonforums.org/showthread.php?t=1315
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5

Last edited by ijk; 12th July 2008 at 07:20 AM.
Reply With Quote
Old 12th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Any specific reason why you are using FreeBSD 5.4?
Reply With Quote
Old 12th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Thanked 0 Times in 0 Posts
Default freebsd 5.4

no specific reason just not got round to upgrading as it.
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5
Reply With Quote
Old 12th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,071
Thanked 198 Times in 156 Posts
Default

Quote:
apache logs are not the only place is see these messages.
I also see them in /var/log/messages
It's the same message in two different log files.

If you don't want to upgrade, then make sure you use the tag RELEASE_5_EOL when cvsuping your ports collection, since FreeBSD 5 is no longer supported in the ports collection.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 12th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,071
Thanked 198 Times in 156 Posts
Default

Did you manually compile Apache as you described in this thread?
http://daemonforums.org/showthread.php?t=1315

If you did, then uninstall the manually compiled version and install Apache from ports.

The ports collection applies several patches to Apache, mainly stability and security stuff (i.e. stuff you want), so this alone is reason enough to use ports IMO.

I can not see a single advantage to compiling Apache manually instead of using ports.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 15th July 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

Please upgrade at least to FreeBSD 6! It is a smooth transition. FreeBSD 5 is no longer supported.

http://www.freebsd.org/doc/en/books/...makeworld.html
(assumes you have already synced your sources via csup)
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.

Last edited by Weaseal; 15th July 2008 at 11:06 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault error139 delboy FreeBSD Ports and Packages 8 9th July 2009 06:32 PM
MYSQL 's fault? disappearedng FreeBSD General 3 14th October 2008 11:53 PM
Segmentation fault ccc FreeBSD General 8 28th June 2008 02:15 PM
MySQL C library - segmentation fault on mysql_select_db() when using CC optimisation gor OpenBSD Packages and Ports 7 10th June 2008 11:42 PM
Intermitant fault upon booting Johnny2Bad FreeBSD Installation and Upgrading 7 17th May 2008 07:43 PM


All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick