Project

General

Profile

Actions

Bug #4356

open

Napatech memory leaks

Added by Jeff Lucovsky almost 4 years ago. Updated 6 months ago.

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

Description

From a 5.0.4 system:

Feb 23 14:00:42 notice suricata: =================================================================
Feb 23 14:00:42 notice suricata: ==105558==ERROR: LeakSanitizer: detected memory leaks
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 3584 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d5bfb54a in StatsGetCounterArrayRange /suricata/build/production/src/counters.c:1159
Feb 23 14:00:42 notice suricata:     #2 0x5599d5bfcd16 in StatsGetAllCountersArray /suricata/build/production/src/counters.c:1195
Feb 23 14:00:42 notice suricata:     #3 0x5599d5bfcd16 in StatsSetupPrivate /suricata/build/production/src/counters.c:1201
Feb 23 14:00:42 notice suricata:     #4 0x5599d5ef1126 in NapatechStreamThreadInit /suricata/build/production/src/source-napatech.c:225
Feb 23 14:00:42 notice suricata:     #5 0x5599d5f79e0f in TmThreadsSlotPktAcqLoop /suricata/build/production/src/tm-threads.c:329
Feb 23 14:00:42 notice suricata:     #6 0x7f36a16a937d in start_thread /pkgs/glibc/build/glibc-2.32/nptl/pthread_create.c:463
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 1792 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d5ef0fa3 in NapatechStreamThreadInit /suricata/build/production/src/source-napatech.c:213
Feb 23 14:00:42 notice suricata:     #2 0x5599d5f79e0f in TmThreadsSlotPktAcqLoop /suricata/build/production/src/tm-threads.c:329
Feb 23 14:00:42 notice suricata:     #3 0x7f36a16a937d in start_thread /pkgs/glibc/build/glibc-2.32/nptl/pthread_create.c:463
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 1792 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d603250c in NapatechStatsLoop /suricata/build/production/src/util-napatech.c:246
Feb 23 14:00:42 notice suricata:     #2 0x7f36a16a937d in start_thread /pkgs/glibc/build/glibc-2.32/nptl/pthread_create.c:463
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 1792 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d60323de in NapatechStatsLoop /suricata/build/production/src/util-napatech.c:227
Feb 23 14:00:42 notice suricata:     #2 0x7f36a16a937d in start_thread /pkgs/glibc/build/glibc-2.32/nptl/pthread_create.c:463
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 1792 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d6032473 in NapatechStatsLoop /suricata/build/production/src/util-napatech.c:237
Feb 23 14:00:42 notice suricata:     #2 0x7f36a16a937d in start_thread /pkgs/glibc/build/glibc-2.32/nptl/pthread_create.c:463
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 1344 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d5ebf7ce in NapatechConfigParser /suricata/build/production/src/runmode-napatech.c:164
Feb 23 14:00:42 notice suricata:     #2 0x5599d6065687 in RunModeSetLiveCaptureWorkers /suricata/build/production/src/util-runmodes.c:392
Feb 23 14:00:42 notice suricata:     #3 0x5599d5ec0609 in NapatechInit /suricata/build/production/src/runmode-napatech.c:236
Feb 23 14:00:42 notice suricata:     #4 0x5599d5ed2a33 in RunModeDispatch /suricata/build/production/src/runmodes.c:378
Feb 23 14:00:42 notice suricata:     #5 0x5599d5acd777 in main /suricata/build/production/src/suricata.c:3092
Feb 23 14:00:42 notice suricata:     #6 0x7f369fa5863c in __libc_start_main ../csu/libc-start.c:314
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: Direct leak of 504 byte(s) in 56 object(s) allocated from:
Feb 23 14:00:42 notice suricata:     #0 0x7f36a312c078 in __interceptor_calloc ../../../../gcc-7.3.0/libsanitizer/asan/asan_malloc_linux.cc:70
Feb 23 14:00:42 notice suricata:     #1 0x5599d5ec045e in NapatechRegisterDeviceStreams /suricata/build/production/src/runmode-napatech.c:118
Feb 23 14:00:42 notice suricata:     #2 0x5599d5ec045e in NapatechInit /suricata/build/production/src/runmode-napatech.c:212
Feb 23 14:00:42 notice suricata:     #3 0x5599d5ed2a33 in RunModeDispatch /suricata/build/production/src/runmodes.c:378
Feb 23 14:00:42 notice suricata:     #4 0x5599d5acd777 in main /suricata/build/production/src/suricata.c:3092
Feb 23 14:00:42 notice suricata:     #5 0x7f369fa5863c in __libc_start_main ../csu/libc-start.c:314
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata:
Feb 23 14:00:42 notice suricata: SUMMARY: AddressSanitizer: 12664 byte(s) leaked in 393 allocation(s).

Actions

Also available in: Atom PDF