[Gc] vm_portect failed

Boehm, Hans hans.boehm at hp.com
Tue Sep 29 12:13:56 PDT 2009


This is the first I've heard of it.

It would be good to know whether the CVS collector by itself built with
"./configure; make; make check" fails in the same way.

In either case, I would try to debug the failing vm_protect call to see what error code it's returning and why, possibly after applying a patch like the following to at least fix the abort messages:

--- os_dep.c	2009-09-25 10:39:10.000000000 -0700
+++ os_dep.c.revised	2009-09-29 11:36:25.000000000 -0700
@@ -2601,12 +2601,12 @@
 #   define PROTECT(addr,len) \
         if(vm_protect(GC_task_self,(vm_address_t)(addr),(vm_size_t)(len), \
                 FALSE,VM_PROT_READ) != KERN_SUCCESS) { \
-            ABORT("vm_portect failed"); \
+            ABORT("vm_protect (PROTECT) failed"); \
         }
 #   define UNPROTECT(addr,len) \
         if(vm_protect(GC_task_self,(vm_address_t)(addr),(vm_size_t)(len), \
                 FALSE,VM_PROT_READ|VM_PROT_WRITE) != KERN_SUCCESS) { \
-            ABORT("vm_portect failed"); \
+            ABORT("vm_protect (UNPROTECT) failed"); \
         }
 # else

(I'll check this in at some point if nobody beats me to it.)

Hans
 

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
di> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Juan Jose 
> Garcia-Ripoll
> Sent: Tuesday, September 29, 2009 7:41 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] vm_portect failed
> 
> I have just upgraded my computer to OS X Snow Leopard and the 
> garbage collector stopped working as it should. More 
> precisely, incremental garbage collection is broken.
> 
> I first added the patch related to ucontext.h With that the 
> garbage collector builds just fine.
> 
> However, when I configure ECL to use the incremental garbage 
> collector, the library fails with a "vm_portect failed" message.
> 
> This happens both with the version of the garbage collector 
> shipped with ECL (7.1 + ucontext.h fix) and with a more 
> recent one (7.2alpha2
> + ucontext.h fix)
> 
> Is this a known issue? Is there a way to solve this?
> 
> Juanjo
> 
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
> 
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 


More information about the Gc mailing list