[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

Re: ruby_1_8_6 build problem (make install-doc)

From: Urabe Shyouhei <shyouhei@...>
Date: 2007-05-26 17:51:28 UTC
List: ruby-core #11258
Hi,

johan556@gmail.com wrote:
> I guess the problem is an incomplete merging of changes in
> "runruby.rb" from "ruby_1_8" to "ruby_1_8_6". In "ruby_1_8_6" the
> variable is never initialized for example. 


Indeed.  Does this fix the problem?

Index: runruby.rb
===================================================================
--- runruby.rb  (revision 12390)
+++ runruby.rb  (working copy)
@@ -41,11 +41,7 @@
 ENV["RUBY"] = File.expand_path(ruby)
 ENV["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
 
-if pure
   libs << File.expand_path("ext", srcdir) << "-"
-elsif e = ENV["RUBYLIB"]
-  libs |= e.split(File::PATH_SEPARATOR)
-end
 ENV["RUBYLIB"] = $:.replace(libs).join(File::PATH_SEPARATOR)
 
 libruby_so = File.join(abs_archdir, config['LIBRUBY_SO'])
@@ -59,7 +55,6 @@
 end
 
 cmd = [ruby]
-cmd << "-rpurelib.rb" if pure
+cmd << "-rpurelib.rb"
 cmd.concat(ARGV)
-cmd.unshift(*debugger) if debugger
 exec(*cmd)



In This Thread