Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45823 - tripwire --init segfaults, I did this command after: 'emerge tripwire; /etc/tripwire/twinstall.sh'
Summary: tripwire --init segfaults, I did this command after: 'emerge tripwire; /etc/t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-26 11:00 UTC by Bryan Duff
Modified: 2005-03-03 07:13 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 Bryan Duff 2004-03-26 11:00:03 UTC
I will look into the install again; and editing of twpol.txt to my liking, that could be part of the problem.

Reproducible: Always
Steps to Reproduce:
1.emerge tripwire
2./etc/tripwire/twinstall.sh
3.tripwire --init

Actual Results:  
### Warning: File system error.
### Filename: /var/lock/subsys/ypxfrd
### No such file or directory
### Continuing...
### Warning: File system error.
### Filename: /var/lock/subsys/zebra
### No such file or directory
### Continuing...
Software interrupt forced exit: Segmentation Fault


Expected Results:  
Tripwire database initialized successfully?

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.8p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled
                                                                               
                                                ]
Autoconf: sys-devel/autoconf-2.57-r1
Automake: sys-devel/automake-1.7.2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/co
                                                                               
                                                nfig /usr/kde/3.1/share/config
/usr/kde/3/share/config /usr/share/config /var/qm                              
                                                                               
                  ail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://csociety-ftp.ecn.pu
                                                                               
                                                rdue.edu/pub/gentoo/
http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/L                    
                                                                               
                            inux/distributions/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aavm apache2 apm arts avi berkdb crypt cups encode esd foomaticdb gd gdbm
                                                                               
                                                 gif gpm gtk2 imlib innodb java
jpeg ldap libg++ libwww mad mikmod motif mpeg my                               
                                                                               
                 sql ncurses nls oggvorbis opengl oss pam pdflib perl png python
quicktime readli                                                               
                                                                 ne samba sasl
sdl slang spell ssl svga tcltk tcpd tiff truetype usb x86 xml2 xmm             
                                                                               
                                   s xv zlib"
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2004-03-27 12:11:49 UTC
tripwire can be sensitive to compiler optimisations, i'm going to use strip-flags..please wait about 30 minutes, emerge sync and then remerge tripwire.

hopefully it should solve your problem, if not, it would really help if you could provide a backtrace.
Comment 2 Bryan Duff 2004-03-28 09:40:06 UTC
Sorry, about not listing a backtrace.  Unfortunately it doesn't tell much:

I'll recompile with minimal flags, and see if that fixes the problem.

# gdb tripwire
(gdb) run --init
...
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) backtrace 
#0  0x00000000 in ?? ()
#1  0x40183d0d in ?? ()
#2  0x40153dbe in ?? ()
#3  0x40153ece in ?? ()
#4  0x40134b41 in ?? ()
#5  0x4013474b in ?? ()
#6  0x40136589 in ?? ()
#7  0x40138395 in ?? ()
#8  0x40137c19 in ?? ()

Enjoy.
Comment 3 Tavis Ormandy (RETIRED) gentoo-dev 2005-03-03 07:13:31 UTC
I believe this is fixed with flag-o-matic.