Project

General

Profile

Bug #3981

"[BUG] cfp consistency error - send" while parsing XML file with -r profile

Added by shigeya (Shigeya Suzuki) over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
Backport:
[ruby-core:32897]

Description

=begin
Running following script with attached XML file (pls uncompress before run) cause the crash report as follows.
It work without problem if profiling is off.

--- Script
require 'rexml/document'
fn = 'test1.xml'
xml = REXML::Document.new(File.open(fn))

--- Diagnostic output
% ruby -r profile test1.rb
test1.rb:3: [BUG] cfp consistency error - send
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

-- control frame ----------
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :new
c:0003 p:0052 s:0008 b:0008 l:001588 d:0000c8 EVAL test1.rb:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001588 d:001588 TOP


-- Ruby level backtrace information ----------------------------------------
test1.rb:3:in <main>'
test1.rb:3:in
new'

-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x000000010017f942 rb_vm_bugreport + 210
1 libruby.1.9.1.dylib 0x0000000100039c74 report_bug + 372
2 libruby.1.9.1.dylib 0x0000000100039e38 rb_bug + 200
3 libruby.1.9.1.dylib 0x0000000100165f02 vm_call_method + 3810
4 libruby.1.9.1.dylib 0x0000000100168185 vm_exec_core + 8293
5 libruby.1.9.1.dylib 0x000000010016fdc3 vm_exec + 1507
6 libruby.1.9.1.dylib 0x00000001001717a2 vm_call0 + 1266
7 libruby.1.9.1.dylib 0x000000010017796e rb_funcall2 + 350
8 libruby.1.9.1.dylib 0x000000010008f693 rb_class_new_instance + 51
9 libruby.1.9.1.dylib 0x00000001001653f7 vm_call_method + 983
10 libruby.1.9.1.dylib 0x0000000100168185 vm_exec_core + 8293
11 libruby.1.9.1.dylib 0x000000010016fdc3 vm_exec + 1507
12 libruby.1.9.1.dylib 0x00000001001700c8 rb_iseq_eval_main + 504
13 libruby.1.9.1.dylib 0x000000010003f042 ruby_exec_internal + 178
14 libruby.1.9.1.dylib 0x00000001000419cc ruby_run_node + 60
15 ruby 0x0000000100000ecf main + 79
16 ruby 0x0000000100000e74 start + 52

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

zsh: abort ruby -r profile test1.rb
=end


Files

test1.xml.gz (1.65 KB) test1.xml.gz shigeya (Shigeya Suzuki), 10/25/2010 07:41 PM
#1

Updated by naruse (Yui NARUSE) over 9 years ago

  • Category set to core
  • Status changed from Open to Closed
  • Target version set to 1.9.2

=begin
This is already fixed in trunk and ruby_1_9_2 branch.
So this will be OK on next 1.9.2 patch release.
=end

Also available in: Atom PDF