[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>

Hi,

18 messages 2005/06/16
[#5220] Re: Segmentation fault in timeout.rb — Eric Hodel <drbrain@...7.net> 2005/06/16

[#5221] Re: Segmentation fault in timeout.rb — Michel Pastor <K@...> 2005/06/16

On Fri, 17 Jun 2005 05:03:18 +0900

[#5223] Re: Segmentation fault in timeout.rb — nobu.nokada@... 2005/06/17

Hi,

[#5296] Subversion — Shugo Maeda <shugo@...>

Hi,

64 messages 2005/06/30
[#5297] Re: Subversion — Curt Hibbs <curt@...> 2005/06/30

Shugo Maeda wrote:

[#5298] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Curt Hibbs wrote:

[#5301] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5304] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/06/30

Austin Ziegler wrote:

[#5305] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, Nikolai Weibull

[#5307] Re: Subversion — mathew <meta@...> 2005/06/30

Austin Ziegler wrote:

[#5308] Re: Subversion — Austin Ziegler <halostatue@...> 2005/06/30

On 6/30/05, mathew <meta@pobox.com> wrote:

[#5311] Re: Subversion — mathew <meta@...> 2005/07/01

Austin Ziegler wrote:

[#5323] Re: Subversion — Austin Ziegler <halostatue@...> 2005/07/01

On 7/1/05, mathew <meta@pobox.com> wrote:

[#5325] Re: Subversion — Nikolai Weibull <mailing-lists.ruby-core@...> 2005/07/01

Austin Ziegler wrote:

[ ruby-Bugs-1988 ] objects never get garbage collected when requested via ObjectSpace._id2ref

From: noreply@...
Date: 2005-06-03 11:09:56 UTC
List: ruby-core #5138
Bugs item #1988, was opened at 2005-06-03 13:02
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1988&group_id=426

Category: Core
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: meinrad recheis  (henon)
Assigned to: Nobody (None)
Summary: objects never get garbage collected when requested via ObjectSpace._id2ref

Initial Comment:
id="s".object_id
GC.start
p ObjectSpace._id2ref id

results in -> `_id2ref': 0x15add5c is recycled object (RangeError)

this is the expected behavior. the anonymous local object "s" gets garbage collected. however if i do a ObjectSpace._id2ref before garbage collection it somehow does not get recycled: 

id="s".object_id
p ObjectSpace._id2ref id
GC.start
p ObjectSpace._id2ref id

results in -> "s"
"s"

seems that _id2ref does some caching. i think it is a bug, because it seems that the objects requested through _id2ref stay in memory forever.

C:\>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]


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

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

In This Thread

Prev Next