Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82224 - All init scripts result in "Segmentation fault"
Summary: All init scripts result in "Segmentation fault"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 02:05 UTC by Bernard Spil
Modified: 2005-02-16 02:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Spil 2005-02-16 02:05:40 UTC
Running any script in /etc/init.d returns 'Segmentation fault' only.


Reproducible: Always
Steps to Reproduce:
1. su -
2. /etc/init.d/sshd status


Actual Results:  
Segmentation fault

Expected Results:  
 * status:  started

Gentoo Base System version 1.6.9
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r0, 2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 Intel(R) Celeron(R) CPU 1.80GHz
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 15 2005, 12:09:14)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.5, 1.8.5-r3, 1.6.3, 1.4_p6, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe -fPIC"
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/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/
http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm arts avi bitmap-fonts crypt encode f77 font-server foomaticdb
fortran gif gpm gtk2 hardened imlib ldap libg++ libwww mad mikmod motif mpeg
ncurses nls oci8 oggvorbis opengl openssh oss pam pdflib perl postgres python
quicktime readline samba sdl ssl static svga tcpd threads truetype-fonts
type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Luca Barbato gentoo-dev 2005-02-16 02:30:20 UTC
CFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe -fPIC"

your cflags are problematic. try to rebuild baselayour w/out -fPIC and remove that flag.
Comment 2 Bernard Spil 2005-02-16 02:50:57 UTC
Actually, the USE flag 'static' was the culprit and not the CFLAG fPIC 
No fPIC, no static -> OK
No fPIC, static -> segfault
fPIC, no static -> OK

I'll keep fPIC in mind when I have trouble with an application again.