Project

General

Profile

Actions

Bug #1728

closed

unix manager command channel memory leaks

Added by Victor Julien about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

From the same run as in #1727, LSAN reports many json related allocations that didn't get freed:

Direct leak of 8964504 byte(s) in 373521 object(s) allocated from:
    #0 0x4c396b in malloc (/opt/suricata-asan/bin/suricata+0x4c396b)
    #1 0x7fbc9fed0247 in json_string_nocheck /home/sandnet/src/jansson-2.5/src/value.c:630

Direct leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x4ae4f6 in __interceptor_strdup (/opt/suricata-asan/bin/suricata+0x4ae4f6)
    #1 0xebc6f8 in RunModeDispatch /home/pmanev/sandnet-qa/stage/oisf/src/runmodes.c:363:22
    #2 0x1029614 in main /home/pmanev/sandnet-qa/stage/oisf/src/suricata.c:2373:5
    #3 0x7fbc9db2bec4 in __libc_start_main /build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c:287

Indirect leak of 5052191 byte(s) in 373506 object(s) allocated from:
    #0 0x4c396b in malloc (/opt/suricata-asan/bin/suricata+0x4c396b)
    #1 0x7fbc9fecddce in jsonp_strdup /home/sandnet/src/jansson-2.5/src/memory.c:44

Indirect leak of 182 byte(s) in 26 object(s) allocated from:
    #0 0x4ae4f6 in __interceptor_strdup (/opt/suricata-asan/bin/suricata+0x4ae4f6)
    #1 0xebc6f8 in RunModeDispatch /home/pmanev/sandnet-qa/stage/oisf/src/runmodes.c:363:22
    #2 0xeae198 in UnixSocketPcapFilesCheck /home/pmanev/sandnet-qa/stage/oisf/src/runmode-unix-socket.c:393:9
    #3 0x109bc37 in UnixCommandBackgroundTasks /home/pmanev/sandnet-qa/stage/oisf/src/unix-manager.c:430:20
    #4 0x10a9be2 in UnixManager /home/pmanev/sandnet-qa/stage/oisf/src/unix-manager.c:977:9
    #5 0x1075643 in TmThreadsManagement /home/pmanev/sandnet-qa/stage/oisf/src/tm-threads.c:600:9
    #6 0x7fbc9fcb3181 in start_thread /build/eglibc-3GlaMS/eglibc-2.19/nptl/pthread_create.c:312
Actions #1

Updated by Eric Leblond about 8 years ago

  • Status changed from Assigned to Closed
Actions #2

Updated by Eric Leblond about 8 years ago

  • Target version changed from 70 to 3.0.1RC1
Actions

Also available in: Atom PDF