Process>>terminate woes

Andreas Raab andreas.raab at gmx.de
Wed Dec 5 19:49:49 UTC 2007


Lukas Renggli wrote:
> www.squeaksource.com has been successfully running with the recently
> published Semaphore patches for about a month. This morning we
> received the attached stack-trace. Going to the image shows that there
> are thousands of processes waiting at the Semaphore you see in the
> stack-trace. Cleaning up the mess only helps for a couple of hours,
> after a while it looks up again ...
> 
> Any ideas?

Very hard to tell without looking at direct evidence. It may just be a 
problem with your error handler, e.g., that the unwind blocks were not 
run correctly (leaving the semaphore locked). OTOH, it *is* perfectly 
possible that some processes "fell off" the schedulers list. Here is how 
to find out:

Process allInstances reject:[:p|
     p isActiveProcess
         or:[p suspendingList == nil
         or:[p suspendingList includes: p]].
].

If this comes up non-empty you are in trouble.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list