[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[ ruby-Bugs-7153 ] WeakRefs not "weak" on FreeBSD/Mac OS X

From: <noreply@...>
Date: 2006-12-07 18:52:00 UTC
List: ruby-core #9676
Bugs item #7153, was opened at 2006-12-07 13:51
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7153&group_id=426

Category: Core
Group: 1.8.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Riley Lynch (rlynch)
Assigned to: Nobody (None)
Summary: WeakRefs not "weak" on FreeBSD/Mac OS X

Initial Comment:
The documentation code for WeakRef does not behave as expected under FreeBSD and Mac OS X:

  require 'weakref'

  foo = Object.new
  p foo.to_s                  # original's class
  foo = WeakRef.new(foo)
  p foo.to_s                  # should be same class
  ObjectSpace.garbage_collect
  p foo.to_s                  # should raise exception (recycled)

Broken platforms/builds, with output:

  ruby 1.8.5 (2006-08-25) [i386-freebsd5]
  "#<Object:0x806ef5c>"
  "#<Object:0x806ef5c>"
  "#<Object:0x806ef5c>"

  ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
  "#<Object:0x1f658>"
  "#<Object:0x1f658>"
  "#<Object:0x1f658>"

  ruby 1.8.4 (2005-12-24) [i686-darwin8.7.1]
  "#<Object:0x1f658>"
  "#<Object:0x1f658>"
  "#<Object:0x1f658>"

  ruby 1.9.0 (2006-12-08 patchlevel 0) [i686-darwin8.8.1]
  "#<Object:0x278dc8>"
  "#<Object:0x278dc8>"
  "#<Object:0x278dc8>"

Working platforms/builds (for comparison, not an exhaustive list):

  ruby 1.8.4 (2005-12-24) [i386-solaris2.8]
  "#<Object:0x80792a4>"
  "#<Object:0x80792a4>"
  /tmp/weak_ref_test.rb:8: Illegal Reference - probably recycled (WeakRef::RefError)

ruby 1.8.5 (2006-08-25) [i386-mswin32]
  "#<Object:0x27e6344>"
  "#<Object:0x27e6344>"
  weak_ref_test.rb:8: Illegal Reference - probably recycled (WeakRef::RefError)


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7153&group_id=426

In This Thread

Prev Next