Bugs item #6453, was opened at 2006-11-02 14:49
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6453&group_id=426

Category: None
Group: 1.8.5
Status: Open
Resolution: None
Priority: 3
Submitted By: Markus Kolb (mkolb)
Assigned to: Nobody (None)
Summary: rdoc --fmt=html throws Segmentation faults

Initial Comment:
Hi,

I can't make the html documentation with rdoc after configure, make all and without installing ruby. 
What could be the problem?

Without debug argument I get
/usr/src/packages/BUILD/ruby/lib/rdoc/template.rb:195: [BUG]
rb_gc_mark(): unknown data type 0x10(0xf4a9118) non object
ruby 1.8.5 (2006-11-01) [i586-linux]

With debug argument
$ ./miniruby runruby.rb bin/rdoc -D --all --line-numbers --charset=UTF-8
--fmt=html -p --inline-source --op=rdoc/html .

[...]
Generating HTML...
Exception `ArgumentError' at
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1103
- too many arguments for format string
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1103:in
`sprintf': too many arguments for format string (ArgumentError)
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1103:in
`add_line_numbers'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1102:in
`gsub!'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1102:in
`add_line_numbers'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1087:in
`markup_code'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:925:in
`initialize'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:326:in
`new'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:326:in
`collect_methods'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:326:in
`collect'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:326:in
`collect_methods'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:787:in
`initialize'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1256:in
`new'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1256:in
`build_indices'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1255:in
`each'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1255:in
`build_indices'
        from
/usr/src/packages/BUILD/ruby/lib/rdoc/generators/html_generator.rb:1196:in
`generate'
        from /usr/src/packages/BUILD/ruby/lib/rdoc/rdoc.rb:284:in `document'
        from bin/rdoc:63

With debug and without line-numbers I get
/usr/src/packages/BUILD/ruby/lib/rdoc/markup/simple_markup/inline.rb:276:
[BUG] rb_gc_mark(): unknown data type 0x10(0xd5d6050) non object

Limiting the options to --charset=UTF-8 --fmt=html --op=rdoc/html .
I get a segmentation fault reported from ruby.

The problem was introduced anywhere around the 1.8.5 release in the stable snapshots. 

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6453&group_id=426