Backport #725
closed
Synchronized block in finalizer-method results in deadlock/ crash of the interpreter
Added by cenobyte (Sebastian Morawietz) about 16 years ago.
Updated over 13 years ago.
Description
=begin
The Code in the attached file results in deadlocks and crashes the interpreter on a regular basis.
Tested Platforms:
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-linux]
=end
Files
test.rb (562 Bytes)
test.rb |
The code producing the error |
cenobyte (Sebastian Morawietz), 11/08/2008 10:40 PM
|
|
=begin
error still occurs under:
ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-linux]
=end
=begin
Hi,
Sebastian Morawietz wrote in [ruby-core:19740]:
At Sat, 8 Nov 2008 22:38:56 +0900,
The Code in the attached file results in deadlocks and crashes the interpreter on a regular basis.
Finalizers run in sole thread, so you don't need / can't use synchronization.
--
Nobu Nakada
=end
- Assignee set to nobu (Nobuyoshi Nakada)
- Category set to ext
- Status changed from Open to Assigned
- Assignee changed from nobu (Nobuyoshi Nakada) to shyouhei (Shyouhei Urabe)
- ruby -v set to ruby 1.8.7 (2009-02-20 patchlevel 134) [i686-dar)
=begin
r17874 and r17886 have fixed this bug.
=end
- Status changed from Assigned to Closed
=begin
Applied in changeset r23042.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0