Project

General

Profile

Actions

Bug #6046

closed

runmode/unix-socket: http range memory leak

Added by Victor Julien over 1 year ago. Updated over 1 year ago.

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

Description

=================================================================
==2457647==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1976 byte(s) in 13 object(s) allocated from:
    #0 0x55675a3e6098 in __interceptor_calloc (/home/victor/sync/devel/eidps/src/suricata+0x320098) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76)
    #1 0x55675a4758a9 in SCCallocFunc /home/victor/devel/eidps/src/util-mem.c:60:20
    #2 0x55675aa0277d in THashInit /home/victor/devel/eidps/src/util-thash.c:299:30
    #3 0x55675a4f2048 in HttpRangeContainersInit /home/victor/devel/eidps/src/app-layer-htp-range.c:175:13
    #4 0x55675a4206ec in PreRunInit /home/victor/sync/devel/eidps/src/suricata.c:2222:5
    #5 0x55675a857682 in UnixSocketPcapFilesCheck /home/victor/devel/eidps/src/runmode-unix-socket.c:589:5
    #6 0x55675a4489ed in UnixCommandBackgroundTasks /home/victor/devel/eidps/src/unix-manager.c:442:20
    #7 0x55675a447a21 in UnixManager /home/victor/devel/eidps/src/unix-manager.c:1136:9
    #8 0x55675a443048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9
    #9 0x7fe278307b42 in start_thread nptl/pthread_create.c:442:8

Direct leak of 152 byte(s) in 1 object(s) allocated from:
    #0 0x55675a3e6098 in __interceptor_calloc (/home/victor/sync/devel/eidps/src/suricata+0x320098) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76)
    #1 0x55675a4758a9 in SCCallocFunc /home/victor/devel/eidps/src/util-mem.c:60:20
    #2 0x55675aa0277d in THashInit /home/victor/devel/eidps/src/util-thash.c:299:30
    #3 0x55675a4f2048 in HttpRangeContainersInit /home/victor/devel/eidps/src/app-layer-htp-range.c:175:13
    #4 0x55675a4206ec in PreRunInit /home/victor/sync/devel/eidps/src/suricata.c:2222:5
    #5 0x55675a4225a9 in PostConfLoadedSetup /home/victor/sync/devel/eidps/src/suricata.c:2804:5
    #6 0x55675a4241a0 in SuricataMain /home/victor/sync/devel/eidps/src/suricata.c:2950:9
    #7 0x55675a42003e in main /home/victor/devel/eidps/src/main.c:22:12
    #8 0x7fe27829cd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

Indirect leak of 1872000 byte(s) in 13000 object(s) allocated from:
    #0 0x55675a3e6098 in __interceptor_calloc (/home/victor/sync/devel/eidps/src/suricata+0x320098) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76)
    #1 0x55675a4758a9 in SCCallocFunc /home/victor/devel/eidps/src/util-mem.c:60:20
    #2 0x55675aa0763b in THashDataAlloc /home/victor/devel/eidps/src/util-thash.c:170:20
    #3 0x55675aa03bd5 in THashInitConfig /home/victor/devel/eidps/src/util-thash.c:284:24
    #4 0x55675aa02c3c in THashInit /home/victor/devel/eidps/src/util-thash.c:330:9
    #5 0x55675a4f2048 in HttpRangeContainersInit /home/victor/devel/eidps/src/app-layer-htp-range.c:175:13
    #6 0x55675a4206ec in PreRunInit /home/victor/sync/devel/eidps/src/suricata.c:2222:5
    #7 0x55675a857682 in UnixSocketPcapFilesCheck /home/victor/devel/eidps/src/runmode-unix-socket.c:589:5
    #8 0x55675a4489ed in UnixCommandBackgroundTasks /home/victor/devel/eidps/src/unix-manager.c:442:20
    #9 0x55675a447a21 in UnixManager /home/victor/devel/eidps/src/unix-manager.c:1136:9
    #10 0x55675a443048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9
    #11 0x7fe278307b42 in start_thread nptl/pthread_create.c:442:8

Indirect leak of 212992 byte(s) in 13 object(s) allocated from:
    #0 0x55675a3e6a17 in posix_memalign (/home/victor/sync/devel/eidps/src/suricata+0x320a17) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76)
    #1 0x55675a475ec6 in SCMallocAlignedFunc /home/victor/devel/eidps/src/util-mem.c:123:13
    #2 0x55675aa035e6 in THashInitConfig /home/victor/devel/eidps/src/util-thash.c:260:18
    #3 0x55675aa02c3c in THashInit /home/victor/devel/eidps/src/util-thash.c:330:9
    #4 0x55675a4f2048 in HttpRangeContainersInit /home/victor/devel/eidps/src/app-layer-htp-range.c:175:13
    #5 0x55675a4206ec in PreRunInit /home/victor/sync/devel/eidps/src/suricata.c:2222:5
    #6 0x55675a857682 in UnixSocketPcapFilesCheck /home/victor/devel/eidps/src/runmode-unix-socket.c:589:5
    #7 0x55675a4489ed in UnixCommandBackgroundTasks /home/victor/devel/eidps/src/unix-manager.c:442:20
    #8 0x55675a447a21 in UnixManager /home/victor/devel/eidps/src/unix-manager.c:1136:9
    #9 0x55675a443048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9
    #10 0x7fe278307b42 in start_thread nptl/pthread_create.c:442:8

Indirect leak of 144000 byte(s) in 1000 object(s) allocated from:
    #0 0x55675a3e6098 in __interceptor_calloc (/home/victor/sync/devel/eidps/src/suricata+0x320098) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76)
    #1 0x55675a4758a9 in SCCallocFunc /home/victor/devel/eidps/src/util-mem.c:60:20
    #2 0x55675aa0763b in THashDataAlloc /home/victor/devel/eidps/src/util-thash.c:170:20
    #3 0x55675aa03bd5 in THashInitConfig /home/victor/devel/eidps/src/util-thash.c:284:24
    #4 0x55675aa02c3c in THashInit /home/victor/devel/eidps/src/util-thash.c:330:9
    #5 0x55675a4f2048 in HttpRangeContainersInit /home/victor/devel/eidps/src/app-layer-htp-range.c:175:13
    #6 0x55675a4206ec in PreRunInit /home/victor/sync/devel/eidps/src/suricata.c:2222:5
    #7 0x55675a4225a9 in PostConfLoadedSetup /home/victor/sync/devel/eidps/src/suricata.c:2804:5
    #8 0x55675a4241a0 in SuricataMain /home/victor/sync/devel/eidps/src/suricata.c:2950:9
    #9 0x55675a42003e in main /home/victor/devel/eidps/src/main.c:22:12
    #10 0x7fe27829cd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

Indirect leak of 16384 byte(s) in 1 object(s) allocated from:
    #0 0x55675a3e6a17 in posix_memalign (/home/victor/sync/devel/eidps/src/suricata+0x320a17) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76)
    #1 0x55675a475ec6 in SCMallocAlignedFunc /home/victor/devel/eidps/src/util-mem.c:123:13
    #2 0x55675aa035e6 in THashInitConfig /home/victor/devel/eidps/src/util-thash.c:260:18
    #3 0x55675aa02c3c in THashInit /home/victor/devel/eidps/src/util-thash.c:330:9
    #4 0x55675a4f2048 in HttpRangeContainersInit /home/victor/devel/eidps/src/app-layer-htp-range.c:175:13
    #5 0x55675a4206ec in PreRunInit /home/victor/sync/devel/eidps/src/suricata.c:2222:5
    #6 0x55675a4225a9 in PostConfLoadedSetup /home/victor/sync/devel/eidps/src/suricata.c:2804:5
    #7 0x55675a4241a0 in SuricataMain /home/victor/sync/devel/eidps/src/suricata.c:2950:9
    #8 0x55675a42003e in main /home/victor/devel/eidps/src/main.c:22:12
    #9 0x7fe27829cd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

SUMMARY: AddressSanitizer: 2247504 byte(s) leaked in 14028 allocation(s).
Actions

Also available in: Atom PDF