Package: integrit
Version: 4.1-1.1+b1
Severity: normal

Dear Maintainer,

I've had integrit crash several times with a segmentation fault:

$ integrit -C /etc/integrit/integrit.conf -cu
Segmentation fault

dmesg has:

integrit[17557]: segfault at 804e48c ip 0804e48c sp bfb32fbc error 14

Unfortunately, this seems to be tricky to reproduce reliably. It was crashing 
repeatedly each time I ran the command above. When I ran integrit under gdb, 
the crash didn't happen. When I apt-get installed valgrind to investigate 
further, the segfault stopped happening altogether (with no changes to 
integrit.conf or known.cdb or anything else as far as I can see).

Sadly I don't have a coredump.

(gdb) x/10i  0x804e48c
   0x804e48c <__unified_syscall+33>:    pop    %ebp
   0x804e48d <__unified_syscall+34>:    pop    %ebx
   0x804e48e <__unified_syscall+35>:    pop    %esi
   0x804e48f <__unified_syscall+36>:    pop    %edi
   0x804e490 <__unified_syscall+37>:    cmp    $0xffffff7c,%eax
   0x804e495 <__unified_syscall+42>:    jb     0x804e4a4 <__unified_syscall+57>
   0x804e497 <__unified_syscall+44>:    neg    %eax
   0x804e499 <__unified_syscall+46>:    push   %eax
   0x804e49a <__unified_syscall+47>:    call   0x804eaa0 <__errno_location>
   0x804e49f <__unified_syscall+52>:    popl   (%eax)

Valgrind finds a valid problem with an uninitialized pointer being passed to 
munmap (munmap call is at cdb.c:56, problematic curr_cdb defined at 
missing.c:136 and then passed uninitialized to open_current_state_cdb). However 
this problem appears to be too late in the program to cause the segfault I'm 
seeing. Segfault seems to happen before config file is done parsing since 
nothing is yet printed to the terminal.

I know this is likely not enough information to debug this. I'm reporting it 
here just in case someone else has a similar problem and has more relevant info.

Thanks,
Tomaž


-- System Information:
Debian Release: 9.9
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-9-686-pae (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

integrit depends on no packages.

Versions of packages integrit recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20160123cvs-4
ii  cron               3.0pl1-128+deb9u1

integrit suggests no packages.

Reply via email to