From: Mike McDonald
Subject: Boehm's conservative GC on SGIs??
Date: 
Message-ID: <4ol9up$dm0@fido.asd.sgi.com>
  Has anyone been able to get Mr. Boehm's conservative GC to work on
an SGI running Irix 5.3 or later? Whenever I try, gctest core dumps:


=>./gctest
Increasing heap size by 65536 after 0 allocated bytes
Adding block map for size 0
Initiating full world-stop collection 1 after 0 allocd bytes
0 blacklisted bytes in heap
--> Marking for collection 1 after 0 allocd bytes + 0 wasted bytes
Segmentation fault (core dumped)
=>dbx gctest core 
dbx version 6.2 Mar  9 1996 15:23:28
Core from signal SIGSEGV: Segmentation violation
(dbx) where
>  0 GC_mark_from_mark_stack() ["/usr/people/mikemac/src/gc/mark.c":469, 0x40ab2c]
   1 GC_mark_some() ["/usr/people/mikemac/src/gc/mark.c":273, 0x40a304]
   2 GC_stopped_mark(stop_func = 0x4081c0) ["/usr/people/mikemac/src/gc/alloc.c":360, 0x408afc]
   3 GC_try_to_collect_inner(stop_func = 0x4081c0) ["/usr/people/mikemac/src/gc/alloc.c":251, 0x4087a0]
   4 GC_init_inner() ["/usr/people/mikemac/src/gc/misc.c":491, 0x40dff8]
   5 GC_generic_malloc_inner(lb = 7, k = 1) ["/usr/people/mikemac/src/gc/malloc.c":61, 0x4071d8]
   6 GC_generic_malloc(lb = 7, k = 1) ["/usr/people/mikemac/src/gc/malloc.c":189, 0x407700]
   7 GC_malloc(lb = 7) ["/usr/people/mikemac/src/gc/malloc.c":361, 0x407a20]
   8 run_one_test() ["/usr/people/mikemac/src/gc/test.c":674, 0x40660c]
   9 main() ["/usr/people/mikemac/src/gc/test.c":873, 0x407040]
   10 __istart() ["crt1tinit.s":13, 0x404d60]
(dbx) print current_p
0x10000000 
(dbx) print *current_p
<no such address> 
(dbx) q

  Anyone have any ideas as to what is wrong? Thanks,

  Mike McDonald
  ·······@engr.sgi.com

Mr. Boehm is author of a general purpose conservative GC:
parcftp.xerox.com:/pub/gc/gc.tar.Z
From: Drew R Whitehouse
Subject: Re: Boehm's conservative GC on SGIs??
Date: 
Message-ID: <wlspcgmkqq.fsf@anu.edu.au>
·······@engr.sgi.com (Mike McDonald) writes:
> 
> 
>   Has anyone been able to get Mr. Boehm's conservative GC to work on
> an SGI running Irix 5.3 or later? Whenever I try, gctest core dumps:
> 
> 
> =>./gctest
>   Anyone have any ideas as to what is wrong? Thanks,
> 
>   Mike McDonald
>   ·······@engr.sgi.com
> 
> Mr. Boehm is author of a general purpose conservative GC:
> parcftp.xerox.com:/pub/gc/gc.tar.Z
> 

	Mike, I don't have problem under gc4.10, I do remember that
dbx traps when you first run code thats linked with gc, just hit "c"
for continue and everything seems alright. Also you may be interested
to know that he is now working for your company (see
http://reality.sgi.com/employees/boehm_mti/), so hopefully we can
expect good SGI ports in the future ;-) Hopefully we can get a
collector for SGI's that handle collection over sprocs and the
rumored pthread implementation. Also nice would be GC'ing versions of
all the SGI C++ dso's.

-Drew

-- 
;;---------------------------------------------------------------------
;; ······················@anu.edu.au   http://anusf.anu.edu.au/~drw900/
;;---------------------------------------------------------------------