Bug #3355

Stack overflow executing rdoc

Added by romuloceccon (Rômulo Ceccon) over 10 years ago. Updated over 9 years ago.

Target version:
ruby -v:
ruby 1.9.3dev (2010-05-27 trunk 28040) [i386-mswin32_90]


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'

More information from the application log:

Faulting application ruby.exe, version, 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.

Related issues

Has duplicate Ruby master - Bug #3358: -I switch fails to work on the trunk versionClosed05/28/2010Actions

Updated by romuloceccon (Rômulo Ceccon) over 10 years ago

r28037 is ok. The issue appeared in r28038.


Updated by usa (Usaku NAKAMURA) over 10 years ago

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

succeeded to reproduce.


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



Updated by usa (Usaku NAKAMURA) over 10 years ago

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.


Updated by usa (Usaku NAKAMURA) over 10 years ago

  • Assignee changed from usa (Usaku NAKAMURA) to naruse (Yui NARUSE)
  • Priority changed from Normal to 6




Updated by naruse (Yui NARUSE) over 10 years ago

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

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.


Also available in: Atom PDF