[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

Re: two fixes for sync.rb: sync_try_lock, Err.Fail

From: "Dmitry Borodaenko" <angdraug@...>
Date: 2007-05-09 22:34:04 UTC
List: ruby-core #11126
On 5/9/07, Dmitry Borodaenko <angdraug@gmail.com> wrote:
> Attached are fixes for sync.rb, both the current stable version and
> the version in the SVN trunk.

This couldn't go out without some suspense, could it? ;-) Really
attached it this time.

-- 
Dmitry Borodaenko

Attachments (2)

sync.rb-1.8.6-fix.diff (591 Bytes, text/x-diff)
--- sync.rb.dpkg-dist	2007-05-08 23:35:15.000000000 +0100
+++ sync.rb	2007-05-09 01:04:37.000000000 +0100
@@ -54,6 +54,7 @@
   # exceptions
   class Err < StandardError
     def Err.Fail(*opt)
+      Thread.critical = false
       fail self, sprintf(self::Message, *opt)
     end
     
@@ -129,10 +130,10 @@
   
   # locking methods.
   def sync_try_lock(mode = EX)
-    return unlock if sync_mode == UN
+    return unlock if mode == UN
     
     Thread.critical = true
-    ret = sync_try_lock_sub(sync_mode)
+    ret = sync_try_lock_sub(mode)
     Thread.critical = false
     ret
   end
sync.rb-1.9-fix.diff (387 Bytes, text/x-diff)
--- sync.rb.trunk	2007-05-08 22:05:19.000000000 +0100
+++ sync.rb	2007-05-08 23:46:20.000000000 +0100
@@ -127,9 +127,9 @@
   
   # locking methods.
   def sync_try_lock(mode = EX)
-    return unlock if sync_mode == UN
+    return unlock if mode == UN
     @sync_mutex.synchronize do
-      ret = sync_try_lock_sub(sync_mode)
+      ret = sync_try_lock_sub(mode)
     end
     ret
   end

In This Thread

Prev Next