Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ruby-1.8.0.p3 segfault

Thread Tools

ruby-1.8.0.p3 segfault

George Moschovitis
Posts: n/a
Hi there,

I am evaluting the latest preview, and i get the following errro:

.../navel/web/srv/request.rb:339: [BUG] obj_free() called for broken object
ruby 1.8.0 (2003-06-23) [i686-linux]

here is the relevant code:

def read_line(io, sep=LF, to = $srv_request_timeout)
timeout(to) do
# drak: trying to resolve a segfault, will return nil if io.nil?
# return (io.nil? ? nil : io.gets(sep))
if io
return io.gets(sep)
return ""
rescue TimeoutError
raise HttpRequestTimeout
rescue Exception, StandardError => e
$log.debug e
# gmosx: if the nil is not returned it returns File (from the log),
# and may produce an error.
return nil
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
invoking a segfault within a segfault handler - is this undefinedbehavior? Andrey Vul C Programming 8 07-30-2010 02:14 PM
Adding empty copy constructor makes segfault go away? William Payne C++ 4 08-28-2004 06:09 AM
istream segfault Jim Strathmeyer C++ 4 07-23-2004 03:47 PM
multiset segfault Arthur J. O'Dwyer C++ 10 06-18-2004 03:21 AM
STL string segfault Vedran Vyroubal C++ 5 03-04-2004 07:56 AM