SASADA Koichi wrote:
> 
> In this article, I describe how to use "addr2line" with information
> which you can see on [BUG].

Below is an stack trace based on a clean checkout of revision 15032.

The hex addresses have been replaced with the output of addr2line.

I hope this is helpful.

sample/test.rb:system ........./sample/test.rb:1873: [BUG] Segmentation 
fault
ruby 1.9.0 (2008-01-13 revision 0) [i686-linux]

-- control frame ----------
c:0008 p:---- s:0064 b:0064 l:000063 d:000063 CFUNC  :eval
c:0007 p:0047 s:0057 b:0057 l:000056 d:000056 METHOD ./sample/test.rb:1873
c:0006 p:0032 s:0052 b:0052 l:002618 d:000051 BLOCK  ./sample/test.rb:1880
c:0005 p:---- s:0052 b:0052 l:000051 d:000051 FINISH :flush
c:0004 p:---- s:0050 b:0050 l:000049 d:000049 CFUNC  :each
c:0003 p:18952 s:0047 b:0047 l:002618 d:002618 TOP    ./sample/test.rb:1879
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP    <dummy toplevel>:17
---------------------------
DBG> : "./sample/test.rb:1873:in `valid_syntax?'"
DBG> : "./sample/test.rb:1880:in `block in <main>'"
DBG> : "./sample/test.rb:1879:in `each'"
DBG> : "./sample/test.rb:1879:in `<main>'"
-- backtrace of native function call (Use addr2line) --
/home/rubys/svn/ruby/vm_dump.c:590
/home/rubys/svn/ruby/error.c:213
/home/rubys/svn/ruby/error.c:226
/home/rubys/svn/ruby/signal.c:522
??:0
/home/rubys/svn/ruby/re.c:1816
/home/rubys/svn/ruby/re.c:1998
/home/rubys/svn/ruby/re.c:2050
/home/rubys/svn/ruby/re.c:2108
/home/rubys/svn/ruby/parse.y:8582
/home/rubys/svn/ruby/parse.y:3634
/home/rubys/svn/ruby/parse.y:4686
/home/rubys/svn/ruby/thread.c:2997
/home/rubys/svn/ruby/parse.y:4713
/home/rubys/svn/ruby/parse.y:4771
/home/rubys/svn/ruby/iseq.c:421
/home/rubys/svn/ruby/iseq.c:450
/home/rubys/svn/ruby/eval.c:1726
/home/rubys/svn/ruby/eval.c:1826
/home/rubys/svn/ruby/vm_insnhelper.c:280
/home/rubys/svn/ruby/vm_insnhelper.c:372
/home/rubys/svn/ruby/insns.def:1049
/home/rubys/svn/ruby/vm.c:1148
/home/rubys/svn/ruby/vm.c:578
/home/rubys/svn/ruby/eval.c:919
/home/rubys/svn/ruby/array.c:1133
/home/rubys/svn/ruby/eval.c:1205
/home/rubys/svn/ruby/array.c:1160
/home/rubys/svn/ruby/vm_insnhelper.c:372
/home/rubys/svn/ruby/insns.def:1049
/home/rubys/svn/ruby/vm.c:1148
/home/rubys/svn/ruby/vm.c:1357
/home/rubys/svn/ruby/eval.c:228
/home/rubys/svn/ruby/eval.c:258
/home/rubys/svn/ruby/main.c:37
??:0
??:0

- Sam Ruby