Backport #3342

Updated by jeremyevans0 (Jeremy Evans) 5 months ago


I experience a segfault when calling an aliased method (which has been created with attr_accessor or attr_writer) with multiple arguments.
The bug doesn't appear with manually defined methods that accept any number of arguments (i.e., with splat).
I'm using Archlinux's official build.

bug.rb:10: [BUG] Stack consistency error (sp: 7, bp: 6)
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

-- control frame ----------
c:0003 p:0108 s:0007 b:0006 l:00036c d:001bec EVAL bug.rb:10
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00036c d:00036c TOP
-- Ruby level backtrace information-----------------------------------------
bug.rb:10:in `<main>'

-- C level backtrace information -------------------------------------------
0xb77f2340 /usr/lib/ [0xb77f2340]
0xb770d401 /usr/lib/ [0xb770d401]
0xb770d49a /usr/lib/ [0xb770d49a]
0xb77e79fc /usr/lib/ [0xb77e79fc]
0xb77e810b /usr/lib/ [0xb77e810b]
0xb77e837b /usr/lib/ [0xb77e837b]
0xb770f7a7 /usr/lib/ [0xb770f7a7]
0xb7710db6 /usr/lib/ [0xb7710db6]
0x80486a8 ruby(main+0x68) [0x80486a8]
0xb757ab96 /lib/ [0xb757ab96]
0x80485a1 ruby() [0x80485a1]