Project

General

Profile

Actions

Bug #857

closed

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

Added by brokenoty (Alex Fenton) over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
Backport:
[ruby-core:20480]

Description

=begin
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)
=end


Files

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

Also available in: Atom PDF