Project

General

Profile

Actions

Bug #100

closed

Engine sometimes locks up at exit inside of FlowManagerThread

Added by Will Metcalf about 14 years ago. Updated about 14 years ago.

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

Description

sudo gdb attach 9921
[sudo] password for coz:
Sorry, try again.
[sudo] password for coz:
Sorry, try again.
[sudo] password for coz:
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/&gt;...
attach: No such file or directory.
Attaching to process 9921
Reading symbols from /home/coz/downloads/oisfnew/src/.libs/lt-suricata...done.
Reading symbols from /home/coz/downloads/oisfnew/libhtp/htp/.libs/libhtp-0.2.so.1...done.
Loaded symbols for /home/coz/downloads/oisfnew/libhtp/htp/.libs/libhtp-0.2.so.1
Reading symbols from /opt/PF_RING/lib/libpfring.so...done.
Loaded symbols for /opt/PF_RING/lib/libpfring.so
Reading symbols from /opt/PF_RING/lib/libhtp-0.3.so.1...done.
Loaded symbols for /opt/PF_RING/lib/libhtp-0.3.so.1
Reading symbols from /usr/lib/libnet.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libnet.so.1
Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.10.1.so...done.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f7ff0998910 (LWP 9951)]
[New Thread 0x7f7ff1199910 (LWP 9950)]
[New Thread 0x7f7ff1ffb910 (LWP 9949)]
[New Thread 0x7f7ff27fc910 (LWP 9948)]
[New Thread 0x7f7ff2ffd910 (LWP 9947)]
[New Thread 0x7f7ff37fe910 (LWP 9946)]
[New Thread 0x7f7ff8922910 (LWP 9945)]
[New Thread 0x7f7ff9123910 (LWP 9944)]
[New Thread 0x7f7ff9924910 (LWP 9943)]
[New Thread 0x7f7ffa125910 (LWP 9942)]
[New Thread 0x7f7ffa926910 (LWP 9941)]
[New Thread 0x7f7ff3fff910 (LWP 9940)]
[New Thread 0x7f7ffb127910 (LWP 9939)]
[New Thread 0x7f7ffb928910 (LWP 9938)]
[New Thread 0x7f7ffc129910 (LWP 9937)]
[New Thread 0x7f7ffc92a910 (LWP 9936)]
(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libyaml-0.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libyaml-0.so.1
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.10.1.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.10.1.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007f7ffd608cfd in pthread_join (threadid=140187675044112,
thread_return=0x0) at pthread_join.c:89
89 pthread_join.c: No such file or directory.
in pthread_join.c
(gdb) bt full
#0 0x00007f7ffd608cfd in pthread_join (threadid=140187675044112,
thread_return=0x0) at pthread_join.c:89
ignore = <value optimized out>
tid = 9936
_buffer = {
_routine = 0x7f7ffd608bd0 <cleanup>,
__arg = 0x7f7ffc92ad38, __canceltype = 0, __prev = 0x0}
oldtype = 0
result = <value optimized out>
#1 0x00000000004efb69 in TmThreadKillThreads () at tm-threads.c:1012
tv = 0x17db080
#2 0x0000000000406c11 in main (argc=<value optimized out>,
argv=<value optimized out>) at suricata.c:919
end_time = {tv_sec = 1266518715, tv_usec = 231549}
opt = <value optimized out>
pcap_file = 0x0
pcap_dev = 0x0
sig_file = 0x0
nfq_id = 0x0
conf_filename = 0x7fffbc89c927 "suricata.yaml"
regex_arg = 0x0
dump_config = 0
list_unittests = 0
daemon = 0
---Type <return> to continue, or q <return> to quit---
log_dir = 0x10bbb70 "/var/log/suricata"
buf = {st_dev = 2055, st_ino = 30269559, st_nlink = 2,
st_mode = 16895, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0,
st_size = 16384, st_blksize = 4096, st_blocks = 32, st_atim = {
tv_sec = 1265297050, tv_nsec = 0}, st_mtim = {tv_sec = 1266516879,
tv_nsec = 0}, st_ctim = {tv_sec = 1266516879, tv_nsec = 0},
__unused = {0, 0, 0}}
long_opts = {{name = 0x544e8b "dump-config", has_arg = 0,
flag = 0x7fffbc89a2ac, val = 1}, {name = 0x544e97 "pfring-int",
has_arg = 1, flag = 0x0, val = 0}, {
name = 0x544ea2 "pfring-clusterid", has_arg = 1, flag = 0x0,
val = 0}, {name = 0x544eb3 "unittest-filter", has_arg = 1,
flag = 0x0, val = 85}, {name = 0x544ec3 "list-unittests",
has_arg = 0, flag = 0x7fffbc89a2a8, val = 1}, {
name = 0x544ed2 "init-errors-fatal", has_arg = 0, flag = 0x0,
val = 0}, {name = 0x544ee4 "fatal-unittests", has_arg = 0,
flag = 0x0, val = 0}, {name = 0x0, has_arg = 0, flag = 0x0,
val = 0}}
option_index = 2
short_opts = "c:Dhi:l:q:d:r:us:U:V"
__FUNCTION
= "main"
c = <value optimized out>
i = <value optimized out>
---Type <return> to continue, or q <return> to quit---
de_ctx = 0x17aad50
start_time = {tv_sec = 1266516894, tv_usec = 691541}
(gdb)
(gdb) show threads
Undefined show command: "threads". Try "help show".
(gdb) info threads
17 Thread 0x7f7ffc92a910 (LWP 9936) 0x00007f7ffcf163c3 in *GI_poll (
fds=<value optimized out>, nfds=<value optimized out>, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
16 Thread 0x7f7ffc129910 (LWP 9937) pthread_cond_wait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
15 Thread 0x7f7ffb928910 (LWP 9938) pthread_cond_wait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
14 Thread 0x7f7ffb127910 (LWP 9939) pthread_cond_wait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
13 Thread 0x7f7ff3fff910 (LWP 9940) pthread_cond_wait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
12 Thread 0x7f7ffa926910 (LWP 9941) pthread_cond_wait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
11 Thread 0x7f7ffa125910 (LWP 9942) pthread_cond_wait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
10 Thread 0x7f7ff9924910 (LWP 9943) pthread_cond_wait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
9 Thread 0x7f7ff9123910 (LWP 9944) pthread_cond_wait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
8 Thread 0x7f7ff8922910 (LWP 9945) pthread_cond_wait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
7 Thread 0x7f7ff37fe910 (LWP 9946) pthread_cond_wait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
---Type <return> to continue, or q <return> to quit---
6 Thread 0x7f7ff2ffd910 (LWP 9947) pthread_cond_wait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
5 Thread 0x7f7ff27fc910 (LWP 9948) pthread_cond_wait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
4 Thread 0x7f7ff1ffb910 (LWP 9949) 0x00007f7ffcee6f51 in nanosleep ()
from /lib/libc.so.6
3 Thread 0x7f7ff1199910 (LWP 9950) pthread_cond_timedwait@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
2 Thread 0x7f7ff0998910 (LWP 9951) pthread_cond_timedwait
@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
  • 1 Thread 0x7f7ffe25a6f0 (LWP 9921) 0x00007f7ffd608cfd in pthread_join (
    threadid=140187675044112, thread_return=0x0) at pthread_join.c:89
    (gdb) thread 4
    [Switching to thread 4 (Thread 0x7f7ff1ffb910 (LWP 9949))]#0 0x00007f7ffcee6f51 in nanosleep () from /lib/libc.so.6
    (gdb) bt full
    #0 0x00007f7ffcee6f51 in nanosleep () from /lib/libc.so.6
    No symbol table info available.
    #1 0x00007f7ffcf1bbb4 in usleep (useconds=<value optimized out>)
    at ../sysdeps/unix/sysv/linux/usleep.c:33
    ts = {tv_sec = 0, tv_nsec = 10000}
    #2 0x0000000000427a3c in FlowManagerThread (td=<value optimized out>)
    at flow.c:700
    ts = {tv_sec = 1266519010, tv_usec = 564290}
    tsdiff = {tv_sec = 0, tv_usec = 0}
    established_cnt = 22476
    new_cnt = 511917
    closing_cnt = 3757
    nowcnt = <value optimized out>
    sleeping = 50
    emerg = 0 '\000'
    FUNCTION = "FlowManagerThread"
    #3 0x00007f7ffd607a04 in start_thread (arg=<value optimized out>)
    at pthread_create.c:300
    __res = <value optimized out>
    pd = 0x7f7ff1ffb910
    unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140187497642256,
    8701264264618560872, 140736356524064, 0, 0, 3,
    8773299870359106200, -8773324886669537944},
    ---Type <return> to continue, or q <return> to quit--

    mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
    data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
    not_first_call = <value optimized out>
    robust = <value optimized out>
    #4 0x00007f7ffcf2280d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
    No locals.
    #5 0x0000000000000000 in ?? ()
    No symbol table info available.
Actions #1

Updated by Victor Julien about 14 years ago

  • Status changed from New to Closed

This appears to have been fixed in the current master. Please reopen if this isn't the case.

Actions

Also available in: Atom PDF