[Gc] Tests fail on OS X

François-Xavier Thomas fthomas at telecom-paristech.fr
Sun Feb 5 23:52:53 PST 2012


Hi,

I'm currently trying to install bdw-gc as a dependency for TeXmacs
under OS X Lion, using XCode-provided tools, resulting in a failure to
run make check.

The MacPorts version (using standard GCC built from source) works, but
I would really love to use only tools provided by XCode since it
really is a pain to have to install/compile/update other GCCs...

You can check this thread on the Homebrew repo for more reports from
other users (afaik, most of them are trying to install w3m, but the
issue is the same) : https://github.com/mxcl/homebrew/issues/8609

Versions :
* BDW-GC 7.1 and 7.2alpha6
* Compilers: LLVM-GCC 4.2 and Clang-GCC 3.0 from XCode 4.2
* OS: OS X Lion 10.7.2

My make check output is below, although I don't know whether it'll be
useful or not...

make  check-TESTS
Switched to incremental mode
Emulating dirty bits with mprotect/signals
typed alloc failed at 289
Test failed
/bin/sh: line 1: 90371 Abort trap: 6           ${dir}$tst
FAIL: gctest
Leaked composite object at 0x105621ee0 (tests/leak_test.c:12, sz=13, NORMAL)

Leaked composite object at 0x105621f20 (tests/leak_test.c:12, sz=12, NORMAL)

Leaked composite object at 0x105621f60 (tests/leak_test.c:12, sz=11, NORMAL)

Leaked composite object at 0x105621fa0 (tests/leak_test.c:12, sz=10, NORMAL)

Leaked composite object at 0x105621fe0 (tests/leak_test.c:12, sz=9, NORMAL)

Leaked composite object at 0x105620f20 (tests/leak_test.c:12, sz=8, NORMAL)

Leaked composite object at 0x105620f50 (tests/leak_test.c:12, sz=7, NORMAL)

Leaked composite object at 0x105620f80 (tests/leak_test.c:12, sz=6, NORMAL)

Leaked composite object at 0x105620fb0 (tests/leak_test.c:12, sz=5, NORMAL)

Leaked composite object at 0x105620fe0 (tests/leak_test.c:12, sz=4, NORMAL)

GC_debug_free: found smashed location at 0x105620fa8 in or near object
at 0x105620fb0 (0b:0, sz=0)
GC_debug_free: found smashed location at 0x105620f78 in or near object
at 0x105620f80 (EMPTY(smashed?):0, sz=0)
GC_debug_free: found smashed location at 0x105620f48 in or near object
at 0x105620f50 (EMPTY(smashed?):0, sz=0)
GC_debug_free: found smashed location at 0x105620f18 in or near object
at 0x105620f20(<smashed>, appr. sz = 9)
GC_debug_free: found smashed location at 0x105621fd8 in or near object
at 0x105621fe0 (@b:0, sz=0)
GC_debug_free: found smashed location at 0x105621f98 in or near object
at 0x105621fa0 (EMPTY(smashed?):0, sz=0)
GC_debug_free: found smashed location at 0x105621f58 in or near object
at 0x105621f60 (?b:0, sz=0)
GC_debug_free: found smashed location at 0x105621f18 in or near object
at 0x105621f20 (EMPTY(smashed?):0, sz=0)
GC_debug_free: found smashed location at 0x105621ed8 in or near object
at 0x105621ee0(<smashed>, appr. sz = 25)
/bin/sh: line 1: 90390 Segmentation fault: 11  ${dir}$tst
FAIL: leaktest
Final heap size is 253943808
PASS: middletest
GC_check_heap_block: found smashed heap objects:
 0x108e5ffe8 in or near object at 0x108e5ffc0 (tests/smash_test.c:22, sz=40)

GC_check_heap_block: found smashed heap objects:
 0x108ed2f98 in or near object at 0x108ed2f70 (tests/smash_test.c:22, sz=40)
 0x108e5ffe8 in or near object at 0x108e5ffc0 (tests/smash_test.c:22, sz=40)

PASS: smashtest
PASS: hugetest
FAIL: staticrootstest
Leaked composite object at 0x10e0f1fe0 (tests/thread_leak_test.c:12,
sz=4, NORMAL)

Leaked composite object at 0x10e0f1fb0 (tests/thread_leak_test.c:12,
sz=4, NORMAL)

Leaked composite object at 0x10e0f1d40 (tests/thread_leak_test.c:12,
sz=4, NORMAL)

Leaked composite object at 0x10e0f1e30 (tests/thread_leak_test.c:12,
sz=4, NORMAL)

Leaked composite object at 0x10e0f1f80 (tests/thread_leak_test.c:12,
sz=4, NORMAL)

PASS: threadleaktest
PASS: threadkey_test
PASS: initsecondarythread
usage: test_cpp number-of-iterations
Assuming 10 iters
Starting iteration 1
Assertion failure in tests/test_cpp.cc, line 116: nFreed <= nAllocated
&& nFreed >= .8 * nAllocated
FAIL: test_cpp
==================================
4 of 10 tests failed
Please report to Hans.Boehm at hp.com
==================================

Any ideas?

-- 
François-Xavier Thomas
Elève ingénieur à Télécom ParisTech



More information about the Gc mailing list