Project

General

Profile

Actions

Bug #2125

closed

ASAN SEGV - Suricata version 4.0dev (rev 922a27e)

Added by Peter Manev almost 7 years ago. Updated almost 7 years ago.

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

Description

Suricata version 4.0dev (rev 922a27e)
AFPv3 listening on 3 interfaces with vlans

Chasing a SEGV -


[32136] 1/6/2017 -- 12:49:32 - (source-af-packet.c:1687) <Perf> (AFPComputeRingParamsV3) -- AF_PACKET V3 RX Ring params: block_size=32768 block_nr=10527 frame_size=1680 frame_nr=200013 (mem: 344948736)
[32137] 1/6/2017 -- 12:49:32 - (source-af-packet.c:1687) <Perf> (AFPComputeRingParamsV3) -- AF_PACKET V3 RX Ring params: block_size=32768 block_nr=10527 frame_size=1680 frame_nr=200013 (mem: 344948736)
[32138] 1/6/2017 -- 12:49:32 - (source-af-packet.c:1687) <Perf> (AFPComputeRingParamsV3) -- AF_PACKET V3 RX Ring params: block_size=32768 block_nr=3450 frame_size=1680 frame_nr=65550 (mem: 113049600)
[32138] 1/6/2017 -- 12:49:32 - (source-af-packet.c:476) <Info> (AFPPeersListReachedInc) -- All AFP capture threads are running.
ASAN:DEADLYSIGNAL
=================================================================
==32007==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000050 (pc 0x000000967f24 bp 0x7faedcc73e00 sp 0x7faedcc73dd0 T13)
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
ASAN:DEADLYSIGNAL
ASAN:DEADLYSIGNAL
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
==32007==AddressSanitizer: while reporting a bug found another one. Ignoring.
    #0 0x967f23 in FlowChangeProto /home/pevman/tests/git/oisf/src/flow.c:209:9
    #1 0x99d201 in FlowWorker /home/pevman/tests/git/oisf/src/flow-worker.c:218:13
    #2 0xbefccd in TmThreadsSlotVarRun /home/pevman/tests/git/oisf/src/tm-threads.c:130:17
    #3 0xb23b2b in TmThreadsSlotProcessPkt /home/pevman/tests/git/oisf/src/./tm-threads.h:147:9
    #4 0xb23831 in AFPParsePacketV3 /home/pevman/tests/git/oisf/src/source-af-packet.c:1036:9
    #5 0xb22420 in AFPWalkBlock /home/pevman/tests/git/oisf/src/source-af-packet.c:1051:13
    #6 0xb14ef1 in AFPReadFromRingV3 /home/pevman/tests/git/oisf/src/source-af-packet.c:1090:13
    #7 0xb11f41 in ReceiveAFPLoop /home/pevman/tests/git/oisf/src/source-af-packet.c:1479:17
    #8 0xc01747 in TmThreadsSlotPktAcqLoop /home/pevman/tests/git/oisf/src/tm-threads.c:334:13
    #9 0x7faf061656b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
    #10 0x7faf0395d82c in clone /build/glibc-9tT8Do/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:109

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/pevman/tests/git/oisf/src/flow.c:209:9 in FlowChangeProto
Thread T13 (W#05-eth3) created by T0 (Suricata-Main) here:
    #0 0x430749 in pthread_create (/usr/local/bin/suricata+0x430749)
    #1 0xbfc015 in TmThreadSpawn /home/pevman/tests/git/oisf/src/tm-threads.c:1903:14
    #2 0xd7ebd9 in RunModeSetLiveCaptureWorkersForDevice /home/pevman/tests/git/oisf/src/util-runmodes.c:340:13
    #3 0xd7db0d in RunModeSetLiveCaptureWorkers /home/pevman/tests/git/oisf/src/util-runmodes.c:372:9
    #4 0xae00dc in RunModeIdsAFPWorkers /home/pevman/tests/git/oisf/src/runmode-af-packet.c:687:11
    #5 0xb0509b in RunModeDispatch /home/pevman/tests/git/oisf/src/runmodes.c:384:5
    #6 0xbc74f1 in main /home/pevman/tests/git/oisf/src/suricata.c:2853:5
    #7 0x7faf0387782f in __libc_start_main /build/glibc-9tT8Do/glibc-2.23/csu/../csu/libc-start.c:291

==32007==ABORTING
Actions

Also available in: Atom PDF