Actions
Task #8081
openmulti-tenant: better handling of "no tenant selector set" error
Effort:
Difficulty:
Label:
Description
Currently, the output is not very user-friendly; some sanity checks could probably be done earlier on.
Notice: suricata: This is Suricata version 8.0.2-dev (002bd1f1ee 2025-11-04) running in SYSTEM mode [LogVersion:suricata.c:1208]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: detect: no tenant selector set: set using multi-detect.selector [DetectEngineThreadCtxInitForMT:detect-engine.c:3165]
Error: threads: thread "W#01-enp10s0" failed to initialize: flags 0144 [TmThreadWaitOnThreadInit:tm-threads.c:2043]
Error: suricata: Engine initialization failed, aborting... [SuricataPostInit:suricata.c:3116]
=================================================================
==320281==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 9280 byte(s) in 20 object(s) allocated from:
#0 0x7ff4977205dd in calloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:74
#1 0x558cf487a00a in SCCallocFunc /home/jason/oisf/dev/suricata/main-8.0.x/src/util-mem.c:60
#2 0x558cf4a6ed0b in PacketGetFromAlloc /home/jason/oisf/dev/suricata/main-8.0.x/src/decode.c:264
#3 0x558cf4826bd7 in PacketPoolInit /home/jason/oisf/dev/suricata/main-8.0.x/src/tmqh-packetpool.c:254
#4 0x558cf48155cb in TmThreadsSlotPktAcqLoopInit /home/jason/oisf/dev/suricata/main-8.0.x/src/tm-threads.c:217
#5 0x558cf481647a in TmThreadsSlotPktAcqLoop /home/jason/oisf/dev/suricata/main-8.0.x/src/tm-threads.c:327
#6 0x7ff49765e11a in asan_thread_start /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_interceptors.cpp:239
#7 0x7ff4970969ca (/usr/lib/libc.so.6+0x969ca) (BuildId: 4fe011c94a88e8aeb6f2201b9eb369f42b4a1e9e)
Indirect leak of 12288000 byte(s) in 20480 object(s) allocated from:
#0 0x7ff4977205dd in calloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:74
#1 0x558cf487a00a in SCCallocFunc /home/jason/oisf/dev/suricata/main-8.0.x/src/util-mem.c:60
#2 0x558cf4a6e576 in PacketAlertCreate /home/jason/oisf/dev/suricata/main-8.0.x/src/decode.c:146
#3 0x558cf4f3c5fc in PacketInit /home/jason/oisf/dev/suricata/main-8.0.x/src/packet.c:66
#4 0x558cf4a6ed35 in PacketGetFromAlloc /home/jason/oisf/dev/suricata/main-8.0.x/src/decode.c:268
#5 0x558cf4826bd7 in PacketPoolInit /home/jason/oisf/dev/suricata/main-8.0.x/src/tmqh-packetpool.c:254
#6 0x558cf48155cb in TmThreadsSlotPktAcqLoopInit /home/jason/oisf/dev/suricata/main-8.0.x/src/tm-threads.c:217
#7 0x558cf481647a in TmThreadsSlotPktAcqLoop /home/jason/oisf/dev/suricata/main-8.0.x/src/tm-threads.c:327
#8 0x7ff49765e11a in asan_thread_start /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_interceptors.cpp:239
#9 0x7ff4970969ca (/usr/lib/libc.so.6+0x969ca) (BuildId: 4fe011c94a88e8aeb6f2201b9eb369f42b4a1e9e)
Indirect leak of 9493440 byte(s) in 20460 object(s) allocated from:
#0 0x7ff4977205dd in calloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:74
#1 0x558cf487a00a in SCCallocFunc /home/jason/oisf/dev/suricata/main-8.0.x/src/util-mem.c:60
#2 0x558cf4a6ed0b in PacketGetFromAlloc /home/jason/oisf/dev/suricata/main-8.0.x/src/decode.c:264
#3 0x558cf4826bd7 in PacketPoolInit /home/jason/oisf/dev/suricata/main-8.0.x/src/tmqh-packetpool.c:254
#4 0x558cf48155cb in TmThreadsSlotPktAcqLoopInit /home/jason/oisf/dev/suricata/main-8.0.x/src/tm-threads.c:217
#5 0x558cf481647a in TmThreadsSlotPktAcqLoop /home/jason/oisf/dev/suricata/main-8.0.x/src/tm-threads.c:327
#6 0x7ff49765e11a in asan_thread_start /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_interceptors.cpp:239
#7 0x7ff4970969ca (/usr/lib/libc.so.6+0x969ca) (BuildId: 4fe011c94a88e8aeb6f2201b9eb369f42b4a1e9e)
SUMMARY: AddressSanitizer: 21790720 byte(s) leaked in 40960 allocation(s).
No data to display
Actions