Project

General

Profile

Bug #1101 » thread-dump-2.txt

Second back trace for all threads - Duarte Silva, 02/07/2014 12:10 PM

 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2d7c700 (LWP 9607)]
0x0000000000000000 in ?? ()
(gdb) bt full
#0 0x0000000000000000 in ?? ()
No symbol table info available.
#1 0x0000000000439a57 in AppLayerParserGetTxCnt (ipproto=6 '\006', alproto=0, alstate=0x0) at app-layer-parser.c:708
No locals.
#2 0x00000000004393be in AppLayerParserSetTransactionInspectId (pstate=0x0, ipproto=6 '\006', alproto=0, alstate=0x0, direction=10 '\n')
at app-layer-parser.c:528
dir = 1 '\001'
total_txs = 107872928
idx = 7257322000
state_done_progress = -402568912
tx = 0x439a57
state_progress = 0
#3 0x00000000004d4f94 in DeStateUpdateInspectTransactionId (f=0x7fffdc2bae00, direction=10 '\n') at detect-engine-state.c:715
No locals.
#4 0x000000000048185f in SigMatchSignatures (th_v=0x5b39d70, de_ctx=0x196ae10, det_ctx=0x7fffe8014930, p=0x14a2480) at detect.c:1553
sms_runflags = 3 '\003'
alert_flags = 0 '\000'
alproto = 1
idx = 0
flags = 10 '\n'
alstate = 0x7fffb091f210
smsg = 0x0
s = 0x0
sm = 0x0
alversion = 5
reset_de_state = 0
state_alert = 0
alerts = 0
app_decoder_events = 0
pflow = 0x7fffdc2bae00
mask = 163 '\243'
#5 0x0000000000481d75 in Detect (tv=0x5b39d70, p=0x14a2480, data=0x7fffe8014930, pq=0x4fd76b0, postpq=0x0) at detect.c:1708
det_ctx = 0x7fffe8014930
de_ctx = 0x196ae10
r = 0
#6 0x00000000005c475f in TmThreadsSlotVarRun (tv=0x5b39d70, p=0x14a2480, slot=0x501a1a0) at tm-threads.c:559
SlotFunc = 0x481c78 <Detect>
r = TM_ECODE_OK
s = 0x4fd7670
extra_p = 0x5c142c
#7 0x0000000000587c99 in TmThreadsSlotProcessPkt (tv=0x5b39d70, s=0x501a1a0, p=0x14a2480) at tm-threads.h:142
r = TM_ECODE_OK
#8 0x000000000058a023 in AFPReadFromRing (ptv=0x7fffe80008c0) at source-af-packet.c:845
p = 0x14a2480
h = {h2 = 0x7fffd34cdcd0, raw = 0x7fffd34cdcd0}
from = 0x7fffd34cdcf0
emergency_flush = 0 '\000'
read_pkts = 94
loop_start = -1
#9 0x000000000058b013 in ReceiveAFPLoop (tv=0x5b39d70, data=0x7fffe80008c0, slot=0x5080ec0) at source-af-packet.c:1049
packet_q_len = 510

ptv = 0x7fffe80008c0
fds = {fd = 12, events = 1, revents = 1}
r = 1
s = 0x5080ec0
last_dump = 1391795473
current_time = {tv_sec = 1391795473, tv_usec = 744125}
__FUNCTION__ = "ReceiveAFPLoop"
#10 0x00000000005c502f in TmThreadsSlotPktAcqLoop (td=0x5b39d70) at tm-threads.c:703
tv = 0x5b39d70
s = 0x5080ec0
run = 1 '\001'
r = TM_ECODE_OK
slot = 0x0
__FUNCTION__ = "TmThreadsSlotPktAcqLoop"
#11 0x00007ffff58509d1 in start_thread (arg=0x7ffff2d7c700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7ffff2d7c700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737267615488, 5351944985349911518, 140737488335360, 140737267616192, 0, 3, -5351956184411212834,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#12 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 8
[Switching to thread 8 (Thread 0x7fffed687700 (LWP 9613))]#0 pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:239
239 62: movq %rax, %r14
(gdb) bt full
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:239
No locals.
#1 0x0000000000451913 in SCPerfMgmtThread (arg=0x5f24360) at counters.c:340
tv_local = 0x5f24360
run = 1 '\001'
cond_time = {tv_sec = 1391795475, tv_nsec = 0}
__FUNCTION__ = "SCPerfMgmtThread"
#2 0x00007ffff58509d1 in start_thread (arg=0x7fffed687700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7fffed687700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737176434432, 5351944985349911518, 140737488344080, 140737176435136, 0, 3, -5351904410191072290,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#3 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 7
[Switching to thread 7 (Thread 0x7ffff0577700 (LWP 9612))]#0 pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:239
239 62: movq %rax, %r14
(gdb) bt full
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:239
No locals.
#1 0x0000000000451ec2 in SCPerfWakeupThread (arg=0x50a8480) at counters.c:408
tv_local = 0x50a8480
run = 1 '\001'
tv = 0x0
q = 0x0
cond_time = {tv_sec = 1391795475, tv_nsec = 0}
__FUNCTION__ = "SCPerfWakeupThread"
#2 0x00007ffff58509d1 in start_thread (arg=0x7ffff0577700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7ffff0577700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737225651968, 5351944985349911518, 140737488344080, 140737225652672, 0, 3, -5351950684168719394,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#3 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 6
[Switching to thread 6 (Thread 0x7ffff0d78700 (LWP 9611))]#0 FlowGetFlowState (f=0x7fffea925f10) at flow-manager.c:137
137 return flow_proto[f->protomap].GetProtoState(f->protoctx);
(gdb) bt full
#0 FlowGetFlowState (f=0x7fffea925f10) at flow-manager.c:137
No locals.
#1 0x0000000000534fbe in FlowManagerHashRowTimeout (f=0x7fffea925f10, ts=0x7ffff0d77520, emergency=1, counters=0x7ffff0d77530) at flow-manager.c:269
next_flow = 0x0
state = -254315232
cnt = 0
#2 0x0000000000535236 in FlowTimeoutHash (ts=0x7ffff0d77520, try_cnt=0, counters=0x7ffff0d77530) at flow-manager.c:356
fb = 0x7ffff3de4d90
idx = 64438
cnt = 0
emergency = 1
#3 0x00000000005357f7 in FlowManagerThread (td=0x52f73f0) at flow-manager.c:483
counters = {new = 0, est = 0, clo = 0}
flow_memuse = 33554176
len = 0
th_v = 0x52f73f0
ts = {tv_sec = 1391795473, tv_usec = 782491}
established_cnt = 0
new_cnt = 0
closing_cnt = 0
emerg = 1
prev_emerg = 1
last_sec = 1391795029
cond_time = {tv_sec = 1391795473, tv_nsec = 100000}
flow_update_delay_sec = 0
flow_update_delay_nsec = 100000
flow_mgr_cnt_clo = 1
flow_mgr_cnt_new = 2
flow_mgr_cnt_est = 3
flow_mgr_memuse = 4
flow_mgr_spare = 5
flow_emerg_mode_enter = 6
flow_emerg_mode_over = 7
__FUNCTION__ = "FlowManagerThread"
#4 0x00007ffff58509d1 in start_thread (arg=0x7ffff0d78700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7ffff0d78700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737234044672, 5351944985349911518, 140737488346176, 140737234045376, 0, 3, -5351951784217218082,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#5 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 5
[Switching to thread 5 (Thread 0x7ffff1579700 (LWP 9610))]#0 0x00007ffff5390343 in __poll (fds=<value optimized out>, nfds=<value optimized out>,
timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
87 int result = INLINE_SYSCALL (poll, 3, CHECK_N (fds, nfds), nfds, timeout);
(gdb) bt full
#0 0x00007ffff5390343 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>)
at ../sysdeps/unix/sysv/linux/poll.c:87
__arg2 = 1
_a3 = 100
_a1 = 140737242430704
resultvar = <value optimized out>
__arg3 = 100
__arg1 = 140737242430704
_a2 = 1
resultvar = <value optimized out>
oldtype = 0
result = <value optimized out>
#1 0x000000000058abf2 in ReceiveAFPLoop (tv=0x501eae0, data=0x7fffd80008c0, slot=0x4fb7330) at source-af-packet.c:1021
packet_q_len = 510
ptv = 0x7fffd80008c0
fds = {fd = 15, events = 1, revents = 0}
r = 0
s = 0x4fb7330
last_dump = 1391795473
current_time = {tv_sec = 1391795473, tv_usec = 788291}
__FUNCTION__ = "ReceiveAFPLoop"
#2 0x00000000005c502f in TmThreadsSlotPktAcqLoop (td=0x501eae0) at tm-threads.c:703
tv = 0x501eae0
s = 0x4fb7330
run = 1 '\001'
r = TM_ECODE_OK
slot = 0x0
__FUNCTION__ = "TmThreadsSlotPktAcqLoop"
#3 0x00007ffff58509d1 in start_thread (arg=0x7ffff1579700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7ffff1579700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737242437376, 5351944985349911518, 140737488335360, 140737242438080, 0, 3, -5351948488366689314,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#4 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 4
[Switching to thread 4 (Thread 0x7ffff1d7a700 (LWP 9609))]#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
136 2: movl %edx, %eax
(gdb) bt full
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
No locals.
#1 0x00007ffff5852508 in _L_lock_854 () from /lib64/libpthread.so.0
No symbol table info available.
#2 0x00007ffff58523d7 in __pthread_mutex_lock (mutex=0x7fffdc2bae40) at pthread_mutex_lock.c:61
ignore1 = 128
ignore2 = -601117120
ignore3 = -512
type = <value optimized out>
id = 9609
#3 0x0000000000481964 in SigMatchSignatures (th_v=0x501e460, de_ctx=0x196ae10, det_ctx=0x7fffe40148e0, p=0x154f160) at detect.c:1584
sms_runflags = 1 '\001'
alert_flags = 0 '\000'
alproto = 0
idx = 9
flags = 4 '\004'
alstate = 0x0
smsg = 0x0
s = 0x296afc0
sm = 0x0
alversion = 0
reset_de_state = 0
state_alert = 0
alerts = 0
app_decoder_events = 0
pflow = 0x7fffdc2bae00
mask = 150 '\226'
#4 0x0000000000481d75 in Detect (tv=0x501e460, p=0x154f160, data=0x7fffe40148e0, pq=0x4fb6cf0, postpq=0x0) at detect.c:1708
det_ctx = 0x7fffe40148e0
de_ctx = 0x196ae10
r = 0
#5 0x00000000005c475f in TmThreadsSlotVarRun (tv=0x501e460, p=0x154f160, slot=0x5c7a5d0) at tm-threads.c:559
SlotFunc = 0x481c78 <Detect>
r = TM_ECODE_OK
s = 0x4fb6cb0
extra_p = 0x5c142c
#6 0x0000000000587c99 in TmThreadsSlotProcessPkt (tv=0x501e460, s=0x5c7a5d0, p=0x154f160) at tm-threads.h:142
r = TM_ECODE_OK
#7 0x000000000058a023 in AFPReadFromRing (ptv=0x7fffe40008f0) at source-af-packet.c:845
p = 0x154f160
h = {h2 = 0x7fffc8e91290, raw = 0x7fffc8e91290}
from = 0x7fffc8e912b0
emergency_flush = 0 '\000'
read_pkts = 332
loop_start = -1
#8 0x000000000058b013 in ReceiveAFPLoop (tv=0x501e460, data=0x7fffe40008f0, slot=0x5c93d20) at source-af-packet.c:1049
packet_q_len = 511
ptv = 0x7fffe40008f0
fds = {fd = 14, events = 1, revents = 1}
r = 1
s = 0x5c93d20

last_dump = 1391795473
current_time = {tv_sec = 1391795473, tv_usec = 737782}
__FUNCTION__ = "ReceiveAFPLoop"
#9 0x00000000005c502f in TmThreadsSlotPktAcqLoop (td=0x501e460) at tm-threads.c:703
tv = 0x501e460
s = 0x5c93d20
run = 1 '\001'
r = TM_ECODE_OK
slot = 0x0
__FUNCTION__ = "TmThreadsSlotPktAcqLoop"
#10 0x00007ffff58509d1 in start_thread (arg=0x7ffff1d7a700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7ffff1d7a700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737250830080, 5351944985349911518, 140737488335360, 140737250830784, 0, 3, -5351949588415188002,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#11 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 3
[Switching to thread 3 (Thread 0x7ffff257b700 (LWP 9608))]#0 0x00007ffff5390343 in __poll (fds=<value optimized out>, nfds=<value optimized out>,
timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
87 int result = INLINE_SYSCALL (poll, 3, CHECK_N (fds, nfds), nfds, timeout);
(gdb) bt full
#0 0x00007ffff5390343 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>)
at ../sysdeps/unix/sysv/linux/poll.c:87
__arg2 = 1
_a3 = 100
_a1 = 140737259216112
resultvar = <value optimized out>
__arg3 = 100
__arg1 = 140737259216112
_a2 = 1
resultvar = <value optimized out>
oldtype = 0
result = <value optimized out>
#1 0x000000000058abf2 in ReceiveAFPLoop (tv=0x5498fa0, data=0x7fffe00008c0, slot=0x53bf760) at source-af-packet.c:1021
packet_q_len = 510
ptv = 0x7fffe00008c0
fds = {fd = 13, events = 1, revents = 0}
r = 0
s = 0x53bf760
last_dump = 1391795473
current_time = {tv_sec = 1391795473, tv_usec = 798165}
__FUNCTION__ = "ReceiveAFPLoop"
#2 0x00000000005c502f in TmThreadsSlotPktAcqLoop (td=0x5498fa0) at tm-threads.c:703
tv = 0x5498fa0
s = 0x53bf760
run = 1 '\001'
r = TM_ECODE_OK
slot = 0x0
__FUNCTION__ = "TmThreadsSlotPktAcqLoop"
#3 0x00007ffff58509d1 in start_thread (arg=0x7ffff257b700) at pthread_create.c:301
__res = <value optimized out>
pd = 0x7ffff257b700
now = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737259222784, 5351944985349911518, 140737488335360, 140737259223488, 0, 3, -5351955084362714146,
-5351957984416697378}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
pagesize_m1 = <value optimized out>
sp = <value optimized out>
freesize = <value optimized out>
#4 0x00007ffff5399b6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

---------------------------------------------------------------------------------------------------

(gdb) thread 1
[Switching to thread 1 (Thread 0x7ffff7fea800 (LWP 9597))]#0 0x00007ffff535dcdd in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) bt full
#0 0x00007ffff535dcdd in nanosleep () at ../sysdeps/unix/syscall-template.S:82
No locals.
#1 0x00007ffff5392e54 in usleep (useconds=<value optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:33
ts = {tv_sec = 0, tv_nsec = 10000000}
#2 0x00000000005bd47d in main (argc=6, argv=0x7fffffffe6f8) at suricata.c:2277
suri = {run_mode = 8, pcap_dev = '\000' <repeats 127 times>, sig_file = 0x0, sig_file_exclusive = 0, pid_filename = 0x0, regex_arg = 0x0,
keyword_info = 0x0, runmode_custom_mode = 0x0, user_name = 0x7fffffffe970 "suri", group_name = 0x7fffffffe97d "suri", do_setuid = 1 '\001',
do_setgid = 1 '\001', userid = 498, groupid = 499, delayed_detect = 0, rule_reload = 0, disabled_detect = 0, daemon = 0, offline = 0,
verbose = 0, checksum_validation = -1, start_time = {tv_sec = 1391795029, tv_usec = 571783}, log_dir = 0x9285a0 "/var/log/suricata/"}
__FUNCTION__ = "main"
de_ctx = 0x196ae10
engine_retval = 0
global_de_ctx = 0x7ffff7ffdfd8
__PRETTY_FUNCTION__ = "main"
(6-6/7)