Project

General

Profile

Actions

Bug #4750

closed

pcap: memory leaks

Added by Victor Julien over 2 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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).

Subtasks 1 (0 open1 closed)

Bug #6068: pcap: memory leaks (6.0.x backport)ClosedVictor JulienActions

Related issues 1 (0 open1 closed)

Has duplicate Suricata - Bug #6042: pcap: memory leaks at shutdownClosedActions
Actions #1

Updated by Victor Julien over 2 years ago

  • Affected Versions git master added

This is with --pcap

Actions #2

Updated by Victor Julien 11 months ago

  • Has duplicate Bug #6042: pcap: memory leaks at shutdown added
Actions #3

Updated by Victor Julien 11 months 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
Actions #4

Updated by OISF Ticketbot 11 months ago

  • Subtask #6068 added
Actions #5

Updated by OISF Ticketbot 11 months ago

  • Label deleted (Needs backport to 6.0)
Actions #6

Updated by Victor Julien 10 months ago

  • Target version changed from 7.0.0-rc2 to 7.0.0
Actions #7

Updated by Victor Julien 10 months ago

  • Status changed from In Progress to In Review
Actions #8

Updated by Victor Julien 10 months ago

  • Status changed from In Review to Resolved
Actions #9

Updated by Victor Julien 9 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF