From: Tanaka Akira Date: 2007-09-02T14:49:01+09:00 Subject: [ruby-dev:31709] [BUG] non-initialized struct 以下のようにすると [BUG] が出ます。 % ./ruby -ve ' S = Struct.new(:a) s = Marshal.dump(S.new(1)) class Object remove_const :S end class S end p Marshal.load(s)' ruby 1.9.0 (2007-09-01 patchlevel 0) [i686-linux] -e:9: -- control frame ---------- c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load c:0003 p:0078 s:0007 b:0006 l:000005 d:000005 TOP -e:9 c:0002 p:---- s:0003 b:0003 l:000002 d:000002 FINISH :inherited c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------ --------------------------- DBG> : "-e:9:in `
'" -- backtrace of native function call (Use addr2line) -- 0x80f6d1e 0x8113320 0x81133bf 0x80d8358 0x8070ff8 0x8071752 0x8071765 0x805b936 0x8071998 0x80ecdce 0x80f484d 0x80f43dc 0x80f0c23 0x80f4a26 0x80f506b 0x805a32b 0x805a3ae 0x8057605 0xb7e02ea8 0x8057531 ------------------------------------------------------- [BUG] non-initialized struct ruby 1.9.0 (2007-09-01) [i686-linux] -- [田中 哲][たなか あきら][Tanaka Akira]