[Gc] Problem with GC on FreeBSD

Vitaly Magerya vmagerya at gmail.com
Wed Apr 18 15:25:38 PDT 2012

Ivan Maidanski <ivmai at mail.ru> wrote:
> Hi Vitaly,
> Please try release branch of bdwgc.

OK, tried that (with release branch of libatomic_ops). There seems to
be a difference in that the configure script of release branch does not
enable THREAD_LOCAL_ALLOC for FreeBSD, so I tested without it (tell me
if I should try enabling it manually).

Without --enable-gc-debug, all 11 tests pass, but STklos hangs (on
threading tests) -- not every time, but often. This is both with and
without --enable-assertions.

With --enable-gc-debug, all 12 tests pass, and STklos crashes with SIGBUS
(before threading tests) inside libgc:
  #0  0x000000080118c2cd in GC_malloc (lb=56) at malloc.c:257
  [... STklos stuff below ...]

This problems seems to come from GC_objfreelist[4], which is
0x3300010000000b at the point of crash.

With --enable-gc-debug and --enable-gc-assertions, all 12 tests pass,
and STklos aborts saying "Assertion failure: malloc.c:256" (it's the
same problem as above, only caught one line earlier).

More information about the Gc mailing list