Issue #7597 has been updated by tarui (Masaya Tarui).

Status changed from Closed to Feedback
Priority changed from Normal to Low

???綵????????????????????с???????????????
rb_dump_backtrace_with_lines
?????若?喝?冴???????????潟?<?潟????≪???????????????障????????

patch welcome??с?????
----------------------------------------
Bug #7597: $0???紊???眼????????bug_report???segv??????
https://bugs.ruby-lang.org/issues/7597#change-34938

Author: tarui (Masaya Tarui)
Status: Feedback
Priority: Low
Assignee: tarui (Masaya Tarui)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-21 trunk 38514) [x86_64-linux]


rb_vm_bugreport(void)??筝??? backtrace_symbols(trace, n)??? ruby??????篁????????$0??у????眼??????????????綣???e宍??c??ャ?????障?????
?????????rb_dump_backtrace_with_lines(n, trace, syms);??筝???elf綵√?????茵??????<?ゃ??????????莨若????у???????????????障?c?????????
罩c???????????????????茯??c?????????????惹????宴???????????ゃ?潟?炊??篏????茵????segv膈??????障?????

minitest筝??segv?????????rb_bug???????????????????????????c????????????????泣??篋????????障?????
箴???????[Bug #7590]???

?????????絲丞????障??????????????????????с????????筝???????????
rb_dump_backtrace_with_lines???篏帥???????????????????????鴻???????????????障?????


$ cat t.rb
"fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" #dummy header:-) 
$0=__FILE__
require 'dl'
p DL::CPtr.new(4)[0]

$ ruby t.rb
DL is deprecated, please use Fiddle
t.rb:4: [BUG] Segmentation fault
ruby 2.0.0dev (2012-12-21 trunk 38514) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0009 e:000008 CFUNC  :[]
c:0002 p:0033 s:0005 e:001578 EVAL   t.rb:4 [FINISH]
c:0001 p:0000 s:0002 e:000c08 TOP    [FINISH]

t.rb:4:in `<main>'
t.rb:4:in `[]'

-- C level backtrace information -------------------------------------------
Segmentation fault (core dumped)
$ 


-- 
http://bugs.ruby-lang.org/