Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006822 [Squeak] Kernel major always 12-20-07 22:02 12-20-07 22:24
Reporter sig View Status public  
Assigned To mikevdg
Priority normal Resolution open  
Status assigned   Product Version 3.10
Summary 0006822: Process>>resume causes running process which waiting for semaphore signal.
Description Following code should not make 'Oopsie' text to appear in transcript, since there was no semaphore signaled.

| sema proc |
 sema := Semaphore new.
 proc := [ sema critical: [ Transcript show: 'Oopsie' ] ] fork.
 Processor yield.
 proc suspend.
 proc resume.
Additional Information
Attached Files

- Relationships

- Notes
(0011575 - 349 - 419 - 419 - 419 - 419 - 419)
mikevdg
12-20-07 22:22

The issue is that "proc resume" here ignores the fact that the process was waiting on a semaphore.

Another test case:

s := Semaphore new.
p := [ s wait. Transcript show: 'resumed'. ] fork.
p suspend.
p resume.

Note that Process>>signalException: (as of in Squeak 3.8, it may be fixed in later versions?) relies on this broken behaviour.
 

- Issue History
Date Modified Username Field Change
12-20-07 22:02 sig New Issue
12-20-07 22:22 mikevdg Note Added: 0011575
12-20-07 22:24 mikevdg Issue Monitored: mikevdg
12-20-07 22:24 mikevdg Status new => assigned
12-20-07 22:24 mikevdg Assigned To  => mikevdg


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
36 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker