Skip to content

Memory leak in FDP #52

@ligurio

Description

@ligurio
UpdateCTestConfiguration  from :/home/sergeyb/sources/luzer/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/sergeyb/sources/luzer/build/DartConfiguration.tcl
Test project /home/sergeyb/sources/luzer/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 17
    Start 17: luzer_ffi_asan

17: Test command: /bin/luajit "/home/sergeyb/sources/luzer/luzer/tests/test_ffi.lua" "-runs=10"
17: Working Directory: /home/sergeyb/sources/luzer/build/luzer/tests
17: Environment variables: 
17:  LUA_CPATH=/home/sergeyb/sources/luzer/build/luzer/?.so;;
17:  LUA_PATH=/home/sergeyb/sources/luzer/?/?.lua;/home/sergeyb/sources/luzer/?/init.lua;;
17:  LD_LIBRARY_PATH=/home/sergeyb/sources/luzer/build/luzer/tests
17:  LD_PRELOAD=/home/sergeyb/sources/luzer/build/luzer/asan_with_fuzzer.so
17:  FFI_LIB_NAME=testlib_asan.so
17: Test timeout computed to be: 10000000
17: INFO: Running with entropic power schedule (0xFF, 100).
17: INFO: Seed: 409695490
17: INFO: Loaded 2 modules   (86 inline 8-bit counters): 77 [0x7f264bbca923, 0x7f264bbca970), 9 [0x7f264b43d643, 0x7f264b43d64c), 
17: INFO: Loaded 2 PC tables (86 PCs): 77 [0x7f264bbca970,0x7f264bbcae40), 9 [0x7f264b43d650,0x7f264b43d6e0), 
17: INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
17: INFO: A corpus is not provided, starting from an empty corpus
17: #2	INITED cov: 18 ft: 19 corp: 1/1b exec/s: 0 rss: 34Mb
17: 
17: =================================================================
17: ==1798908==ERROR: LeakSanitizer: detected memory leaks
17: 
17: Direct leak of 96 byte(s) in 6 object(s) allocated from:
17:     #0 0x7f264c117d54 in malloc (/home/sergeyb/sources/luzer/build/luzer/asan_with_fuzzer.so+0x117d54) (BuildId: 0b1ec97d217c690abc36df6da4aa0e0d7ef71320)
17:     #1 0x7f264b8bb903 in operator new(unsigned long) /build/gcc-14-ig5ci0/gcc-14-14.2.0/build/x86_64-linux-gnu/libstdc++-v3/libsupc++/../../../../src/libstdc++-v3/libsupc++/new_op.cc:50:22
17:     #2 0x7f264bb83391 in luaL_fuzzed_data_provider /home/sergeyb/sources/luzer/luzer/fuzzed_data_provider.cc:303:28
17:     #3 0x5613798a95d5  (/usr/bin/luajit+0x785d5) (BuildId: e8ba96877bda295db49e40559a6a7038587195fd)
17: 
17: SUMMARY: AddressSanitizer: 96 byte(s) leaked in 6 allocation(s).
17: INFO: to ignore leaks on libFuzzer side use -detect_leaks=0.
17: 
17: MS: 1 ShuffleBytes-; base unit: adc83b19e793491b1c6ea0fd8b46cd9f32e592fc
17: 0xa,
17: \012
17: artifact_prefix='./'; Test unit written to ./leak-adc83b19e793491b1c6ea0fd8b46cd9f32e592fc
17: Base64: Cg==
1/1 Test #17: luzer_ffi_asan ...................   Passed    0.79 sec

The following tests passed:
	luzer_ffi_asan

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.79 sec

Branch: ligurio/gh-xxxx-build-sanitizer-libs
PR: #38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions