[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

[ ruby-Bugs-5941 ] "nundefined method `to_str' for nil:NilClass" exception from mkmf.rb when doing "make distclean"

From: <noreply@...>
Date: 2006-09-28 17:59:33 UTC
List: ruby-core #8945
Bugs item #5941, was opened at 2006-09-28 10:59
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5941&group_id=426

Category: Core
Group: 1.8.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Rick Ohnemus (joast)
Assigned to: Nobody (None)
Summary: "nundefined method `to_str' for nil:NilClass" exception from mkmf.rb when doing "make distclean"

Initial Comment:
Following patch appears to fix the problem:

--- extmk.rb.orig       2006-09-21 06:58:33.000000000 -0700
+++ extmk.rb    2006-09-28 10:38:29.000000000 -0700
@@ -417,7 +417,7 @@
   Dir.chdir ".."
   if $clean
     Dir.rmdir('ext') rescue nil
-    FileUtils.rm_rf(extout) if $extout
+    FileUtils.rm_rf($extout) if $extout
   end
   exit
 end


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5941&group_id=426

In This Thread

Prev Next