[Gc] segfault on arm

Christian Thalinger twisti at complang.tuwien.ac.at
Wed Jul 27 14:17:45 PDT 2005


On Wed, 2005-07-27 at 10:54 -0700, Boehm, Hans wrote:
> If I had to make a really wild guess, I'd suggest defining
> LINUX_STACKBOTTOM instead of HEURISTIC1 (and STACK_GRAN) in
> the ARM32/LINUX section in gcconfig.h.  But then the comment
> next to the DATASTART definition in the same file starts with
> "hideous kludge:", so that might also be worth checking.

Exactly. This small patch fixes the issue and GCBench runs without a
problem with CACAO. Thanks.

TWISTI

Index: include/private/gcconfig.h
===================================================================
RCS
file: /nfs/ahome/cacao/cacaocvs/cacao/src/boehm-gc/include/private/gcconfig.h,v
retrieving revision 1.4
diff -u -3 -p -r1.4 gcconfig.h
--- include/private/gcconfig.h  27 Jun 2005 19:55:40 -0000      1.4
+++ include/private/gcconfig.h  27 Jul 2005 20:53:51 -0000
@@ -1784,7 +1784,7 @@
 #   endif
 #   ifdef LINUX
 #       define OS_TYPE "LINUX"
-#       define HEURISTIC1
+#       define LINUX_STACKBOTTOM
 #       undef STACK_GRAN
 #       define STACK_GRAN 0x10000000
 #       define USE_GENERIC_PUSH_REGS




More information about the Gc mailing list