Actions
Bug #4750
closedpcap: memory leaks
Affected Versions:
Effort:
Difficulty:
Label:
Description
Oct 11 07:56:49 c2758 suricata[12883]: ================================================================= Oct 11 07:56:49 c2758 suricata[12883]: ==12883==ERROR: LeakSanitizer: detected memory leaks Oct 11 07:56:49 c2758 suricata[12883]: Direct leak of 144 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe3557aad28 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x558af471db0b in SCCallocFunc /home/victor/dev/suricata/src/util-mem.c:57 Oct 11 07:56:49 c2758 suricata[12883]: #2 0x558af49e4351 in ReceivePcapThreadInit /home/victor/dev/suricata/src/source-pcap.c:396 Oct 11 07:56:49 c2758 suricata[12883]: #3 0x558af46ebaaa in TmThreadsSlotPktAcqLoop /home/victor/dev/suricata/src/tm-threads.c:258 Oct 11 07:56:49 c2758 suricata[12883]: #4 0x7fe353c1e6da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da) Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 1524 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe3557aab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529a4894 in activate_mmap pcap-linux.c:4030 Oct 11 07:56:49 c2758 suricata[12883]: #2 0x7fe3529a4894 in pcap_activate_linux pcap-linux.c:1653 Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 808 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe3557aad28 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529aa15a in pcap_alloc_pcap_t pcap.c:523 Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 64 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe3557aab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529a553d in create_ring pcap-linux.c:4677 Oct 11 07:56:49 c2758 suricata[12883]: #2 0x7fe3529a553d in activate_mmap pcap-linux.c:4049 Oct 11 07:56:49 c2758 suricata[12883]: #3 0x7fe3529a553d in pcap_activate_linux pcap-linux.c:1653 Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 8 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe3557aab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529a621b in pcap_create_interface pcap-linux.c:493 Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 8 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe3557aab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529a364b in map_arphrd_to_dlt pcap-linux.c:3237 Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 4 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe355743538 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x77538) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529aa04a in pcap_create pcap.c:412 Oct 11 07:56:49 c2758 suricata[12883]: #2 0x558af46ebaaa in TmThreadsSlotPktAcqLoop /home/victor/dev/suricata/src/tm-threads.c:258 Oct 11 07:56:49 c2758 suricata[12883]: #3 0x7fe353c1e6da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da) Oct 11 07:56:49 c2758 suricata[12883]: Indirect leak of 4 byte(s) in 1 object(s) allocated from: Oct 11 07:56:49 c2758 suricata[12883]: #0 0x7fe355743538 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x77538) Oct 11 07:56:49 c2758 suricata[12883]: #1 0x7fe3529a3c15 in pcap_activate_linux pcap-linux.c:1524 Oct 11 07:56:49 c2758 suricata[12883]: #2 0x558af46ebaaa in TmThreadsSlotPktAcqLoop /home/victor/dev/suricata/src/tm-threads.c:258 Oct 11 07:56:49 c2758 suricata[12883]: #3 0x7fe353c1e6da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da) Oct 11 07:56:49 c2758 suricata[12883]: SUMMARY: AddressSanitizer: 2564 byte(s) leaked in 8 allocation(s).
Updated by Victor Julien over 1 year ago
- Has duplicate Bug #6042: pcap: memory leaks at shutdown added
Updated by Victor Julien over 1 year ago
- Status changed from New to In Progress
- Assignee set to Victor Julien
- Target version set to 7.0.0-rc2
- Label Needs backport to 6.0 added
Updated by Victor Julien over 1 year ago
- Target version changed from 7.0.0-rc2 to 7.0.0
Updated by Victor Julien over 1 year ago
- Status changed from In Progress to In Review
Updated by Victor Julien over 1 year ago
- Status changed from In Review to Resolved
Actions