chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Obscure bug with srfi-18, mailbox and coops


From: Théo Cavignac
Subject: Re: [Chicken-users] Obscure bug with srfi-18, mailbox and coops
Date: Wed, 28 Aug 2019 18:17:35 +0200

Unfortunatly it did not fixed the bug to add -disable-interrupts. I still have this class of bug spawning here and there with different instances and different slots.

Is there a way I could protect slot access from race conditions directly in my code so that I identify the bug ?

On 28/08/2019 16:46, address@hidden wrote:


        
This is just a guess, but I think it just may be the case you are using the slot before it has been initialized (see build-cache in coops.scm).
After poking a bit, there seems indeed be a thread-safety issue when 
lookup up object slots, I'm not sure if this is the case here.

I don't think the slots are uninitialized because sometimes the slot
used instead of another contains class instance. Still I would like to
try but I am not sure how to proceed to inject options in building
coops. Is it something like this :
CSC_OPTIONS='-disable-interrupts' chicken-install coops
The easiest solution is to "chicken-install -r coops", cd to coops,
and add (csc-options "-disable-interrupts") to the "coops" extension
properties, then say "chicken-install" inside that directory.


felix


reply via email to

[Prev in Thread] Current Thread [Next in Thread]