stellar2012wxg / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Heap check failure on unit test during make check #509

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.export CPP=-I/user/aimmanen/gperftoools-2.0
2./bin/sh configure --prefix==/user/aimmmanen/gperftools-2.0
3. make check

What is the expected output? What do you see instead?
make check fails.
3 heap check unit test cases failed. Everything else passed.

Details of the failed heap unit test cases are:

Testing ./heap-checker_unittest with HEAPCHECK=normal ... 
./heap-checker_unittest.sh: line 59: 13209 Aborted                 
$HEAP_CHECKER >$TMPDIR/output 2>&1
FAILED

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, try running with 
TCMALLOC_MAX_FREE_QUEUE_SIZE of few hundred MB or wi
Check failed: HeapLeakChecker::NoGlobalLeaks()

Testing ./heap-checker_unittest with HEAP_CHECKER_TEST_NO_THREADS=1 ... FAIL
Wrong exit code: expected: '0'; actual: 134
Output did not match '^PASS$'
Output from failed run:

FAIL: heap-checker_unittest.sh

In main(): heap_check=strict^M
Leak check _main_ detected leaks of 835 bytes in 10 objects^M
The 7 largest leak

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, try running with 
TCMALLOC_MAX_FREE_QUEUE_SIZE of few hundred MB or wi
Check failed: HeapLeakChecker::NoGlobalLeaks()

---
FAIL: heap-checker-death_unittest.sh

==================================================
3 of 44 tests failed
Please report to google-perftools@googlegroups.com
==================================================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/user/aimmanen/gperftools-2.0'
make: *** [check-am] Error 2

What version of the product are you using? On what operating system?
version gperftools 2.0
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
OS Linux 2.6.9-67.0.4.EL #1 Fri Jan 18 04:50:00 EST 2008 i686 i686 i386 
GNU/Linux

Please provide any additional information below.

I cannot upgrade the OS systems since we have some old systems that are being 
built on this OS and we want to stabilize it before upgrading the OS. Kindly 
guide me on how to avoid this heap check error.

Original issue reported on code.google.com by immaneni...@gmail.com on 14 Mar 2013 at 7:53

GoogleCodeExporter commented 9 years ago
Attached the output of the /tmp/heap_check_info to determine the problem. 
Please let me know what is missing to cause the heap check unit test to fail 
after configuration.

Original comment by immaneni...@gmail.com on 14 Mar 2013 at 10:24

Attachments:

GoogleCodeExporter commented 9 years ago
Ignore this as it worked on gcc version 4.1.2 20080704.

Original comment by immaneni...@gmail.com on 15 Mar 2013 at 4:36

GoogleCodeExporter commented 9 years ago

Original comment by alkondratenko on 6 Jul 2013 at 10:34