Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory sanitizer fires on snort #3

Open
mike-at-trout-software opened this issue May 6, 2024 · 0 comments
Open

Memory sanitizer fires on snort #3

mike-at-trout-software opened this issue May 6, 2024 · 0 comments
Assignees

Comments

@mike-at-trout-software
Copy link
Collaborator

The memory sanitizer fires when we run snort (at least with the test scripts), it also does this when run without any of our own inspectors.

This can either happen as a total failure in running:

.../inspectors/dhcp_monitor$ make
sh3 -o dhcp_monitor.so -i inspector.cc 
---- TEST_dhcp> pcap $moddir/pcaps/dhcp_clean.pcap
[stderr]
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
Test Failure: tests/dhcp.script:1: pcap /home/mike/code/snort/snort-extra/inspectors/dhcp_monitor/pcaps/dhcp_clean.pcap: signal: segmentation fault (core dumped)

Or as a reported error:

...

=================================================================
==31132==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7cf5832b61e7 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7cf581e2ee51 in InitModule src/malloc_extension.cc:212
    #2 0x7cf581e2ee51 in InitModule src/malloc_extension.cc:208
    #3 0x7cf581e2ee51 in MallocExtension::Register(MallocExtension*) src/malloc_extension.cc:226

SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s).

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants