LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2008, 08:19 PM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep


Hi Keen Buddy!

Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE

what is this apache error message?


here's the httpd in init.d

# check for 1.3 configuration
check13 () {
CONFFILE=/etc/httpd/conf/httpd.conf
GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
GONE="${GONE}AccessConfig|ResourceConfig)"
if LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
echo
echo 1>&2 " Apache 1.3 configuration directives found"
echo 1>&2 " please read /usr/share/doc/httpd-2.0.52/migration.html"
failure "Apache 1.3 config directives test"
echo
exit 1
fi
}

Last edited by RMLinux; 11-30-2008 at 08:27 PM.
 
Old 11-30-2008, 11:25 PM   #2
hans51
Member
 
Registered: Mar 2005
Location: Cambodia
Distribution: suse
Posts: 36
Blog Entries: 1

Rep: Reputation: 16
you did NOT write what linux dist you use
from your ost it is apparent that you use a very OLD system with apache 1.3 ...

for modern times system using apache2.2 and using opensuse
you would FIRST test your apache configuration !!!
this would be ( for opensuse !!)

service apache2 configtest
OR
rcapache2 configtest
or
rcapache2 extreme-configtest

other linux dists also use

apachectl configtest

error messages resulting always are very self-explaining

when OK - then restart your apache
NEVER restart your apache without prior configtest !
 
Old 12-01-2008, 01:44 AM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
etc/rc.d/rc.sysinit line 46: segmentation fault LC_ALL=C fgrep -q /dev = proc/mounts

Hi All Keen Buddies,


etc/rc.d/rc.sysinit line 46 819 segmentation fault LC_ALL=C fgrep -q "/dev " proc/mounts

Setting default font (latarcyrheb-sun16):

sorry this is a NEW ISSUE!

Last edited by RMLinux; 12-01-2008 at 02:44 AM.
 
Old 12-01-2008, 02:00 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... if you haven't done any updates to critical system
files lately I'd suggest you're facing bad RAM or something.

Hard to say, of course, without any other information.



Cheers,
Tink
 
Old 12-01-2008, 02:11 AM   #5
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Tinkster View Post
Hmmm ... if you haven't done any updates to critical system
files lately I'd suggest you're facing bad RAM or something.

Hard to say, of course, without any other information.



Cheers,
Tink

Uncompressing Linux... Ok, booting the kernel.
Red Hat nash Version 4.2.1.10 starting
Reading all physical volumes. This may take a while...
Found volume group "VolGroup_ID_17452" using metadata type lvm2
6 Logical volumes(s) in Volume Group "VolGroup_ID_17452" now active
INIT: version 2.85 booting
/etc/rc.d/rc.sysinit: line 46: 819 Segmentation fault LC_ALL=C fgrep -q "/dev " /proc/mounts
Setting default font(latercyrheb-sun16):


all my logical volume was "lock" and all of them have the same size when I use df -h.

Last edited by RMLinux; 12-01-2008 at 02:59 AM.
 
Old 12-01-2008, 02:14 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
ok ... and that relates to a segfault with fgrep how? Is
this the continuation of an existing thread or something?
 
Old 12-01-2008, 02:20 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And now there's one thread for segfaults in low-level tools.

And again: unless you've upgraded some crucial libraries isolated
from the rest of the system my best bet is that the RAM (or some
other component of the motherboard, maybe the MMU or some DMA
chip) is in the process of saying goodbye ...


Cheers,
Tink
 
Old 12-01-2008, 03:05 AM   #8
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Tinkster View Post
And now there's one thread for segfaults in low-level tools.

And again: unless you've upgraded some crucial libraries isolated
from the rest of the system my best bet is that the RAM (or some
other component of the motherboard, maybe the MMU or some DMA
chip) is in the process of saying goodbye ...


Cheers,
Tink
What is the best solution reformat? :-)

How to fix LVM2?

Last edited by RMLinux; 12-01-2008 at 03:10 AM.
 
Old 12-01-2008, 11:18 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You still haven't said anything about updates/upgrades to
system files, or the age of the hardware. I *don't* think
the issue is related to LVM2, if LVM2 has problems that's
probably a secondary effect of the underlying issue, along
with the segfaults.
 
Old 12-01-2008, 07:29 PM   #10
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Tinkster View Post
You still haven't said anything about updates/upgrades to
system files, or the age of the hardware. I *don't* think
the issue is related to LVM2, if LVM2 has problems that's
probably a secondary effect of the underlying issue, along
with the segfaults.
I just resize the LVM I use lvextend -L744M to 7444 space and it says successful on the resizing. Then I reboot my system still okay. when it is running then I tried to run vncserver. Still okay... now when I restart apache..problem arise...

here's the httpd in init.d

# check for 1.3 configuration
check13 () {
CONFFILE=/etc/httpd/conf/httpd.conf
GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
GONE="${GONE}AccessConfig|ResourceConfig)"
if LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
echo
echo 1>&2 " Apache 1.3 configuration directives found"
echo 1>&2 " please read /usr/share/doc/httpd-2.0.52/migration.html"
failure "Apache 1.3 config directives test"
echo
exit 1
fi
}

then after that this Segmentation Fault.
 
Old 12-01-2008, 10:17 PM   #11
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Problem Solve! I reformat and reinstall everything. :-)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/local/apache2/bin/apachectl: line 65: 4407 Segmentation fault $HTTPD -k $A onlin85 Linux - Software 2 06-18-2009 06:54 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Segmentation fault $HTTPD -k $ARGV Angel2953 Debian 3 02-09-2008 07:15 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration