Project

General

Profile

Actions

Bug #1084

open

pfring: valgrind: memory leak at exit in bpf filter

Added by Victor Julien almost 11 years ago. Updated over 5 years ago.

Status:
Assigned
Priority:
Low
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

==19592== 528 bytes in 3 blocks are definitely lost in loss record 526 of 569
==19592==    at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19592==    by 0x5487D83: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.1.1)
==19592==    by 0x547C8D9: pcap_compile (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.1.1)
==19592==    by 0x547D16F: pcap_compile_nopcap (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.1.1)
==19592==    by 0x56B2A2C: pfring_mod_set_bpf_filter (in /usr/local/pfring/lib/libpfring.so)
==19592==    by 0x59E6C0: ReceivePfringThreadInit (source-pfring.c:478)
==19592==    by 0x5C9477: TmThreadsSlotPktAcqLoop (tm-threads.c:669)
==19592==    by 0x5AECE99: start_thread (pthread_create.c:308)
==19592==    by 0x679B3FC: clone (clone.S:112)

I think this may be a pfring issue as we do have a call to pfring_remove_bpf_filter()

Actions

Also available in: Atom PDF