[bug] deadlock if there are errors while the Transcript is active

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug] deadlock if there are errors while the Transcript is active

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/node/283
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/283

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  bonzinip
 Updated by:   bonzinip
 Status:       active

I think the Semaphore that protects the Transcript has to be changed to
a RecursiveLock.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] deadlock if there are errors while the Transcript is active

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/283
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/283

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  bonzinip
 Updated by:   bonzinip
 Status:       active

Indeed, this fixes it.

diff --git a/kernel/Transcript.st b/kernel/Transcript.st
index 0d404f6..b0981b9 100644
--- a/kernel/Transcript.st
+++ b/kernel/Transcript.st
@@ -193,7 +193,7 @@
        "Private - Initialize the receiver's instance variables"
 
        <category: 'private'>
-       semaphore := Semaphore forMutualExclusion
+       semaphore := RecursionLock new
     ]
 ]




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] deadlock if there are errors while the Transcript is active

Paolo Bonzini-3
In reply to this post by Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/283
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/283

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  bonzinip
 Updated by:   bonzinip
-Status:       active
+Status:       fixed

committed to master and stable-3.0




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk