[DRE-maint] Bug#1024652: ruby3.0: Segmentation fault from irb when performing a simple multiplication

Antonio Terceiro terceiro at debian.org
Wed Dec 7 18:29:41 GMT 2022


On Wed, Dec 07, 2022 at 09:36:26AM -0600, Gunnar Wolf wrote:
> Bernhard Übelacker dijo [Wed, Dec 07, 2022 at 03:14:40PM +0100]:
> > Dear Gunnar,
> > I tried to collect some more information for the Maintainer.
> 
> Thanks!
> 
> > First I need to create a .irbrc with the USE_SINGLELINE
> > set to true, to reach any function in libedit/readline.
> > 
> > Next I tried to reach the address given in _IO_new_file_overflow,
> > but was not able to. This might be related to some EOF handling
> > or some customer buffer settings.
> 
> OK...?
> 
> > Therfore, maybe you could have a look at your .irbrc
> > if there is any setting that sounds related.
> > 
> > (And just to be on the safe side, maybe you could do a memory test
> > to exclude a hardware failure.)
> 
> OK -- I cannot say I'll do a memtest right now, as this is a
> productive machine, but will do it soon-ish ☺
> 
> I have the following in my .irbrc:
> 
>     IRB.conf[:AUTO_INDENT] = true
>     IRB.conf[:USE_READLINE] = true
>     IRB.conf[:SAVE_HISTORY] = 5000
>     IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
>     IRB.conf[:PROMPT_MODE] = :SIMPLE
> 
>     require 'irb/completion'
>     require 'irb/ext/save-history'
>     require 'pp'
> 
>     # load rubygems and wirble
>     require 'rubygems' rescue nil
>     require 'wirble'
> 
>     # load wirble
>     Wirble.init
>     Wirble.colorize

My guess is that wirble is the culprit. How was it installed? What's the
probability that it was built for a different Ruby interpreter?

(irb itself does colors nowadays so you should not need wirble.
according to rubygems.org the last release was in 2009).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221207/b625b4e6/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list