From: ts Date: 2008-01-09T19:22:51+09:00 Subject: Re: Segmentation fault when calling procs >>>>> "C" == Chris =?UTF-8?Q?=22=E3=82=AF=22?= Heath writes: C> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/14395 Can you give a smaller example : this seems too big to try to debug it C> In an attempt to track this bug down, I set VMDEBUG to 1 in vm.h. To my C> surprise, ruby wouldn't even build after doing this. The problem was C> that miniruby failed a sanity check while... calling a block! And it C> seems to be 100% reproducible on my system. Il you really want to use VMDEBUG, you need to make some modifications to your private copy of the source. ruby can be build with debugging option vgs% ruby -D0f5 -e 1 2>&1 | tail -20 [compile step 4.1 (iseq_set_sequence)] [compile step 4.2 (iseq_set_exception_table)] [compile step 4.3 (set_optargs_table)] [compile step 5 (iseq_translate_threaded_code)] == disasm: @-e>============================================= 0000 putobject 1 ( 1) 0002 leave [compile step: finish] 3 0000 putobject 1 ( 1) (1) [PC] 0000, [SP] 0006, [LFP] 0005, [DFP] 0005, [CFP] 0003 (2) [PC] 0002, [SP] 0007, [LFP] 0005, [DFP] 0005, [CFP] 0003 c:0003 p:0002 s:0007 b:0006 l:000005 d:000005 TOP -e:1 stack 0: 1 (6) -------------------------------------------------------------- 3 0002 leave (1) [PC] 0002, [SP] 0007, [LFP] 0005, [DFP] 0005, [CFP] 0003 (2) [PC] -001, [SP] 0005, [LFP] 0003, [DFP] 0003, [CFP] 0002 -------------------------------------------------------------- (1) [PC] -001, [SP] 0005, [LFP] 0003, [DFP] 0003, [CFP] 0002 vgs% Guy Decoux