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

2.10.80: test suite is failing #1413

Open
kloczek opened this issue Aug 2, 2023 · 19 comments
Open

2.10.80: test suite is failing #1413

kloczek opened this issue Aug 2, 2023 · 19 comments

Comments

@kloczek
Copy link

kloczek commented Aug 2, 2023

+ cd gperftools-gperftools-2.10.80
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
rm -f sampling_test.sh
cp -p ./src/tests/sampling_test.sh sampling_test.sh
rm -f tcmalloc_unittest.sh
cp -p ./src/tests/tcmalloc_unittest.sh tcmalloc_unittest.sh
rm -f debugallocation_test.sh
cp -p ./src/tests/debugallocation_test.sh debugallocation_test.sh
rm -f heap-profiler_unittest.sh
cp -p ./src/tests/heap-profiler_unittest.sh heap-profiler_unittest.sh
rm -f heap-checker-death_unittest.sh
cp -p ./src/tests/heap-checker-death_unittest.sh heap-checker-death_unittest.sh
rm -f sampling_debug_test.sh
cp -p ./src/tests/sampling_test.sh sampling_debug_test.sh
rm -f heap-profiler_debug_unittest.sh
cp -p ./src/tests/heap-profiler_unittest.sh heap-profiler_debug_unittest.sh
rm -f profiler_unittest.sh
cp -p ./src/tests/profiler_unittest.sh profiler_unittest.sh
/usr/bin/make  pprof_unittest
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
./src/pprof -test
AddressAdd 32-bit tests: 5 passes, 0 failures
AddressAdd 64-bit tests: 10 passes, 0 failures
AddressSub 32-bit tests: 5 passes, 0 failures
AddressSub 64-bit tests: 10 passes, 0 failures
AddressInc 32-bit tests: 5 passes, 0 failures
AddressInc 64-bit tests: 10 passes, 0 failures
PASS
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
/usr/bin/make  check-TESTS
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
./src/pprof -test
AddressAdd 32-bit tests: 5 passes, 0 failures
AddressAdd 64-bit tests: 10 passes, 0 failures
AddressSub 32-bit tests: 5 passes, 0 failures
AddressSub 64-bit tests: 10 passes, 0 failures
AddressInc 32-bit tests: 5 passes, 0 failures
AddressInc 64-bit tests: 10 passes, 0 failures
PASS
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: stacktrace_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f debugallocation_test.sh
cp -p ./src/tests/debugallocation_test.sh debugallocation_test.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: mmap_hook_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f tcmalloc_unittest.sh
cp -p ./src/tests/tcmalloc_unittest.sh tcmalloc_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: safe_strerror_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f sampling_test.sh
cp -p ./src/tests/sampling_test.sh sampling_test.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f heap-profiler_unittest.sh
cp -p ./src/tests/heap-profiler_unittest.sh heap-profiler_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f heap-checker-death_unittest.sh
cp -p ./src/tests/heap-checker-death_unittest.sh heap-checker-death_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f sampling_debug_test.sh
cp -p ./src/tests/sampling_test.sh sampling_debug_test.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: current_allocated_bytes_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f heap-profiler_debug_unittest.sh
cp -p ./src/tests/heap-profiler_unittest.sh heap-profiler_debug_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: system_alloc_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: packed_cache_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
rm -f profiler_unittest.sh
cp -p ./src/tests/profiler_unittest.sh profiler_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: getpc_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: malloc_extension_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: malloc_extension_c_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: markidle_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: page_heap_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: malloc_extension_debug_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: raw_printer_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: stack_trace_table_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: simple_compat_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: frag_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: sampler_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: sampler_debug_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_minimal_large_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: profiledata_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: realloc_debug_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: memalign_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: realloc_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: pagemap_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: memalign_debug_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_minimal_large_heap_fragmentation_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: thread_dealloc_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: malloc_hook_test
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_minimal_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_minimal_debug_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_debug_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcm_min_asserts_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_large_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: sampling_test.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: sampling_debug_test.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_large_heap_fragmentation_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: low_level_alloc_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: addressmap_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: debugallocation_test.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: heap-profiler_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: heap-profiler_debug_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: profile_handler_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: heap-checker-death_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_both_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_and_profiler_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcm_asserts_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
./test-driver: line 107: 623047 Aborted                 (core dumped) "$@" > $log_file 2>&1
FAIL: heap-checker_debug_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: heap-checker_unittest
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: profiler_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
PASS: tcmalloc_unittest.sh
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
==========================================
   gperftools 2.10.80: ./test-suite.log
==========================================

# TOTAL: 50
# PASS:  49
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: heap-checker_debug_unittest
=================================

Turning perftools heap leak checking off
HeapLeakChecker got turned off; we won't test much...

Adding pthread-specifics for thread 139722934790080 pid 623336
Creating extra thread 1
Creating extra thread 2
A new HeapBusyThread 0
Adding pthread-specifics for thread 139722923964096 pid 623336
Creating extra thread 3
Creating extra thread 4
Creating extra thread 5
Creating extra thread 6
Creating extra thread 7
A new HeapBusyThread 1
Adding pthread-specifics for thread 139722915571392 pid 623336
A new HeapBusyThread 3
Adding pthread-specifics for thread 139722898785984 pid 623336
A new HeapBusyThread 4
Adding pthread-specifics for thread
139722890393280 pid A new HeapBusyThread 5
Adding pthread-specifics for thread 623336139722882000576 pid 623336
A new HeapBusyThread 2
Adding pthread-specifics for thread 139722907178688 pid 623336
Creating extra thread 8
Creating extra thread 9
A new HeapBusyThread 7
Adding pthread-specifics for thread 139722865215168 pid 623336
Creating extra thread 10
A new HeapBusyThread 6
Adding pthread-specifics for thread 139722873607872 pid 623336
Creating extra thread 11
Creating extra thread 12
A new HeapBusyThread
10A new HeapBusyThread 8
Adding pthread-specifics for thread 139722856822464
 pid
Creating extra thread Adding pthread-specifics for thread 62333613139722840037056 pid 623336
A new HeapBusyThread 9
Adding pthread-specifics for thread 139722848429760 pid 623336
A new HeapBusyThread 11
Adding pthread-specifics for thread 139722831644352 pid 623336
Creating extra thread 14
A new HeapBusyThread 12
Adding pthread-specifics for thread 139722823251648 pid 623336
Creating extra thread 15
A new HeapBusyThread 13
Adding pthread-specifics for thread 139722814858944 pid 623336
Creating extra thread 16
A new HeapBusyThread 14
Adding pthread-specifics for thread 139722806466240 pid 623336
Creating extra thread 17
A new HeapBusyThread 15
Adding pthread-specifics for thread 139722798073536 pid 623336
A new HeapBusyThread 16
Adding pthread-specifics for thread 139722789680832 pid 623336
Adding pthread-specifics for thread 139722934790080 pid 623336
In main(): heap_check=
Heap checker is not active, hence checker "all" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "trivial" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "simple" will do nothing!
To activate set the HEAPCHECK environment variable.

Pre leaking : 0xf03a0acf13865f5b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0acf139ebf5b ^ 0xf03a5f7bf03a5f7b
Heap checker is not active, hence checker "trick" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf13efbf5b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0acf1350679b ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic
Heap checker is not active, hence checker "death_simple" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf13451e9b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0acf1344befb ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic
Heap checker is not active, hence checker "death_loop" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf1341f85b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0acf1341ffdb ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic

Pre leaking : 0xf03a0acf134fd65b ^ 0xf03a5f7bf03a5f7b
Heap checker is not active, hence checker "death_inverse" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf13451cdb ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic
Heap checker is not active, hence checker "death_noleaks" will do nothing!
To activate set the HEAPCHECK environment variable.

Pre leaking : 0xf03a0acf13b9435b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0acf135f475b ^ 0xf03a5f7bf03a5f7b
Heap checker is not active, hence checker "death_count_less" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf13451a1b ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic

Pre leaking : 0xf03a0acf1345185b ^ 0xf03a5f7bf03a5f7b
Heap checker is not active, hence checker "death_count_more" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf13b9405b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0acf13b9495b ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic
Heap checker is not active, hence checker "death_trick" will do nothing!
To activate set the HEAPCHECK environment variable.
death_trick leak is not caught; we must be using a stripped binary
Heap checker is not active, hence checker "trivial_p" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "simple_p" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "disabling" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "stl" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "death_inverse_stl" will do nothing!
To activate set the HEAPCHECK environment variable.

Leaking : 0xf03a0acf13cff9c3 ^ 0xf03a5f7bf03a5f7b
Expected leaks not found: Some liveness flood must be too optimistic
Heap checker is not active, hence checker "direct_stl-std::allocator<char>()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-std::allocator<int>()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-std::string().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-string().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-vector<int>().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-vector<double>().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-vector<vector<int> >().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-vector<string>().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-(map<string, string>().get_allocator())" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-(map<string, int>().get_allocator())" will do nothing!
To activate set the HEAPCHECK environment variable.
Heap checker is not active, hence checker "direct_stl-set<char>().get_allocator()" will do nothing!
To activate set the HEAPCHECK environment variable.
PASS
WARNING: Perftools heap leak checker is active -- Performance may suffer

Adding pthread-specifics for thread 140312884942784 pid 626253
Creating extra thread 1
Creating extra thread 2
A new HeapBusyThread 0
Adding pthread-specifics for thread 140312873793216 pid 626253
Creating extra thread 3
Creating extra thread 4
A new HeapBusyThread 1
Adding pthread-specifics for thread 140312865400512 pid 626253
A new HeapBusyThread 2
Adding pthread-specifics for thread 140312857007808 pid 626253
Creating extra thread 5
A new HeapBusyThread 3
Adding pthread-specifics for thread 140312848615104 pid 626253
Creating extra thread 6
A new HeapBusyThread 4
Adding pthread-specifics for thread 140312840222400 pid 626253
Creating extra thread 7
A new HeapBusyThread 5
Adding pthread-specifics for thread 140312831829696 pid 626253
Creating extra thread 8
A new HeapBusyThread 6
Adding pthread-specifics for thread 140312823436992 pid 626253
Creating extra thread 9
A new HeapBusyThread 7
Adding pthread-specifics for thread 140312815044288 pid 626253
Creating extra thread 10
A new HeapBusyThread 8
Adding pthread-specifics for thread 140312806651584 pid 626253
Creating extra thread 11
A new HeapBusyThread 9
Adding pthread-specifics for thread 140312798258880 pid 626253
Creating extra thread 12
A new HeapBusyThread 10
Adding pthread-specifics for thread 140312789866176 pid 626253
Creating extra thread 13
A new HeapBusyThread 11
Adding pthread-specifics for thread 140312781473472 pid 626253
Creating extra thread 14
A new HeapBusyThread 12
Adding pthread-specifics for thread 140312773080768 pid 626253
Creating extra thread 15
A new HeapBusyThread 13
Adding pthread-specifics for thread 140312764688064 pid 626253
Creating extra thread 16
A new HeapBusyThread 14
Adding pthread-specifics for thread 140312756295360 pid 626253
Creating extra thread 17
A new HeapBusyThread 15
Adding pthread-specifics for thread 140312747902656 pid 626253
A new HeapBusyThread 16
Adding pthread-specifics for thread 140312739509952 pid 626253
Adding pthread-specifics for thread 140312884942784 pid 626253
In main(): heap_check=local
Have memory regions w/o callers: might report false leaks
No leaks found for check "trivial" (but no 100% guarantee that there aren't any): found 1988 reachable heap objects of 428842 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "simple" (but no 100% guarantee that there aren't any): found 2040 reachable heap objects of 430541 bytes

Pre leaking : 0xf03a0ae78bb95f5b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0ae78b463f5b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b9c3f5b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b4b245b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b40de9b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b48129b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b49159b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b4b90db ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0ae78bb0365b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b40dcdb ^ 0xf03a5f7bf03a5f7b
Have memory regions w/o callers: might report false leaks
No leaks found for check "death_noleaks" (but no 100% guarantee that there aren't any): found 2296 reachable heap objects of 475770 bytes

Pre leaking : 0xf03a0ae78b5a505b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0ae78b65f25b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b40d85b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0ae78b40d79b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b5a495b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0ae78b44545b ^ 0xf03a5f7bf03a5f7b
Have memory regions w/o callers: might report false leaks
No leaks found for check "trivial_p" (but no 100% guarantee that there aren't any): found 2414 reachable heap objects of 580913 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "simple_p" (but no 100% guarantee that there aren't any): found 2419 reachable heap objects of 713378 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "disabling" (but no 100% guarantee that there aren't any): found 2395 reachable heap objects of 581575 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "stl" (but no 100% guarantee that there aren't any): found 2343 reachable heap objects of 443020 bytes

Leaking : 0xf03a0ae78b4bf463 ^ 0xf03a5f7bf03a5f7b
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-std::allocator<char>()" (but no 100% guarantee that there aren't any): found 2478 reachable heap objects of 716053 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-std::allocator<int>()" (but no 100% guarantee that there aren't any): found 2505 reachable heap objects of 483609 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-std::string().get_allocator()" (but no 100% guarantee that there aren't any): found 2576 reachable heap objects of 490838 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-string().get_allocator()" (but no 100% guarantee that there aren't any): found 2497 reachable heap objects of 450412 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-vector<int>().get_allocator()" (but no 100% guarantee that there aren't any): found 2534 reachable heap objects of 586349 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-vector<double>().get_allocator()" (but no 100% guarantee that there aren't any): found 2478 reachable heap objects of 483327 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-vector<vector<int> >().get_allocator()" (but no 100% guarantee that there aren't any): found 2556 reachable heap objects of 455750 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-vector<string>().get_allocator()" (but no 100% guarantee that there aren't any): found 2601 reachable heap objects of 491407 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-(map<string, string>().get_allocator())" (but no 100% guarantee that there aren't any): found 2610 reachable heap objects of 454847 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-(map<string, int>().get_allocator())" (but no 100% guarantee that there aren't any): found 2696 reachable heap objects of 495479 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-set<char>().get_allocator()" (but no 100% guarantee that there aren't any): found 2504 reachable heap objects of 450675 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "all" (but no 100% guarantee that there aren't any): found 2435 reachable heap objects of 482363 bytes
PASS
WARNING: Perftools heap leak checker is active -- Performance may suffer

Adding pthread-specifics for thread 140052040816576 pid 626969
Creating extra thread 1
Creating extra thread 2
A new HeapBusyThread 0
Adding pthread-specifics for thread 140052030027456 pid 626969
Creating extra thread 3
A new HeapBusyThread 1
Adding pthread-specifics for thread 140052021634752 pid 626969
Creating extra thread 4
A new HeapBusyThread
Creating extra thread 52
Adding pthread-specifics for thread 140052013242048 pid 626969
A new HeapBusyThread 3
Adding pthread-specifics for thread 140052004849344 pid 626969
Creating extra thread 6
A new HeapBusyThread 4
Adding pthread-specifics for thread 140051996456640 pid 626969
Creating extra thread 7
A new HeapBusyThread 5
Adding pthread-specifics for thread 140051988063936 pid 626969
Creating extra thread 8
A new HeapBusyThread 6
Adding pthread-specifics for thread 140051979671232 pid 626969
Creating extra thread 9
A new HeapBusyThread 7
Adding pthread-specifics for thread 140051971278528 pid 626969
Creating extra thread 10
A new HeapBusyThread 8
Adding pthread-specifics for thread 140051962885824 pid 626969
Creating extra thread 11
A new HeapBusyThread 9
Adding pthread-specifics for thread 140051954493120 pid 626969
Creating extra thread 12
A new HeapBusyThread 10
Adding pthread-specifics for thread 140051946100416 pid 626969
Creating extra thread 13
A new HeapBusyThread 11
Adding pthread-specifics for thread 140051937707712 pid 626969
Creating extra thread 14
A new HeapBusyThread 12
Adding pthread-specifics for thread 140051929315008 pid 626969
Creating extra thread 15
A new HeapBusyThread 13
Adding pthread-specifics for thread 140051920922304 pid 626969
Creating extra thread 16
A new HeapBusyThread 14
Adding pthread-specifics for thread 140051912529600 pid 626969
Creating extra thread 17
A new HeapBusyThread 15
Adding pthread-specifics for thread 140051904136896 pid 626969
A new HeapBusyThread 16
Adding pthread-specifics for thread 140051895744192 pid 626969
Adding pthread-specifics for thread 140052040816576 pid 626969
In main(): heap_check=normal
Have memory regions w/o callers: might report false leaks
No leaks found for check "_main_" (but no 100% guarantee that there aren't any): found 1261 reachable heap objects of 403904 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "trivial" (but no 100% guarantee that there aren't any): found 2012 reachable heap objects of 466935 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "simple" (but no 100% guarantee that there aren't any): found 2087 reachable heap objects of 699868 bytes

Pre leaking : 0xf03a0a0746a09f5b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0a0746a0bf5b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746b8df5b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a074644045b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746a25e9b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746b1345b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746b1df1b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746494a5b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0a07464eb7db ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746a25cdb ^ 0xf03a5f7bf03a5f7b
Have memory regions w/o callers: might report false leaks
No leaks found for check "death_noleaks" (but no 100% guarantee that there aren't any): found 2289 reachable heap objects of 576370 bytes

Pre leaking : 0xf03a0a07468a415b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0a07468a5c5b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746a25a1b ^ 0xf03a5f7bf03a5f7b

Pre leaking : 0xf03a0a0746a2585b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746a2725b ^ 0xf03a5f7bf03a5f7b

Leaking : 0xf03a0a0746a2705b ^ 0xf03a5f7bf03a5f7b
Have memory regions w/o callers: might report false leaks
No leaks found for check "_main_" (but no 100% guarantee that there aren't any): found 2414 reachable heap objects of 480231 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "trivial_p" (but no 100% guarantee that there aren't any): found 2463 reachable heap objects of 484868 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "simple_p" (but no 100% guarantee that there aren't any): found 2445 reachable heap objects of 452478 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "disabling" (but no 100% guarantee that there aren't any): found 2439 reachable heap objects of 451913 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "stl" (but no 100% guarantee that there aren't any): found 2482 reachable heap objects of 486796 bytes

Leaking : 0xf03a0a0746a7ca53 ^ 0xf03a5f7bf03a5f7b
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-std::allocator<char>()" (but no 100% guarantee that there aren't any): found 2572 reachable heap objects of 490394 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-std::allocator<int>()" (but no 100% guarantee that there aren't any): found 2613 reachable heap objects of 491466 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-std::string().get_allocator()" (but no 100% guarantee that there aren't any): found 2609 reachable heap objects of 490369 bytes
Have memory regions w/o callers: might report false leaks
No leaks found for check "direct_stl-string().get_allocator()" (but no 100% guarantee that there aren't any): found 2576 reachable heap objects of 588487 bytes
Have memory regions w/o callers: might report false leaks
Leak check direct_stl-vector<int>().get_allocator() detected leaks of 217 bytes in 4 objects
The 2 largest leaks:
Leak of 153 bytes in 3 objects allocated from:
        @ 7f6067e6dcd2
        @ 7f6067e6df12
        @ 7f6067e7274f
        @ 7f6067e81877
        @ 7f6067e81d49
        @ 7f6067e7a342
        @ 7f6067e7f95c
        @ 7f6067e8693d
        @ 7f60678dbbc7
        @ 7f60678db2b7
        @ 557cb51fc23f
        @ 557cb51fec9e
        @ 7f606788e887
        @ 7f606791592c
Leak of 64 bytes in 1 objects allocated from:
        @ 7f6067e6798f
        @ 7f6067e72cdc
        @ 7f6067e81877
        @ 7f6067e81d49
        @ 7f6067e7a342
        @ 7f6067e7f95c
        @ 7f6067e8693d
        @ 7f60678dbbc7
        @ 7f60678db2b7
        @ 557cb51fc23f
        @ 557cb51fec9e
        @ 7f606788e887
        @ 7f606791592c


If the preceding stack traces are not enough to find the leaks, try running THIS shell command:

pprof /home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80/.libs/heap-checker_debug_unittest "/tmp/heap-checker_debug_unittest.626969.direct_stl-vector<int>().get_allocator()-end.heap" --inuse_objects --lines --heapcheck  --edgefraction=1e-10 --nodefraction=1e-10 --gv

If you are still puzzled about why the leaks are there, try rerunning this program with HEAP_CHECK_TEST_POINTER_ALIGNMENT=1 and/or with HEAP_CHECK_MAX_POINTER_OFFSET=-1
If the leak report occurs in a small fraction of runs
Check failed: check.BriefSameHeap()

FAIL heap-checker_debug_unittest (exit status: 134)

============================================================================
Testsuite summary for gperftools 2.10.80
============================================================================
# TOTAL: 50
# PASS:  49
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to gperftools@googlegroups.com
============================================================================
make[2]: *** [Makefile:6760: test-suite.log] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gperftools-gperftools-2.10.80'
make[1]: *** [Makefile:6868: check-TESTS] Error 2
make: *** [Makefile:7425: check-am] Error 2
@alk
Copy link
Contributor

alk commented Aug 5, 2023

Thanks. Can you please attach your config.log ? Couple notable things here. First symbolization didn't work (which could have helped understand why it actually detected false-positive leak), and second actual false-positive leak but only in one specific stl vector case. So really curious.

@kloczek
Copy link
Author

kloczek commented Aug 5, 2023

Here is autconf output grabbed from archived build log from my build infra

+ cd gperftools-gperftools-2.10.80
+ autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:59: installing './compile'
configure.ac:22: installing './config.guess'
configure.ac:22: installing './config.sub'
configure.ac:23: installing './install-sh'
configure.ac:23: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory '.'
+ ASMFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1'
+ RUSTFLAGS='-C codegen-units=1 -C debuginfo=2 -C opt-level=2 -C link-arg=-fdata-sections -C link-arg=-ffunction-sections -C link-arg=-Wl,--as-needed -C link-arg=-Wl,-z,now -C link-arg=-Wl,-z,relro --cap-lints=warn'
+ VALAFLAGS=-g
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export ASMFLAGS CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS VALAFLAGS CC CXX FC AR NM RANLIB RUSTFLAGS VALAFLAGS
+ ./configure --bindir=/usr/bin --build=x86_64-redhat-linux-gnu --datadir=/usr/share --disable-dependency-tracking --exec-prefix=/usr --host=x86_64-redhat-linux-gnu --includedir=/usr/include --infodir=/usr/share/info --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --program-prefix= --runstatedir=/run --sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc --disable-dynamic-sized-delete-support --disable-static
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-redhat-linux-gnu-gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking dependency style of /usr/bin/gcc... none
checking clone() support... yes
checking whether the compiler supports GNU C++... yes
checking whether /usr/bin/g++ accepts -g... yes
checking for /usr/bin/g++ option to enable C++11 features... none needed
checking dependency style of /usr/bin/g++... none
checking whether /usr/bin/g++ supports C++11 features with -std=gnu++11... yes
checking for x86_64-redhat-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking if objcopy supports -W... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/gcc-nm
checking the name lister (/usr/bin/gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-gnu-file... no
checking for file... file
checking for x86_64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-ar... /usr/bin/gcc-ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... /usr/bin/gcc-ranlib
checking command to parse /usr/bin/gcc-nm output from /usr/bin/gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/gcc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/gcc static flag -static works... no
checking if /usr/bin/gcc supports -c -o file.o... yes
checking if /usr/bin/gcc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... /usr/bin/g++ -std=gnu++11 -E
checking for ld used by /usr/bin/g++ -std=gnu++11... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the /usr/bin/g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for /usr/bin/g++ -std=gnu++11 option to produce PIC... -fPIC -DPIC
checking if /usr/bin/g++ -std=gnu++11 PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/g++ -std=gnu++11 static flag -static works... no
checking if /usr/bin/g++ -std=gnu++11 supports -c -o file.o... yes
checking if /usr/bin/g++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking compiler and target supports -fno-omit-frame-pointer -momit-leaf-frame-pointer... yes
checking for __attribute__... yes
checking for __attribute__((aligned(N))) on functions... yes
checking for struct mallinfo... yes
checking for Elf32_Versym... yes
checking for sbrk... yes
checking for __sbrk... yes
checking for geteuid... yes
checking for fork... yes
checking for features.h... yes
checking for malloc.h... yes
checking for glob.h... yes
checking for execinfo.h... yes
checking for unwind.h... yes
checking for sched.h... yes
checking for sys/syscall.h... yes
checking for sys/socket.h... yes
checking for sys/wait.h... yes
checking for poll.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for pwd.h... yes
checking for sys/resource.h... yes
checking for sys/cdefs.h... yes
checking for /usr/bin/g++ -std=gnu++11 options needed to detect all undeclared functions... none needed
checking whether cfree is declared... no
checking whether posix_memalign is declared... yes
checking whether memalign is declared... yes
checking whether valloc is declared... yes
checking whether pvalloc is declared... yes
checking for ucontext.h... yes
checking for sys/ucontext.h... yes
checking for cygwin/signal.h... no
checking for asm/ptrace.h... yes
checking how to access the program counter from a struct ucontext... uc_mcontext.gregs[REG_RIP]
checking for libunwind.h... yes
checking for backtrace in -lunwind... yes
checking if the compiler supports -Wno-unused-result... yes
configure: Will build sized deallocation operators that ignore size
checking if C++ compiler supports -fsized-deallocation... yes
checking if C++ compiler supports std::align_val_t without options... no
checking if C++ compiler supports -faligned-new... yes
configure: Will build new/delete operators for overaligned types
checking if target has _Unwind_Backtrace... yes
checking for __environ... yes
checking for __thread... yes
checking if nanosleep requires any libraries... no
checking how to run the C preprocessor... /usr/bin/gcc -E
checking whether /usr/bin/gcc is Clang... no
checking whether pthreads work with "-pthread" and "-lpthread"... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for program_invocation_name... yes
checking whether backtrace_symbols is declared... yes
checking for library containing backtrace_symbols... none required
checking for Linux SIGEV_THREAD_ID... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/gperftools/tcmalloc.h
config.status: creating src/windows/gperftools/tcmalloc.h
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.log will attach later.

@alk
Copy link
Contributor

alk commented Aug 5, 2023

Interesting. A ton of flags etc. What is inside those /usr/lib/redhat specs things? (annobin and hardened something)

@alk
Copy link
Contributor

alk commented Aug 5, 2023

BTW you sure you want to cripple performance with -mno-omit-leaf-frame-pointer?

@kloczek
Copy link
Author

kloczek commented Aug 5, 2023

All -spec params contains default compile/linker flags

[tkloczko@pers-jacek SPECS]$ cat /usr/lib/rpm/redhat/redhat-hardened-cc1
*cc1_options:
+ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}

*cpp_options:
+ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}
[tkloczko@pers-jacek SPECS]$ cat /usr/lib/rpm/redhat/redhat-hardened-ld
*self_spec:
+ %{!static:%{!shared:%{!r:-pie}}}

So everything is compiled (by default as PIE code.

@kloczek
Copy link
Author

kloczek commented Aug 5, 2023

BTW you sure you want to cripple performance with -mno-omit-leaf-frame-pointer?

Sadly issue is that if code is compiled without frame-pointer it is impossible to catch call traces.
That version of the code is for kind continuous-develppment 😋

@alk
Copy link
Contributor

alk commented Aug 5, 2023

So at least this set of flags (assuming specs stuff is no-op compared to my OS) works on my box. So not something "inherently" broken, hopefully. On the other hand, debugging your case might end up harder since I am not able to reproduce easily.

In order to debug we need your machine to have symbolization working. Do you have perl available on your builder? If not that is likely why symbolization didn't work. So please install it. Then we'll see what kind of "leaks" we're detecting and hopefully that'll hint what is going on.

@kloczek
Copy link
Author

kloczek commented Aug 6, 2023

In order to debug we need your machine to have symbolization working. Do you have perl available on your builder?

Perl is present because it is used by autoconf and libtool.

@alk
Copy link
Contributor

alk commented Aug 6, 2023

then we'll need to figure out why symbolization fails so badly on your box, and in this test. Notably, a number of tests actually require symbolization to work and they pass. So it is not 100% failing.

Can you check if this is consistently failing exactly this one test? Or is it some sort of randomization thingy. Would be useful signal.

@kloczek
Copy link
Author

kloczek commented Jan 26, 2024

Just tested 2.15 and test suite still fail

Can you check if this is consistently failing exactly this one test? Or is it some sort of randomization thingy. Would be useful signal

Could you please tell what exactly you want to me to do? 🤔

@alk
Copy link
Contributor

alk commented Jan 26, 2024

Is there any way for me to get VM or something that matches your build environment? This is not just "latest fedora" or something ? I am out of any other ideas.

@alk
Copy link
Contributor

alk commented Jan 26, 2024

So, just got myself fresh fedora39 VM and everything just works (as expected).

@kloczek
Copy link
Author

kloczek commented Jan 27, 2024

So, just got myself fresh fedora39 VM and everything just works (as expected).

Could you please show what exactly you've done? 🤔

@alk
Copy link
Contributor

alk commented Jan 27, 2024

I got iso from webside. Booted and installed it inside virt-manager managed KVM instance. Then installed regular dev tools and libunwind-devel. Git cloned this repo. Then did regular ./autogen.sh && ./configure && make -j check

I realize that your setup is adding some more flags and maybe doing more customizations. But at least verifying that baseline config simply works (as expected) is valuable too.

@alk
Copy link
Contributor

alk commented Feb 5, 2024

gentle ping. I am currently spending lots of time on gperftools, so you have best chance of helping me to help you.

@alk
Copy link
Contributor

alk commented Feb 5, 2024

and I am genuinely curious what is going on there and eager to get it fixed.

@kloczek
Copy link
Author

kloczek commented Feb 5, 2024

Other way: what I can try to do to diagnose that issue? 🤔

@alk
Copy link
Contributor

alk commented Feb 5, 2024

Sure, you have all the source and everything to just go ahead is figure it out yourself.

I don't think our back and forth, trying to debug whatever not entirely standard environment that you have has much chance of success. Give me something, I am eager to get this fixed.

@alk
Copy link
Contributor

alk commented Feb 15, 2024

Here is one idea. I am not sure how it could happen, but do check if failing test binaries have debug symbols. objump -t will tell you.

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