Package: tripwire
Version: 2.4.2.2-5+b1
Severity: important

Dear Maintainer,

Tripwire segfaults on 32 bit 686-pae kernels. First, after an update,
I started investigating and came across this:

# strace tripwire
execve("/usr/sbin/tripwire", ["tripwire"], [/* 18 vars */]) = 0
uname({sysname="Linux", nodename="stat.fsu.edu", ...}) = 0
brk(0)                                  = 0x993b000
brk(0x993bd80)                          = 0x993bd80
set_thread_area({entry_number:-1, base_addr:0x993b880, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0 (entry_number:6)
readlink("/proc/self/exe", "/usr/sbin/tripwire", 4096) = 18
brk(0x995cd80)                          = 0x995cd80
brk(0x995d000)                          = 0x995d000
access("/etc/ld.so.nohwcap", F_OK)      = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

So on one machine I purged the package after backing up my policy
files and got this:

Generating site key (this may take several minutes)...                          
/var/lib/dpkg/info/tripwire.postinst: line 108: 32578 Broken pipe             ( 
echo "$site_pass"; sleep 2; echo "$site_pass" )
32579 Segmentation fault      | $twadmin -m G -S "$SITEKEYFILE" > /dev/null 2>&1

Doing an strace on twadmin gives this

# strace /usr/sbin/twadmin
execve("/usr/sbin/twadmin", ["/usr/sbin/twadmin"], [/* 17 vars */]) = 0
uname({sysname="Linux", nodename="spline", ...}) = 0
brk(0)                                  = 0x92d4000
brk(0x92d4d80)                          = 0x92d4d80
set_thread_area({entry_number:-1, base_addr:0x92d4880, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0 (entry_number:6)
readlink("/proc/self/exe", "/usr/sbin/twadmin", 4096) = 17
brk(0x92f5d80)                          = 0x92f5d80
brk(0x92f6000)                          = 0x92f6000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

Today's update works perfectly on the amd64 arch. Thanks.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 4.0.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages tripwire depends on:
ii  debconf [debconf-2.0]           1.5.58
ii  postfix [mail-transport-agent]  2.11.3-1+b1

tripwire recommends no packages.

tripwire suggests no packages.

-- debconf information:
* tripwire/use-sitekey: true
* tripwire/use-localkey: true
  tripwire/email-report:
  tripwire/change-in-default-policy:
* tripwire/rebuild-config: false
  tripwire/local-passphrase-incorrect: false
* tripwire/rebuild-policy: false
  tripwire/installed:
  tripwire/upgrade: true
  tripwire/broken-passphrase:
  tripwire/site-passphrase-incorrect: false

Reply via email to