Actions
Bug #3906
closedmqtt 'assertion failed: `(left == right)` src/mqtt/parser.rs:500:13
Affected Versions:
Effort:
Difficulty:
Label:
Description
Affected version: gitmaster only
Background - while testing a fix ( https://github.com/regit/suricata/commits/af-packet-fixes-6 ) for https://redmine.openinfosecfoundation.org/issues/3861
The fix covers and fixes the original issue 3861
Unrelated to it (and as it was right on top of master) i stumbled on another issue.
The engine immediately upon start enters into emergency mode then the following ensures right after start as well.
I can provide full core details privetly - plz feel free to ping me.
[88462] 5/9/2020 -- 14:30:27 - (flow-manager.c:867) <Notice> (FlowManager) -- Flow emergency mode entered... [88467] 5/9/2020 -- 14:30:27 - (flow-manager.c:867) <Notice> (FlowManager) -- Flow emergency mode entered... [88465] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88465] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88466] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88466] 5/9/2020 -- 14:30:27 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88464] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88467] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88461] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88461] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88463] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88461] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88461] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88465] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88465] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88462] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88462] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88462] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) [88462] 5/9/2020 -- 14:30:28 - (util-ebpf.c:135) <Warning> (EBPFDeleteKey) -- [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to delete entry: No such file or directory (2) thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `1`, right: `11`', src/mqtt/parser.rs:500:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace fatal runtime error: failed to initiate panic, error 5 Aborted (core dumped)
/usr/local/bin/suricata --build-info This is Suricata version 6.0.0-dev (1be294718 2020-09-05) Features: PCAP_SET_BUFF AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK PCRE_JIT HAVE_NSS HAVE_LUA HAVE_LUAJIT HAVE_LIBJANSSON TLS TLS_C11 MAGIC RUST SIMD support: SSE_4_2 SSE_4_1 SSE_3 Atomic intrinsics: 1 2 4 8 16 byte(s) 64-bits, Little-endian architecture GCC version 4.2.1 Compatible Clang 7.0.1 (tags/RELEASE_701/final), C version 201112 compiled with _FORTIFY_SOURCE=0 L1 cache line size (CLS)=64 thread local storage method: _Thread_local compiled with LibHTP v0.5.33, linked against LibHTP v0.5.33 Suricata Configuration: AF_PACKET support: yes eBPF support: yes XDP support: yes PF_RING support: no NFQueue support: no NFLOG support: no IPFW support: no Netmap support: no DAG enabled: no Napatech enabled: no WinDivert enabled: no Unix socket enabled: yes Detection enabled: yes Libmagic support: yes libnss support: yes libnspr support: yes libjansson support: yes hiredis support: no hiredis async with libevent: no Prelude support: no PCRE jit: yes LUA support: yes, through luajit libluajit: yes GeoIP2 support: yes Non-bundled htp: no Old barnyard2 support: Hyperscan support: yes Libnet support: yes liblz4 support: yes Rust support: yes Rust strict mode: yes Rust compiler path: /root/.cargo/bin/rustc Rust compiler version: rustc 1.46.0 (04488afe3 2020-08-24) Cargo path: /root/.cargo/bin/cargo Cargo version: cargo 1.46.0 (149022b1d 2020-07-17) Cargo vendor: yes Python support: yes Python path: /usr/bin/python3 Python distutils yes Python yaml yes Install suricatactl: yes Install suricatasc: yes Install suricata-update: not bundled Profiling enabled: no Profiling locks enabled: no Plugin support (experimental): yes Development settings: Coccinelle / spatch: no Unit tests enabled: no Debug output enabled: no Debug validation enabled: no Generic build parameters: Installation prefix: /usr/local Configuration directory: /usr/local/etc/suricata/ Log directory: /usr/local/var/log/suricata/ --prefix /usr/local --sysconfdir /usr/local/etc --localstatedir /usr/local/var --datarootdir /usr/local/share Host: x86_64-pc-linux-gnu Compiler: clang (exec name) / g++ (real) GCC Protect enabled: no GCC march native enabled: yes GCC Profile enabled: no Position Independent Executable enabled: no CFLAGS -ggdb3 -O0 -Werror -Wchar-subscripts -Wshadow -Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function -fno-strict-aliasing -fstack-protector-all -fsanitize=address -fno-omit-frame-pointer -Wno-unused-parameter -Wno-unused-function -std=c11 -march=native -I${srcdir}/../rust/gen -I${srcdir}/../rust/dist PCAP_CFLAGS -I/usr/include SECCFLAGS
Actions