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

NODE_POSTEXE / gc

From: ts <decoux@...>
Date: 2006-09-24 12:27:30 UTC
List: ruby-core #8912
 ruby crash with extconf.rb for extensions

moulon% ruby extconf.rb
checking for rb_block_call()... yes
creating Makefile
moulon% 

moulon% ruby extconf.rb
checking for rb_block_call()... yes
creating Makefile
moulon% 

moulon% ruby extconf.rb
checking for rb_block_call()... yes
creating Makefile
/home/msys/decoux/local/r19/lib/ruby/1.9/mkmf.rb:538: [BUG] not a node 0x07 (0xb7cf8dcc)
ruby 1.9.0 (2006-09-24) [i686-linux]

Aborted
moulon% 

 Not sure

moulon% diff -u gc.c.~1.251.~ gc.c
--- gc.c.~1.251.~	2006-09-24 14:13:11.000000000 +0200
+++ gc.c	2006-09-24 14:19:24.000000000 +0200
@@ -866,6 +866,10 @@
 	    ptr = (VALUE)obj->as.node.u1.node;
 	    goto again;
 
+	  case NODE_POSTEXE:	/* 2 */
+	    ptr = (VALUE)obj->as.node.u2.node;
+	    goto again;
+
 	  case NODE_SCOPE:	/* 2,3 */
 	  case NODE_CDECL:
 	    gc_mark((VALUE)obj->as.node.u3.node, lev);
@@ -892,7 +896,6 @@
 	  case NODE_ERRINFO:
 	  case NODE_ATTRSET:
 	  case NODE_BLOCK_ARG:
-	  case NODE_POSTEXE:
 	    break;
 	  case NODE_ALLOCA:
 	    mark_locations_array((VALUE*)obj->as.node.u1.value,
moulon% 



Guy Decoux

In This Thread

Prev Next