Bug #1765: rdoc runs out of memory on Windows XP with 4GB RAM
http://redmine.ruby-lang.org/issues/show/1765

Author: Björn Günzel
Status: Open, Priority: Normal
ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]

I have installed the binary distribution of Ruby 1.9.1 for Windows XP and tried to run rdoc on the source snapshot from today as follows: 

rdoc lib ext -o rdoc -S -T kilmer

After quite a while this fails with "NoMemorError", see copied output below. My PC has 4GB of RAM installed. The same command has completed successfully on the same machine with Ubuntu Linux 9.04 64 Bit Edition.

Output: 

Generating HTML...
C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:327:in `sort': failed
 to allocate memory (NoMemoryError)
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:327:in `
index_to_links'
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:225:in `
block in gen_into'
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in `
each'
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in `
gen_into'
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:180:in `
generate_html'
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:86:in `g
enerate'
        from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/rdoc.rb:279:in `document'
        from C:/programs/ruby-1.9/bin/rdoc.bat:23:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org