Project

General

Profile

Actions

Bug #1871

closed

intermittent abort()s at shutdown and in unix-socket

Added by Peter Manev over 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport

Description

Currently chasing a segfault case that is repetitive but not manually/at will reproducible that seems to be a corner case.

GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/pmanev/Work/CORES/detail-22Aug/suricata...done.

warning: core file may not match specified executable file.
[New LWP 86962]
[New LWP 97509]
[New LWP 97951]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/bin/suricata -c /home/sandnet/bin/ruleset_load/suricata.sandnet.sock'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f1694a01c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) thread apply all bt

Thread 3 (Thread 0x7f1682b2d700 (LWP 97951)):
#0  0x00007f1694a8bdfd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f1694abd354 in usleep (useconds=useconds@entry=100) at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x00007f1696e44f33 in TmThreadKillThread (tv=tv@entry=0x7f167d2f05e0) at tm-threads.c:1516
#3  0x00007f1696e45658 in TmThreadKillThreadsFamily (family=family@entry=0) at tm-threads.c:1753
#4  0x00007f1696e16bb5 in UnixSocketPcapFilesCheck (data=0x7f1699e3a630) at runmode-unix-socket.c:318
#5  0x00007f1696e4baf6 in UnixCommandBackgroundTasks (this=this@entry=0x7f16971338a0 <command>) at unix-manager.c:430
#6  0x00007f1696e4c761 in UnixManager (th_v=0x7f16a3604900, thread_data=<optimized out>) at unix-manager.c:980
#7  0x00007f1696e476b6 in TmThreadsManagement (td=0x7f16a3604900) at tm-threads.c:719
#8  0x00007f169576f184 in start_thread (arg=0x7f1682b2d700) at pthread_create.c:312
#9  0x00007f1694ac537d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f16970e7940 (LWP 97509)):
#0  0x00007f1694a8bdfd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f1694abd354 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x00007f1696cff1e5 in main (argc=<optimized out>, argv=<optimized out>) at suricata.c:2700

Thread 1 (Thread 0x7f168232c700 (LWP 86962)):
#0  0x00007f1694a01c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f1694a05028 in __GI_abort () at abort.c:89
#2  0x00007f16949fabf6 in __assert_fail_base (fmt=0x7f1694b4b3b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x7f1696eca6f0 "!(slot->slot_post_pq.len)", file=file@entry=0x7f1696eca6a7 "tm-threads.c", line=line@entry=377, 
    function=function@entry=0x7f1696ecaa40 <__PRETTY_FUNCTION__.16198> "TmThreadsSlotPktAcqLoop") at assert.c:92
#3  0x00007f16949faca2 in __GI___assert_fail (assertion=assertion@entry=0x7f1696eca6f0 "!(slot->slot_post_pq.len)", file=file@entry=0x7f1696eca6a7 "tm-threads.c", 
    line=line@entry=377, function=function@entry=0x7f1696ecaa40 <__PRETTY_FUNCTION__.16198> "TmThreadsSlotPktAcqLoop") at assert.c:101
#4  0x00007f1696e46c96 in TmThreadsSlotPktAcqLoop (td=0x7f167d2f05e0) at tm-threads.c:377
#5  0x00007f169576f184 in start_thread (arg=0x7f168232c700) at pthread_create.c:312
#6  0x00007f1694ac537d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

More details will be privatively shared.


Related issues 1 (0 open1 closed)

Copied to Suricata - Bug #3410: intermittent abort()s at shutdown and in unix-socket (4.1.x)ClosedVictor JulienActions
Actions

Also available in: Atom PDF