[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26271] [Bug #2262] [BUG] Stack consistency error (sp: 8, bp: 7)

From: robert gleeson <redmine@...>
Date: 2009-10-24 08:56:58 UTC
List: ruby-core #26271
Bug #2262: [BUG] Stack consistency error (sp: 8, bp: 7)
http://redmine.ruby-lang.org/issues/show/2262

Author: robert gleeson
Status: Open, Priority: Normal
ruby -v: ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]

Hello,

I was messing around in irb today and suprisingly this ended up happening :-/

[robert@myhost goldfish]$ ruby bug.rb
bug.rb:12: [BUG] Stack consistency error (sp: 8, bp: 7)
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]

-- control frame ----------
c:0003 p:0046 s:0008 b:0007 l:001888 d:0006e0 EVAL   bug.rb:12
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001888 d:001888 TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------
bug.rb:12:in `<main>'

-- C level backtrace information -------------------------------------------
0x7f631bcd95c1 /usr/lib/libruby.so.1.9(rb_vm_bugreport+0x51) [0x7f631bcd95c1]
0x7f631bc03324 /usr/lib/libruby.so.1.9 [0x7f631bc03324]
0x7f631bc03493 /usr/lib/libruby.so.1.9(rb_bug+0xb3) [0x7f631bc03493]
0x7f631bcd0306 /usr/lib/libruby.so.1.9 [0x7f631bcd0306]
0x7f631bcd0775 /usr/lib/libruby.so.1.9 [0x7f631bcd0775]
0x7f631bcd08e1 /usr/lib/libruby.so.1.9(rb_iseq_eval_main+0xb1) [0x7f631bcd08e1]
0x7f631bc055ec /usr/lib/libruby.so.1.9(ruby_exec_node+0xac) [0x7f631bc055ec]
0x7f631bc06c57 /usr/lib/libruby.so.1.9(ruby_run_node+0x37) [0x7f631bc06c57]
0x40089b ruby(main+0x4b) [0x40089b]
0x7f631b87e9ed /lib/libc.so.6(__libc_start_main+0xfd) [0x7f631b87e9ed]
0x400789 ruby [0x400789]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted

The code that ended up causing this is really simple and short:

class A

  attr_accessor :foo

  def initialize
    @foo = {}
  end

end

x = A.new
x.send "foo=", "a", "b"

Passing two arguments to #send works fine.
Same results with a String, and an Array.

Hope this helps,
Rob


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

In This Thread

Prev Next