Bug #3355
Stack overflow executing rdoc
| Status: | Closed | Start date: | 05/28/2010 | |
|---|---|---|---|---|
| Priority: | Urgent | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | core | |||
| Target version: | 2.0.0 | |||
| ruby -v: | ruby 1.9.3dev (2010-05-27 trunk 28040) [i386-mswin32_90] |
Description
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.
Related issues
Associated revisions
* encoding.c (rb_filesystem_encindex): avoid infinite require
loop. [ruby-core:30467]
History
Updated by romuloceccon (Romulo Ceccon) almost 2 years ago
r28037 is ok. The issue appeared in r28038.
Updated by usa (Usaku NAKAMURA) almost 2 years ago
- Status changed from Open to Assigned
- Assignee set to usa (Usaku NAKAMURA)
- Target version set to 2.0.0
succeeded to reproduce. memo: ruby crashes in ruby_xrealloc() because ptr is invalid. objspace = 0 ptr = 0x85fffffd size = 3893786111
Updated by usa (Usaku NAKAMURA) almost 2 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) almost 2 years ago
- Assignee changed from usa (Usaku NAKAMURA) to naruse (Yui NARUSE)
- Priority changed from Normal to Urgent
Updated by naruse (Yui NARUSE) almost 2 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.