Project

General

Profile

Bug #1723 » suricata_gdb.txt

oran geade, 03/02/2016 02:28 AM

 
> gdb /usr/bin/suricata /srv/core
GNU gdb (Debian 7.7.1+dfsg-5) 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 /usr/bin/suricata...done.

warning: core file may not match specified executable file.
[New LWP 32642]
[New LWP 32639]
[New LWP 32643]
[New LWP 32621]
[New LWP 32646]
[New LWP 32650]
[New LWP 32645]
[New LWP 32636]
[New LWP 32635]
[New LWP 32649]
[New LWP 32640]
[New LWP 32641]
[New LWP 32644]
[New LWP 32651]
[New LWP 32652]
[New LWP 32637]
[New LWP 32638]
[New LWP 32647]
[New LWP 32648]
[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/bin/suricata -c /etc/suricata/suricata.yaml -i eth0'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f04152da107 in __GI_qsort (b=<optimized out>, n=<optimized out>, s=<optimized out>,
cmp=<optimized out>) at msort.c:307
307 msort.c: Aucun fichier ou dossier de ce type.



(gdb) set logging on
Copying output to gdb.txt.

(gdb) thread apply all bt

Thread 19 (Thread 0x7f0405a6e700 (LWP 32648)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x000000000052c22f in TmqhInputFlow (tv=<optimized out>) at tmqh-flow.c:93
#2 0x0000000000532de2 in TmThreadsSlotVar (td=0xbc04f00) at tm-threads.c:470
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f0405a6e700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f0405a6e700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7f040626f700 (LWP 32647)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x000000000052c22f in TmqhInputFlow (tv=<optimized out>) at tmqh-flow.c:93
#2 0x0000000000532de2 in TmThreadsSlotVar (td=0xbc72000) at tm-threads.c:470
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f040626f700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040626f700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7f04107ff700 (LWP 32638)):
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007f0415ae54b9 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f0415ae52e0 in __GI___pthread_mutex_lock (mutex=0x94bb970)
at ../nptl/pthread_mutex_lock.c:79
#3 0x00007f04171d6cb4 in prelude_client_send_idmef (client=0x94bb8f0, msg=0x7f03f0077c50)
at prelude-client.c:1504
#4 0x0000000000412f6e in AlertPreludeLogger (tv=<optimized out>, thread_data=0x7f03f01290d0,
p=0x7f03f81712b0) at alert-prelude.c:919
#5 0x00000000004f470c in OutputPacketLog (tv=0xb1b83a0, p=0x7f03f81712b0,
---Type <return> to continue, or q <return> to quit---
thread_data=<optimized out>, pq=<optimized out>, postpq=<optimized out>) at output-packet.c:104
#6 0x000000000052fe22 in TmThreadsSlotVarRun (tv=tv@entry=0xb1b83a0, p=p@entry=0x7f03f81712b0,
slot=slot@entry=0xb1b84b0) at tm-threads.c:132
#7 0x0000000000532dfa in TmThreadsSlotVar (td=0xb1b83a0) at tm-threads.c:474
#8 0x00007f0415ae30a4 in start_thread (arg=0x7f04107ff700) at pthread_create.c:309
#9 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f04107ff700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#10 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f0411000700 (LWP 32637)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x000000000052c22f in TmqhInputFlow (tv=<optimized out>) at tmqh-flow.c:93
#2 0x0000000000532de2 in TmThreadsSlotVar (td=0xbc88070) at tm-threads.c:470
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f0411000700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f0411000700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f03c77fe700 (LWP 32652)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1 0x0000000000443440 in StatsMgmtThread (arg=0xbb863c0) at counters.c:359
#2 0x00007f0415ae30a4 in start_thread (arg=0x7f03c77fe700) at pthread_create.c:309
#3 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f03c77fe700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#4 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f03c7fff700 (LWP 32651)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 ()
---Type <return> to continue, or q <return> to quit---
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1 0x000000000044256f in StatsWakeupThread (arg=0xbb05e30) at counters.c:435
#2 0x00007f0415ae30a4 in start_thread (arg=0x7f03c7fff700) at pthread_create.c:309
#3 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f03c7fff700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#4 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f040d7f9700 (LWP 32644)):
#0 0x00007f04171cdf50 in prelude_msg_set@plt () from /usr/local/lib/libprelude.so.2
#1 0x00007f04171fb31a in idmef_analyzer_write (analyzer=0x5bfee70, msg=0x4be81f0)
at idmef-message-write.c:1238
#2 0x00007f04171fbf6b in idmef_alert_write (alert=0x7f03d813bda0, msg=0x12)
at idmef-message-write.c:1630
#3 0x00007f04171fc4bb in idmef_message_write (message=message@entry=0x7f03d80795a0, msg=0x4be81f0)
at idmef-message-write.c:1806
#4 0x00007f04171d6cd3 in prelude_client_send_idmef (client=0x94bb8f0, msg=0x7f03d80795a0)
at prelude-client.c:1507
#5 0x0000000000412f6e in AlertPreludeLogger (tv=<optimized out>, thread_data=0x7f03d81290d0,
p=0x7f03f818ccb0) at alert-prelude.c:919
#6 0x00000000004f470c in OutputPacketLog (tv=0x95f16e0, p=0x7f03f818ccb0,
thread_data=<optimized out>, pq=<optimized out>, postpq=<optimized out>) at output-packet.c:104
#7 0x000000000052fe22 in TmThreadsSlotVarRun (tv=tv@entry=0x95f16e0, p=p@entry=0x7f03f818ccb0,
slot=slot@entry=0x95f17f0) at tm-threads.c:132
#8 0x0000000000532dfa in TmThreadsSlotVar (td=0x95f16e0) at tm-threads.c:474
#9 0x00007f0415ae30a4 in start_thread (arg=0x7f040d7f9700) at pthread_create.c:309
#10 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040d7f9700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#11 0x0000000000000000 in ?? ()

---Type <return> to continue, or q <return> to quit---
Thread 12 (Thread 0x7f040effc700 (LWP 32641)):
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007f0415ae54b9 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f0415ae52e0 in __GI___pthread_mutex_lock (mutex=0x94bb970)
at ../nptl/pthread_mutex_lock.c:79
#3 0x00007f04171d6cb4 in prelude_client_send_idmef (client=0x94bb8f0, msg=0x7f03ec0788c0)
at prelude-client.c:1504
#4 0x0000000000412f6e in AlertPreludeLogger (tv=<optimized out>, thread_data=0x7f03ec1290d0,
p=0x7f03f807a450) at alert-prelude.c:919
#5 0x00000000004f470c in OutputPacketLog (tv=0x8fb3720, p=0x7f03f807a450,
thread_data=<optimized out>, pq=<optimized out>, postpq=<optimized out>) at output-packet.c:104
#6 0x000000000052fe22 in TmThreadsSlotVarRun (tv=tv@entry=0x8fb3720, p=p@entry=0x7f03f807a450,
slot=slot@entry=0x8fb3830) at tm-threads.c:132
#7 0x0000000000532dfa in TmThreadsSlotVar (td=0x8fb3720) at tm-threads.c:474
#8 0x00007f0415ae30a4 in start_thread (arg=0x7f040effc700) at pthread_create.c:309
#9 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040effc700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#10 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f040f7fd700 (LWP 32640)):
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007f0415ae54b9 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f0415ae52e0 in __GI___pthread_mutex_lock (mutex=0x94bb970)
at ../nptl/pthread_mutex_lock.c:79
#3 0x00007f04171d6cb4 in prelude_client_send_idmef (client=0x94bb8f0, msg=0x7f03e8077ab0)
at prelude-client.c:1504
#4 0x0000000000412f6e in AlertPreludeLogger (tv=<optimized out>, thread_data=0x7f03e81290d0,
p=0x7f03f809ccd0) at alert-prelude.c:919
#5 0x00000000004f470c in OutputPacketLog (tv=0xb76b410, p=0x7f03f809ccd0,
---Type <return> to continue, or q <return> to quit---
thread_data=<optimized out>, pq=<optimized out>, postpq=<optimized out>) at output-packet.c:104
#6 0x000000000052fe22 in TmThreadsSlotVarRun (tv=tv@entry=0xb76b410, p=p@entry=0x7f03f809ccd0,
slot=slot@entry=0xb76b520) at tm-threads.c:132
#7 0x0000000000532dfa in TmThreadsSlotVar (td=0xb76b410) at tm-threads.c:474
#8 0x00007f0415ae30a4 in start_thread (arg=0x7f040f7fd700) at pthread_create.c:309
#9 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040f7fd700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#10 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f040526d700 (LWP 32649)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1 0x00000000004d5127 in FlowManager (th_v=0xbb05710, thread_data=0x7f03cc0008c0)
at flow-manager.c:684
#2 0x00000000005309b8 in TmThreadsManagement (td=0xbb05710) at tm-threads.c:600
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f040526d700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040526d700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f0412419700 (LWP 32635)):
#0 pthread_sigmask (how=how@entry=2, newmask=<optimized out>, oldmask=oldmask@entry=0x0)
at ../nptl/sysdeps/pthread/pthread_sigmask.c:53
#1 0x00007f04171dda5d in unmask_signal (oldmask=<optimized out>) at prelude-failover.c:91
#2 0x00007f04171ddf90 in prelude_failover_save_msg (failover=0x49bc810, msg=msg@entry=0x7f03d8139d20)
at prelude-failover.c:499
#3 0x00007f04171db426 in failover_save_msg (failover=<optimized out>, msg=msg@entry=0x7f03d8139d20)
at prelude-connection-pool.c:435
#4 0x00007f04171dbfba in walk_manager_lists (msg=0x7f03d8139d20, pool=0x8f6e4a0)
---Type <return> to continue, or q <return> to quit---
at prelude-connection-pool.c:623
#5 prelude_connection_pool_broadcast (pool=0x8f6e4a0, msg=0x7f03d8139d20)
at prelude-connection-pool.c:894
#6 0x00007f04171dceb7 in broadcast_async_cb (obj=0x7f03d8139d20, data=0x8f6e4a0)
at prelude-connection-pool.c:874
#7 0x00007f04171d5159 in async_thread (arg=<optimized out>) at prelude-async.c:229
#8 0x00007f0415ae30a4 in start_thread (arg=0x7f0412419700) at pthread_create.c:309
#9 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f0412419700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f0411a01700 (LWP 32636)):
#0 0x00007f041538250d in fts_close (sp=0x1f4) at fts.c:243
#1 0x00007f0415f1c784 in ?? () from /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
#2 0x0000000000513ea8 in ReceivePcapLoop (tv=0x94a7e90, data=0x7f03f83748c0, slot=<optimized out>)
at source-pcap.c:316
#3 0x000000000053258a in TmThreadsSlotPktAcqLoop (td=0x94a7e90) at tm-threads.c:336
#4 0x00007f0415ae30a4 in start_thread (arg=0x7f0411a01700) at pthread_create.c:309
#5 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f0411a01700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#6 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f040cff8700 (LWP 32645)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x000000000052c22f in TmqhInputFlow (tv=<optimized out>) at tmqh-flow.c:93
#2 0x0000000000532de2 in TmThreadsSlotVar (td=0x95be5a0) at tm-threads.c:470
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f040cff8700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040cff8700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
---Type <return> to continue, or q <return> to quit---
#5 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f0404a6c700 (LWP 32650)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1 0x00000000004d481e in FlowRecycler (th_v=0xbb05aa0, thread_data=0x7f03c00008c0)
at flow-manager.c:844
#2 0x00000000005309b8 in TmThreadsManagement (td=0xbb05aa0) at tm-threads.c:600
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f0404a6c700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f0404a6c700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0406a70700 (LWP 32646)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x000000000052c22f in TmqhInputFlow (tv=<optimized out>) at tmqh-flow.c:93
#2 0x0000000000532de2 in TmThreadsSlotVar (td=0x9476ed0) at tm-threads.c:470
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f0406a70700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f0406a70700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0417768900 (LWP 32621)):
#0 0x00007f041535c6fd in __GI__nss_files_parse_pwent (line=0x7ffec2adaab0 "", result=0x3d31f60,
data=<optimized out>, datalen=<optimized out>, errnop=<optimized out>) at fgetpwent_r.c:34
#1 0x000000000040efb9 in main (argc=<optimized out>, argv=<optimized out>) at suricata.c:2446

Thread 3 (Thread 0x7f040dffa700 (LWP 32643)):

#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
---Type <return> to continue, or q <return> to quit---
#1 0x000000000052c22f in TmqhInputFlow (tv=<optimized out>) at tmqh-flow.c:93
#2 0x0000000000532de2 in TmThreadsSlotVar (td=0xb76be70) at tm-threads.c:470
#3 0x00007f0415ae30a4 in start_thread (arg=0x7f040dffa700) at pthread_create.c:309
#4 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040dffa700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#5 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f040fffe700 (LWP 32639)):
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007f0415ae54b9 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f0415ae52e0 in __GI___pthread_mutex_lock (mutex=0x94bb970)
at ../nptl/pthread_mutex_lock.c:79
#3 0x00007f04171d6cb4 in prelude_client_send_idmef (client=0x94bb8f0, msg=0x7f03f40790f0)
at prelude-client.c:1504
#4 0x0000000000412f6e in AlertPreludeLogger (tv=<optimized out>, thread_data=0x7f03f41290d0,
p=0x7f03f810a700) at alert-prelude.c:919
#5 0x00000000004f470c in OutputPacketLog (tv=0xb1b6ee0, p=0x7f03f810a700,
thread_data=<optimized out>, pq=<optimized out>, postpq=<optimized out>) at output-packet.c:104
#6 0x000000000052fe22 in TmThreadsSlotVarRun (tv=tv@entry=0xb1b6ee0, p=p@entry=0x7f03f810a700,
slot=slot@entry=0xb1b6ff0) at tm-threads.c:132
#7 0x0000000000532dfa in TmThreadsSlotVar (td=0xb1b6ee0) at tm-threads.c:474
#8 0x00007f0415ae30a4 in start_thread (arg=0x7f040fffe700) at pthread_create.c:309
#9 0x00007f041538b04d in __libc_ifunc_impl_list (name=<optimized out>, array=0x7f040fffe700,
max=<optimized out>) at ../sysdeps/x86_64/multiarch/ifunc-impl-list.c:128
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f040e7fb700 (LWP 32642)):

#0 0x00007f04152da107 in __GI_qsort (b=<optimized out>, n=<optimized out>, s=<optimized out>,
cmp=<optimized out>) at msort.c:307
---Type <return> to continue, or q <return> to quit---
#1 0x00007f04152db4e8 in __initstate (seed=<optimized out>, arg_state=<optimized out>,
n=<optimized out>) at random.c:245
#2 0x0000000000000000 in ?? ()
(gdb)

(2-2/3)