Bug #857

1.9 Crash on calling 'hour' method on DateTime object in C extension

Added by Alex Fenton about 3 years ago. Updated 10 months ago.

[ruby-core:20480]
Status:Closed Start date:12/11/2008
Priority:High Due date:12/24/2008
Assignee:Koichi Sasada % Done:

100%

Category:-
Target version:1.9.1 Release Candidate
ruby -v:

Description

DateTime#hour works fine in Ruby.

However, calling this in an extension on the same DateTime object causes a crash:

int rHour = NUM2INT(rb_funcall(date_time, rb_intern("hour"), 0));

Error is:
/Users/alex/code/wxruby2_19/lib/wx/keyword_ctors.rb:168: [BUG] unsupported: vm_call0(NODE_ZSUPER)

test-ext.tar.gz (415 Bytes) Yuki Sonoda, 12/12/2008 12:42 am

Associated revisions

Revision 20744
Added by Nobuyoshi Nakada about 3 years ago

* vm_eval.c (vm_call0): NODE_ZSUPER supported. [ruby-core:20480]

History

Updated by Yuki Sonoda about 3 years ago

  • File test-ext.tar.gz added
  • Assignee set to Koichi Sasada
  • Priority changed from Normal to High
  • Target version set to 1.9.1 Release Candidate
This is the least reproducing example.

% ruby -rdate -r./test -e 'lets_abort(DateTime.new)'
-e:1: [BUG] unsupported: vm_call0(NODE_ZSUPER)
ruby 1.9.1 (2008-12-09) [i386-darwin9.5.0]

-- control frame ----------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :lets_abort
c:0003 p:0022 s:0006 b:0006 l:000005 d:000005 TOP    -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP    <dummy toplevel>:19128
---------------------------
DBG> : "-e:1:in `lets_abort'"
DBG> : "-e:1:in `<main>'"
-- backtrace of native function call (Use addr2line) --
0x12f349
0x29b17
0x29b56
0x127531
0x1282c2
0x127f63
0x128489
0x2dff72
0x123dba
0x123b97
0x123551
0x11fee9
0x12c3d3
0x12ca50
0x2e08a
0x2e12e
0x17aa
0x1712
-------------------------------------------------------

Updated by Yuki Sonoda about 3 years ago

  • Due date set to 12/24/2008

Updated by Nobuyoshi Nakada about 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r20744.

Also available in: Atom PDF