[#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:

Re: Object#inspect() doesn't return; uses 100% cpu

From: Andrew Walrond <andrew@...>
Date: 2005-06-15 19:46:36 UTC
List: ruby-core #5208
On Wednesday 15 June 2005 18:26, Austin Ziegler wrote:
> On 6/15/05, Andrew Walrond <andrew@walrond.org> wrote:
> > Is this something I could have caused by overriding some method on the
> > problematic object? Or is it a bug?
>
> Difficult to say without seeing your code.
>
> However, I have experienced it most with highly cyclical object graphs.
>

Well the code is open; its the Heretix linux distro package manager, but the 
class in question is 'Package' and its implementation runs to 1500 lines or 
so.

The Package objects contain hashes of references to other package objects 
(detailing linux package dependencies), and there is a class variable @@all 
which is a hash containing references to every package. So I guess there is 
plenty of scope for #inspect to get bogged down.

The problem does have some nasty side effects, like not being able to use 
$!.message in exception handlers, without the application spinning endlessly 
at 100% cpu.

I have sidestepped the problem by overriding #inspect for the Package class, 
but a fragile #inspect does seem to present non-obvious problems for the 
unwary coder, due to its hidden use in standard stuff like Exception#message.

Andrew Walrond

In This Thread

Prev Next