Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 init script segfaults...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Jan 13, 2006 10:46 am    Post subject: Apache2 init script segfaults... Reply with quote

I've got a problem on a new installed gentoo box. Everytime I try to start apache2 via the init.d scripts, it segfaults:

Code:
rohan ~ # /etc/init.d/apache2 start
 * Starting apache2 ...
/etc/init.d/apache2: line 72: 18130 Segmentation fault      ${APACHE2} ${APACHE2_OPTS} -k start                                                           [ !! ]


I recomplied it and tried also different versions, everytime the same problem.

If I start apache manually via /usr/sbin/apache2 there is no problem. Any hints?

emerge-info is

Code:
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r5-twam i686)
=================================================================
System uname: 2.6.14-gentoo-r5-twam i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -fomit-frame-pointer -pipe -O0 -g3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -fomit-frame-pointer -pipe -O0 -g3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks keeptemp keepwork nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 acl acpi apache2 apm arts avi bcmath berkdb bitmap-fonts bzip2 bzlib cpdflib crypt ctype curlwrappers dio eds emboss encode exif expat fbcon flatfile foomaticdb fortran freetype ftp gd gdbm gif gpm gstreamer hal hpn iconv imap imlib innodb java jpeg jpeg2k kde libg++ libwww mbox memlimit mhash mime mmx motif mp3 mpeg mysql ncurses nis nls nptl ns ogg oggvorbis opengl pam pcre pdflib perl php png posix python quicktime readline samba sasl sdl session sharedmem simplexml snmp sockets socks5 spell sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vhosts vorbis xml xml2 xmlrpc xpm xsl zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY


Regards
Tobias
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Fri Jan 13, 2006 1:21 pm    Post subject: Reply with quote

Try 'emerge =app-shells/bash-3.0-r14'
_________________
gentoo.ro
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Jan 13, 2006 1:32 pm    Post subject: Reply with quote

Tried
app-shells/bash-3.1_p5
app-shells/bash-3.0-r14
app-shells/bash-3.0-r12
and no success :/
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Fri Jan 13, 2006 6:15 pm    Post subject: Reply with quote

I had that kind of problem once with myql init script and it solved by emerging nash-3.0-r14. Have you try rebooting after emerge (I know that this is the most stupid thing that can be done on linux, but I don't know what else should I restart in place).
_________________
gentoo.ro
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Jan 13, 2006 6:35 pm    Post subject: Reply with quote

I restarted. :)
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Fri Jan 13, 2006 11:53 pm    Post subject: Reply with quote

Have you looked on line 72 of apache2 script, as the error say? Also, I believe that there is nothing in the logs, right?
_________________
gentoo.ro
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Fri Jan 20, 2006 7:25 am    Post subject: Reply with quote

Due to an update of apache it is now line 69. It says:

Code:
69: start() {
70:    checkconfig || return 1
71:    ebegin "Starting apache2"
72:    [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
73:    [ -f /usr/lib/apache2/build/envvars ] && . /usr/lib/apache2/build/envvars
74:    ${APACHE2} ${APACHE2_OPTS} -k start
75:    eend $?
76:}


And you're right, I can't find anything in the logs.
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Sat Jan 21, 2006 11:15 am    Post subject: Reply with quote

Have you installed any additional modules for Apache, like mod_suphp?
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Mon Jan 23, 2006 2:49 pm    Post subject: Reply with quote

Just dev-lang/php but it wasn't working without it either.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum