Bug #6042
Updated by Victor Julien over 1 year ago
<pre> ==211893==ERROR: LeakSanitizer: detected memory leaks Direct leak of 144 byte(s) in 1 object(s) allocated from: #0 0x7f422ec97a06 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:153 #1 0x55eb1fb50744 in SCCallocFunc /home/victor/dev/suricata6/src/util-mem.c:57 #2 0x55eb1fa44438 in ReceivePcapThreadInit /home/victor/dev/suricata6/src/source-pcap.c:396 #3 0x55eb1fac9c84 in TmThreadsSlotPktAcqLoop /home/victor/dev/suricata6/src/tm-threads.c:258 #4 0x7f422e6d2608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477 Indirect leak of 1524 byte(s) in 1 object(s) allocated from: #0 0x7f422ec97808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144 #1 0x7f422da61894 in activate_mmap pcap-linux.c:4030 #2 0x7f422da61894 in pcap_activate_linux pcap-linux.c:1653 Indirect leak of 808 byte(s) in 1 object(s) allocated from: #0 0x7f422ec97a06 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:153 #1 0x7f422da6715a in pcap_alloc_pcap_t pcap.c:523 Indirect leak of 64 byte(s) in 1 object(s) allocated from: #0 0x7f422ec97808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144 #1 0x7f422da6253d in create_ring pcap-linux.c:4677 #2 0x7f422da6253d in activate_mmap pcap-linux.c:4049 #3 0x7f422da6253d in pcap_activate_linux pcap-linux.c:1653 Indirect leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7f422ec203ed in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cc:445 #1 0x7f422da6704a in pcap_create pcap.c:412 #2 0x55eb1fac9c84 in TmThreadsSlotPktAcqLoop /home/victor/dev/suricata6/src/tm-threads.c:258 #3 0x7f422e6d2608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477 Indirect leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7f422ec203ed in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cc:445 #1 0x7f422da60c15 in pcap_activate_linux pcap-linux.c:1524 #2 0x55eb1fac9c84 in TmThreadsSlotPktAcqLoop /home/victor/dev/suricata6/src/tm-threads.c:258 #3 0x7f422e6d2608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477 Indirect leak of 8 byte(s) in 1 object(s) allocated from: #0 0x7f422ec97808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144 #1 0x7f422da6321b in pcap_create_interface pcap-linux.c:493 #2 0x61d0002ce2b7 (<unknown module>) Indirect leak of 8 byte(s) in 1 object(s) allocated from: #0 0x7f422ec97808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144 #1 0x7f422da6064b in map_arphrd_to_dlt pcap-linux.c:3237 SUMMARY: AddressSanitizer: 2576 byte(s) leaked in 8 allocation(s). </pre> Default yaml with this commandline <pre> sudo @sudo ./src/suricata -c alerts-only.yaml --pcap=suripcap0 -l /var/log/suricata6/pcap/ </pre> /var/log/suricata6/pcap/@