Forum: Ruby Ruby 1.8.4 RDoc Seg fault

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 TRANS (Guest)
on 2006-04-13 01:47
(Received via mailing list)
Got this today:

  with_reader.rb: /usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:384:
[BUG] Segmentation fault

T.
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2006-04-13 04:25
(Received via mailing list)
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?
6b27295fd2c845e67a1df9878356bd11?d=identicon&s=25 Brian Marick (Guest)
on 2006-04-26 20:05
(Received via mailing list)
On Apr 12, 2006, at 9:24 PM, Ryan Davis 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 Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.testing.com/cgi-bin/blog
6b27295fd2c845e67a1df9878356bd11?d=identicon&s=25 Brian Marick (Guest)
on 2006-04-26 22:59
(Received via mailing list)
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 Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.testing.com/cgi-bin/blog
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2006-04-27 07:59
(Received via mailing list)
On Apr 26, 2006, at 1:57 PM, Brian Marick 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.
This topic is locked and can not be replied to.