Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106968 - aide 0.10_p20040917 segmentation fault
Summary: aide 0.10_p20040917 segmentation fault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 01:56 UTC by Tobias Sager
Modified: 2005-09-23 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 Tobias Sager 2005-09-23 01:56:49 UTC
I have been running aide. Worked okay for some time, but started segfaulting a
few days ago.

<snip>
GNU gdb 6.3
[..]

(gdb) run -u
Starting program: /usr/bin/aide -u
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xb7e0d6fb in strlen () from /lib/tls/libc.so.6
(gdb) bt 
#0  0xb7e0d6fb in strlen () from /lib/tls/libc.so.6
#1  0xb7de24e3 in vfprintf () from /lib/tls/libc.so.6
#2  0xb7de3f64 in vfprintf () from /lib/tls/libc.so.6
#3  0xb7ddff62 in vfprintf () from /lib/tls/libc.so.6
#4  0x0804c180 in error ()
#5  0x0804a40a in ?? ()
#6  0x0000001e in ?? ()
#7  0x00000000 in ?? ()
#8  0xbfca5b94 in ?? ()
#9  0x0804a214 in ?? ()
#10 0x00000000 in ?? ()
#11 0x08059d90 in _IO_stdin_used ()
#12 0x0000007f in ?? ()
#13 0x08059d6d in _IO_stdin_used ()
#14 0x54400021 in ?? ()
#15 0xbfca5b94 in ?? ()
#16 0xbfca5c28 in ?? ()
#17 0x0804a122 in ?? ()
#18 0x08059d6d in _IO_stdin_used ()
#19 0x08089f18 in ?? ()
#20 0x08089c98 in ?? ()
#21 0x00000024 in ?? ()
#22 0x00000024 in ?? ()
#23 0xb7fa094e in _dl_name_match_p () from /lib/ld-linux.so.2
#24 0x0804da3a in error ()
#25 0x080722a0 in ?? ()
#26 0xbfca5c48 in ?? ()
#27 0x00000000 in ?? ()
#28 0x00000000 in ?? ()
#29 0x08085050 in ?? ()
#30 0x00000000 in ?? ()
#31 0x00000000 in ?? ()
#32 0xbfca5cb8 in ?? ()
#33 0x0805945c in error ()
#34 0xb7fab4e8 in ?? ()
#35 0x08048e74 in ?? ()
#36 0x00000000 in ?? ()
#37 0xbfca77e0 in ?? ()
#38 0xb7dbb45e in __guard_setup () from /lib/tls/libc.so.6
Previous frame inner to this frame (corrupt stack?)
</snip>

<snip>
dobby ~ # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control /var/www/localhost/cgi-bin
/var/www/localhost/htdocs /var/www/toe.ch/htdocs"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acpi adns apache2 avi bash-completion berkdb crypt cups directfb fbcon
gd gdbm gif gpm imagemagick imap ipv6 java jpeg libwww maildir mbox mmx mpeg
mysql ncurses nls nptl pam pdflib pear perl php png python readline samba sasl
slang socks5 sse ssl usb vhosts xml xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
</snip>


My merge history (Sep 12 is initial aide merge):
<snip>
     Mon Sep 12 15:18:32 2005 >>> app-forensics/aide-0.10_p20040917
     Wed Sep 14 11:56:37 2005 >>> sys-fs/udev-068-r1
     Wed Sep 14 12:11:18 2005 >>> net-dns/bind-9.2.5-r6
     Wed Sep 14 12:44:56 2005 >>> media-gfx/jhead-2.0
     Wed Sep 14 12:46:40 2005 >>> www-apps/gallery-2.0
     Sun Sep 18 18:43:44 2005 >>> dev-libs/libpcre-6.3
     Sun Sep 18 18:48:11 2005 >>> net-analyzer/nmap-3.83
     Mon Sep 19 18:01:50 2005 >>> app-text/sablotron-1.0.1
     Mon Sep 19 18:10:25 2005 >>> dev-libs/libxml2-2.6.20-r2
     Mon Sep 19 18:19:37 2005 >>> dev-php/php-4.4.0-r1
     Tue Sep 20 10:42:49 2005 >>> dev-util/dialog-1.0.20050206
     Tue Sep 20 10:43:15 2005 >>> app-portage/mirrorselect-1.1.7
     Tue Sep 20 10:52:33 2005 >>> net-www/apache-2.0.54-r31
     Tue Sep 20 11:38:10 2005 >>> dev-php/mod_php-4.4.0-r3
     Tue Sep 20 11:43:45 2005 >>> sys-apps/util-linux-2.12q-r3
     Tue Sep 20 17:47:23 2005 >>> net-analyzer/net-snmp-5.2.1.2-r1
</snip>

I would blame util-linux, but I have no evidence for it.. ;-)

Reemerging aide did not help. Any ideas?
Comment 1 SpanKY gentoo-dev 2005-09-23 07:07:04 UTC
doubtful, util-linux has no libraries, just programs

the back trace you provided is worthless, please run:
FEATURES=nostrip CFLAGS='-g -O2 -pipe' emerge aide

and then run it through gdb again
Comment 2 Tobias Sager 2005-09-23 07:11:37 UTC
(In reply to comment #1)
> FEATURES=nostrip CFLAGS='-g -O2 -pipe' emerge aide
> 
> and then run it through gdb again

Here you are:
<snip>
dobby ~ # aide -u
Segmentation fault
dobby ~ # gdb aide
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".

(gdb) run -u
Starting program: /usr/bin/aide -u

Program received signal SIGSEGV, Segmentation fault.
0xb7d876fb in strlen () from /lib/tls/libc.so.6
(gdb) bt 
#0  0xb7d876fb in strlen () from /lib/tls/libc.so.6
#1  0xb7d5c4e3 in vfprintf () from /lib/tls/libc.so.6
#2  0xb7d5df64 in vfprintf () from /lib/tls/libc.so.6
#3  0xb7d59f62 in vfprintf () from /lib/tls/libc.so.6
#4  0x0804bfc0 in error (errorlevel=-1209831436, error_msg=0x0) at error.c:165
#5  0x0804a1f4 in conferror (msg=0x54400021 <Address 0x54400021 out of bounds>)
at conf_yacc.y:312
#6  0x0804a117 in confparse () at conf_yacc.c:1767
#7  0x0804d828 in commandconf (mode=68 'D', line=0x0) at commandconf.c:165
#8  0x0805805b in main (argc=2, argv=0x54400021) at aide.c:417
</snip>
Comment 3 Tobias Sager 2005-09-23 07:13:58 UTC
Ahh! Got it. The error is in confparse.
Looking at my config file: it has an error in it.
Segfaulting upon that is not nice, but anyway...

Closing as invalid. Sorry for bothering.