# Ruby 1.8.4 RDoc Seg fault

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890>\
**Category:** Ruby\
**Created:** [April 13, 2006, 1:47am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890 "2006-04-13T01:47:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 13, 2006, 1:47am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890/1 "2006-04-13T01:47:39Z")

</div>

Got this today:

with\_reader.rb: /usr/lib/ruby/1.8/rdoc/parsers/parse\_rb.rb:384:  
[BUG] Segmentation fault

T.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 13, 2006, 4:25am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890/2 "2006-04-13T04:25:28Z")

</div>

On Apr 12, 2006, at 4:46 PM, TRANS wrote:

> Got this today:
> 
> with\_reader.rb: /usr/lib/ruby/1.8/rdoc/parsers/parse\_rb.rb:384:  
> [BUG] Segmentation fault

Wow… that is really unhelpful. Do you at least have a repro?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 26, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890/3 "2006-04-26T20:05:14Z")

</div>

On Apr 12, 2006, at 9:24 PM, Ryan D. wrote:

> On Apr 12, 2006, at 4:46 PM, TRANS wrote:
> 
> > Got this today:
> > 
> > with\_reader.rb: /usr/lib/ruby/1.8/rdoc/parsers/parse\_rb.rb:384:  
> > [BUG] Segmentation fault
> 
> Wow… that is really unhelpful. Do you at least have a repro?

Here’s one, but from a different lineno than the original poster (and  
probably a different OS):

> ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]
> 
> Abort trap

No core, alas.

Interestingly, this didn’t fail after an uninstall. Instead, I got:

> $ ~ 1005 $ sudo gem install zentest  
> Attempting local installation of ‘zentest’  
> Local gem file not found: zentest\*.gem  
> Attempting remote installation of ‘zentest’  
> Successfully installed ZenTest-3.2.0  
> Installing RDoc documentation for ZenTest-3.2.0…  
> ERROR: While executing gem … (TypeError)  
> can’t dup Fixnum

I’ve been trying other examples of gem installation (for this book  
I’m writing), and getting a lot of such errors:

> $ ~/writing/BMSFT/Book 959 $ sudo gem install watir  
> […]  
> Installing RDoc documentation for watir-1.4.1…  
> […]  
> RDoc failure in readme.rb at or around line 63 column 3  
> […]  
> ERROR: While executing gem … (TypeError)  
> can’t convert Fixnum into String

> $ /usr/local/lib/ruby/gems/1.8/doc/watir-1.4.1/rdoc 986 $ sudo gem  
> install rake  
> […]  
> RDoc failure in lib/rake.rb at or around line 42 column 10  
> […]  
> ERROR: While executing gem … (TypeError)  
> can’t convert Fixnum into String

To make it worse, another zentest install/uninstall worked:

> $ ~/writing/BMSFT/Book 1012 $ sudo gem install zentest  
> Attempting local installation of ‘zentest’  
> Local gem file not found: zentest\*.gem  
> Attempting remote installation of ‘zentest’  
> Successfully installed ZenTest-3.2.0  
> Installing RDoc documentation for ZenTest-3.2.0…

What’s up with that?

* * *

Brian M., independent consultant  
Mostly on agile methods with a testing slant  
[www.exampler.com](http://www.exampler.com), [www.testing.com/cgi-bin/blog](http://www.testing.com/cgi-bin/blog)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 26, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890/4 "2006-04-26T22:59:57Z")

</div>

For what it’s worth, I’ve had trouble all day when rubygems runs rdoc  
on gems. I blew away 1.8.4 and reverted to the 1.8.2 that comes with  
OSX Tiger.

With 1.8.4, I got:

> Installing RDoc documentation for rake-0.7.1…  
> RDoc failure in lib/rake.rb at or around line 42 column 10  
> The internal error was:
> 
> ERROR: While executing gem … (TypeError)  
> can’t convert Fixnum into String

> Installing RDoc documentation for rake-0.7.1…  
> ERROR: While executing gem … (NoMethodError)  
> undefined method `text’ for -517611318:Fixnum

> Installing RDoc documentation for rake-0.7.1…  
> Error in template: private method `gsub!’ called for -517611318:Fixnum  
> Original line: -517611318

On 1.8.2, all went well. Rdoc generation also worked for zentest and  
watir, which had both failed before. The Zentest errors I gave  
earlier in this thread. The watir error was this:

> Installing RDoc documentation for watir-1.4.1…  
> RDoc failure in readme.rb at or around line 63 column 3  
> The internal error was:
> 
> ERROR: While executing gem … (TypeError)  
> can’t convert Fixnum into String

* * *

Brian M., independent consultant  
Mostly on agile methods with a testing slant  
[www.exampler.com](http://www.exampler.com), [www.testing.com/cgi-bin/blog](http://www.testing.com/cgi-bin/blog)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2006, 7:59am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rdoc-seg-fault/93890/5 "2006-04-27T07:59:58Z")

</div>

On Apr 26, 2006, at 1:57 PM, Brian M. wrote:

> For what it’s worth, I’ve had trouble all day when rubygems runs  
> rdoc on gems. I blew away 1.8.4 and reverted to the 1.8.2 that  
> comes with OSX Tiger.

This is a bug in ruby where VALUEs collide exacerbated by GCC4 on  
PPC. We’ve partially fixed it on the 1.8 branch in CVS, but it is  
still there (just a lot less–feels like 60-80% less). I’ve found  
that rdoc seems to push it more. It probably generates a lot more  
symbols than most programs. I’ve found that if you keep running the  
rdoc command, it’ll eventually generate everything and be fine. Not  
good, I know, but better than rolling back to stock 1.8.2 in many  
situations.
