From: Ryan Pavlik <rpav@users.sourceforge.net>
To: ruby-core@ruby-lang.org
Subject: Re: _id2ref bug?
Date: Fri, 15 Aug 2003 02:46:24 +0900 [thread overview]
Message-ID: <20030814104621.4b7dbb53.rpav@users.sf.net> (raw)
In-Reply-To: <1060880235.666474.27392.nullmailer@picachu.netlab.jp>
On Fri, 15 Aug 2003 01:57:18 +0900
matz@ruby-lang.org (Yukihiro Matsumoto) wrote:
> Hi,
>
> In message "_id2ref bug?"
> on 03/08/15, Ryan Pavlik <rpav@users.sf.net> writes:
>
> |While debugging some caching code, I've come across a segfault related
> |to ObjectSpace::_id2ref. Apparently it's returning illegal objects:
> |
> | Remote Exception: NotImplementedError:
> | /usr/local/encap/mephle-0.8.0/share/mephle/Driver/Storage_cache.rb:49:in
> | `cache': method `_oid' called on terminated object (0x4043a568)
>
> We can't say much without error reproducing code. Can you disclose
> it? Actually, I really want to say "don't use _id2ref", but you've
> said it's not an option.
The main problem is the codebase is pretty big. I can probably come up
with a working example, but it's not going to be small.
The reason for using _id2ref is to make sure that there's 1 unique copy
of an object in existance. If other objects have a reference to
something, I have to use the existing reference. So _id2ref is
necessary here, AFAIK.
--
Ryan Pavlik <rpav@users.sf.net>
"I distinctly remember dancing on your grave." - 8BT
next prev parent reply other threads:[~2003-08-14 17:40 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 16:45 _id2ref bug? Ryan Pavlik
2003-08-14 16:57 ` Yukihiro Matsumoto
2003-08-14 17:01 ` ts
2003-08-14 17:08 ` Yukihiro Matsumoto
2003-08-14 17:44 ` Ryan Pavlik
2003-08-14 17:46 ` Ryan Pavlik [this message]
2003-08-15 0:10 ` Yukihiro Matsumoto
2003-08-14 18:09 ` _id2ref bug? (REPRODUCED, short) Ryan Pavlik
2003-08-15 0:21 ` Yukihiro Matsumoto
2003-08-15 2:37 ` _id2ref bug? (another break) Ryan Pavlik
2003-08-15 3:35 ` nobu.nokada
2003-08-15 4:19 ` Ryan Pavlik
2003-08-15 4:48 ` Ruby Tk on Mac OS X Mark Wilson
2003-08-15 5:22 ` nobu.nokada
2003-08-15 6:10 ` Mark Wilson
2003-08-15 7:14 ` nobu.nokada
2003-08-15 10:17 ` _id2ref bug? (another break) ts
2003-08-15 17:42 ` Ryan Pavlik
2003-08-16 9:35 ` ts
2003-08-16 11:02 ` nobu.nokada
2003-08-16 11:08 ` ts
2003-08-16 12:54 ` nobu.nokada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030814104621.4b7dbb53.rpav@users.sf.net \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).