Ruby 1.6.7 core dump


(Matthew Bloch) #1

Hello;

I had a core dump with Ruby 1.6.7 (built from the RPMs at Caliban.org) and
posted it at:

http://www.soup-kitchen.net/bt.txt

My program evidently received a SIGPIPE for reading/writing from a
one-ended pipe, but I assumed that my program would be insulated from this
by IO.popen throwing an EOFException which I have a rescue clause for, and
this worked 99.9% of the time. The code is a fairly simple class which
wraps the execution of a recursive wget process and returns URLs found for
consumption by a matcher. It’s fairly short and posted at:

http://www.soup-kitchen.net/fetch_wget.rb

This class was instantiated many times on many URLs and ran for several
hours before my logs showed a Ruby segfault-- is this a problem with my
code not catching SIGPIPE (which as far as I can tell, is meant to be
ignored in signal.c) or should Ruby have just returned me an EOFError?

cheers,

···


Matthew


(Nobuyoshi Nakada) #2

Hi,

···

At Fri, 7 Jun 2002 09:13:40 +0900, Matthew Bloch wrote:

I had a core dump with Ruby 1.6.7 (built from the RPMs at Caliban.org) and
posted it at:

http://www.soup-kitchen.net/bt.txt

What’s the release date?


Nobu Nakada


(Matthew Bloch) #3

$ ruby -v
ruby 1.6.7 (2002-03-19) [i686-linux]

···

nobu.nokada@softhome.net wrote:

Hi,

At Fri, 7 Jun 2002 09:13:40 +0900, > Matthew Bloch wrote:

I had a core dump with Ruby 1.6.7 (built from the RPMs at Caliban.org)
and posted it at:

http://www.soup-kitchen.net/bt.txt

What’s the release date?


Matthew


(Nobuyoshi Nakada) #4

Hi,

···

At Fri, 7 Jun 2002 17:54:24 +0900, Matthew Bloch wrote:

I had a core dump with Ruby 1.6.7 (built from the RPMs at Caliban.org)
and posted it at:

http://www.soup-kitchen.net/bt.txt

What’s the release date?

$ ruby -v
ruby 1.6.7 (2002-03-19) [i686-linux]

Can you try with newer version?
Well, but recent 1.6.7 has another bug…


Nobu Nakada