[#636] doc/NEWS — Matt Armstrong <matt@...>

22 messages 2002/12/15

Re: Segfault in Ruby 1.7.x/1.8 Proc#to_s

From: ts <decoux@...>
Date: 2002-12-30 11:04:02 UTC
List: ruby-core #668
>>>>> "M" == Michael Granger <ged@FaerieMUD.org> writes:

M> I can't for the life of me figure out how to intentionally create a Proc 
M> whose node's nd_file member is null, however. It happens regularly for 

 Look is the node is still valid

M> Program received signal SIGSEGV, Segmentation fault.
M> 0x4005c8c6 in proc_to_s (self=1077739304, other=1074546069)
M>     at eval.c:6736
M> 6736            len += strlen(node->nd_file) + 2 + 
M> (SIZEOF_LONG*CHAR_BIT-NODE_LSHIFT)/3;
M> (gdb) bt

 use the command

        p *node

 if flags == 0 the node was GC'ed


Guy Decoux

In This Thread