Bug #3355

Stack overflow executing rdoc

Added by Romulo Ceccon over 5 years ago. Updated over 4 years ago.

[ruby-core:30467]
Status:Closed
Priority:Normal
Assignee:Yui NARUSE
ruby -v:ruby 1.9.3dev (2010-05-27 trunk 28040) [i386-mswin32_90] Backport:

Description

=begin
Ruby-trunk (r28040) compiles fine with VS2008 but when it starts generating RDoc documentation it crashes with a stack overflow:

(...)
Generating RDoc documentation
.\ruby.exe -I./lib -I".ext/i386-mswin32_90" "./tool/runruby.rb" --extout=".ext" -- "./bin/rdoc" --no-force-update --all --ri --op ".ext/rdoc" "."
NMAKE : fatal error U1077: '.\ruby.exe' : return code '0xc00000fd'
Stop.

More information from the application log:

Faulting application ruby.exe, version 1.9.3.0, time stamp 0x4bfe8abc, faulting module ntdll.dll, version 6.0.6002.18005, time stamp 0x49e03821, exception code 0xc00000fd, fault offset 0x00066578, process id 0x33c, application start time 0x01cafdb25d481203.

Ruby-1.9.2 (ruby 1.9.2dev (2010-05-27 revision 28042) [i386-mswin32_90]) exhibits exactly the same problem.
=end


Related issues

Duplicated by Ruby trunk - Bug #3358: -I switch fails to work on the trunk version Closed 05/28/2010

History

#1 Updated by Romulo Ceccon over 5 years ago

=begin
r28037 is ok. The issue appeared in r28038.
=end

#2 Updated by Usaku NAKAMURA over 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to Usaku NAKAMURA
  • Target version set to 2.0.0

=begin
succeeded to reproduce.

memo:

ruby crashes in ruby_xrealloc() because ptr is invalid.
objspace = 0
ptr = 0x85fffffd
size = 3893786111

=end

#3 Updated by Usaku NAKAMURA over 5 years ago

=begin
Oh, this is the well known problem (by especially Naruse and me)
as "infinity require loop of encoding".
Now Naruse and I discussing about this.
=end

#4 Updated by Usaku NAKAMURA over 5 years ago

  • Assignee changed from Usaku NAKAMURA to Yui NARUSE
  • Priority changed from Normal to 6

=begin

=end

#5 Updated by Yui NARUSE over 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28063.
Romulo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF