yarv-dev:1035
From: sheepman <sheepman sheepman.sakura.ne.jp>
Date: Sat, 15 Jul 2006 19:22:26 +0900
Subject: [yarv-dev:1035] open> InstructionSequence.load dumps core
こんばんは、sheepman です。
InstructionSequence.load に想定外のオブジェクトを与えると
core を吐きます。
$ cat t.rb
YARVCore::InstructionSequence.load(' ' * 1014)
$ ruby-2.0 -v t.rb
ruby 2.0.0 (Base: Ruby 1.9.0 2006-04-08) [i686-linux]
YARVCore 0.4.1 Rev: 519 (2006-07-12) [opts: [direct threaded code] [inline method cache] ]
-- stack frame ------------
0000 (0x402b0008): 00000004
0001 (0x402b000c): 00000005
0002 (0x402b0010): 00000004
0003 (0x402b0014): 00000001
0004 (0x402b0018): 40298b88
0005 (0x402b001c): 40296414
0006 (0x402b0020): 00000004
0007 (0x402b0024): 00000001 <- lfp <- dfp
-- control frame ----------
c:0004 p:---- s:0008 b:0008 l:000007 d:000007 CFUNC :load
c:0003 p:0020 s:0004 b:0004 l:000003 d:000003 TOP t.rb:1
c:0002 p:---- s:0002 b:0002 l:000001 d:000001 FINISH
c:0001 p:---- s:0000 b:-001 l:000000 d:000000 ------
---------------------------
DBG> : "t.rb:1:in `<main>'"
[BUG] Segmentation fault
ruby 2.0.0 (2006-04-08) [i686-linux]
zsh: abort ruby-2.0 -v t.rb
--
sheepman / TAMURA Takashi
sheepman sheepman.sakura.ne.jp
--
ML: yarv-dev quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml
-> 1035 2006-07-15 19:22 [sheepman sheepman.sa] open> InstructionSequence.load dumps core 1038 2006-07-18 16:51 ┗[ko1 atdot.net ] fixed> Re: open> InstructionSequence.load dumps core 1041 2006-07-19 21:47 ┗[sheepman sheepman.sa] Re: open> InstructionSequence.load dumps core 1047 2006-07-20 03:42 ┗[ko1 atdot.net ] fixed> Re: open> InstructionSequence.load dumps core