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):


> $ ~/writing/BMSFT/Book 957 $ sudo gem install zentest
> Password:
> Attempting local installation of 'zentest'
> Local gem file not found: zentest*.gem
> Attempting remote installation of 'zentest'
> Updating Gem source index for: http://gems.rubyforge.org
> Successfully installed ZenTest-3.2.0
> Installing RDoc documentation for ZenTest-3.2.0...
> /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:539: [BUG]  
> Segmentation fault
> 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




-----
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.testing.com/cgi-bin/blog