tripwire -m c stops with segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripwire (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
My nightly tripwire check has been failing since I reinstalled some kernel modules at the beginning of November 2008.
I'm running tripwire 2.3.1.2.0-11 on Ubuntu 8.04 with all updates applied.
strace -eopen,
lstat("
open("/
lstat("
open("/
lstat("
The object: "/lib/modules/
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Software interrupt forced exit: Segmentation Fault
Process 19513 detached
I've checked, and it seems that /lib/modules/
root@ceiriog:prw# cat /proc/mounts | grep volatile
tmpfs /lib/modules/
(gdb) i s
#0 0x00000000004d4b39 in cFCODataSourceI
#1 0x000000000040ac05 in cIntegrityCheck
#2 0x000000000040a23b in cIntegrityCheck
#3 0x000000000040ae51 in cIntegrityCheck
#4 0x000000000040ab10 in cIntegrityCheck
#5 0x000000000040b263 in cIntegrityCheck
#6 0x000000000040ab10 in cIntegrityCheck
#7 0x000000000040ba5e in cIntegrityCheck
#8 0x0000000000428c1d in cTWModeIC::Execute (this=0x7d85c0, pQueue=
#9 0x000000000041a38c in main (argc=3, argv=0x7fff0ee5
In CanDescend, at the line:
return ( (*mCurPos)
gdb reports that
(gdb) p *mCurPos
$3 = (class iFCO * const&) @0x17dd2a8: 0x80
which is clearly not a valid pointer. However, I can't tell what this iterator thing is supposed to represent and I can't spare the time to debug further without more clues...
description: | updated |
I am not sure but the following should corresponding with an error:
ProblemType: Crash tamp: 1326844936 7fa4f1866000 rw-p 00000000 00:00 0 7fa4f1c2b000 rw-p 00000000 00:00 0 7fa4f1c8e000 rw-p 00000000 00:00 0 7fff20d88000 rw-p 00000000 00:00 0 [stack] 7fff20e00000 r-xp 00000000 00:00 0 [vdso] 00-ffffffffff60 1000 r-xp 00000000 00:00 0 [vsyscall] ctxt_switches: 347249 ctxt_switches: 23044
Architecture: amd64
CrashCounter: 1
Date: Thu May 17 09:45:04 2012
DistroRelease: Ubuntu 12.04
ExecutablePath: /usr/sbin/tripwire
ExecutableTimes
ProcCmdline: /usr/sbin/tripwire
ProcCwd: /
ProcEnviron:
TERM=linux
PATH=(custom, no user)
SHELL=/bin/sh
ProcMaps:
00400000-0066b000 r-xp 00000000 08:25 6315215 /usr/sbin/tripwire
0086b000-00870000 rw-p 0026b000 08:25 6315215 /usr/sbin/tripwire
00870000-0088a000 rw-p 00000000 00:00 0
02227000-048db000 rw-p 00000000 00:00 0 [heap]
7fa4f1465000-
7fa4f1c2a000-
7fa4f1c2c000-
7fff20d67000-
7fff20dff000-
ffffffffff6000
ProcStatus:
Name: tripwire
State: S (sleeping)
Tgid: 14105
Pid: 14105
PPid: 14104
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 64
Groups:
VmPeak: 46872 kB
VmSize: 46868 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 45044 kB
VmRSS: 45044 kB
VmData: 44236 kB
VmStk: 136 kB
VmExe: 2476 kB
VmLib: 0 kB
VmPTE: 112 kB
VmSwap: 0 kB
Threads: 1
SigQ: 1/255948
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 00000000418000fc
CapInh: 0000000000000000
CapPrm: ffffffffffffffff
CapEff: ffffffffffffffff
CapBnd: ffffffffffffffff
Cpus_allowed: ff
Cpus_allowed_list: 0-7
Mems_allowed: 00000000,00000001
Mems_allowed_list: 0
voluntary_
nonvoluntary_
Signal: 11
Uname: Linux 3.2.0-24-generic x86_64
UserGroups:
CoreDump: base64
...
... see attached file
...
SegvAnalysis:
Segfault happened at: 0x421: Cannot access memory at address 0x421
PC (0x00000421) not located in a known VMA region (needed executable region)!
SegvReason: executing NULL VMA
SourcePackage: tripwire
....