Project

General

Profile

Actions

Backport #725

closed

Synchronized block in finalizer-method results in deadlock/ crash of the interpreter

Added by cenobyte (Sebastian Morawietz) almost 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
Actions #1

Updated by cenobyte (Sebastian Morawietz) almost 16 years ago

=begin
error still occurs under:
ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-linux]
=end

Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 16 years ago

=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

Actions #3

Updated by shyouhei (Shyouhei Urabe) almost 16 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

=begin

=end

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 15 years ago

  • 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

Actions #5

Updated by shyouhei (Shyouhei Urabe) over 15 years ago

  • Status changed from Assigned to Closed

=begin
Applied in changeset r23042.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0