Bug #6232

Ruby : Segmentation fault on Readline.refresh_line after screen resize.

Added by Ruby Submit about 2 years ago. Updated about 2 years ago.

[ruby-core:43957]
Status:Assigned
Priority:Normal
Assignee:Kouji Takao
Category:-
Target version:-
ruby -v:ruby 1.9.2p290 Backport:

Description

Repro

require ‘readline’

Readline.setscreensize(40, 80)
Readline.refresh_line

buf = Readline.readline

./testreadline.rb
./test
readline.rb:10: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18) [i686-linux]

-- control frame ----------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :refreshline
c:0003 p:0047 s:0007 b:0007 l:0000c4 d:001850 EVAL ./test
readline.rb:10
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH

c:0001 p:0000 s:0002 b:0002 l:0000c4 d:0000c4 TOP

-- Ruby level backtrace information ----------------------------------------
./testreadline.rb:10:in <main>'
./test_readline.rb:10:in
refresh
line'

-- C level backtrace information -------------------------------------------
/testing/bin/ruby(rbvmbugreport+0xa5) [0x8161a65]
/testing/bin/ruby() [0x81a0ae9]
/testing/bin/ruby(rbbug+0x28) [0x81a0b98]
/testing/bin/ruby() [0x80f39d8]
[0x4b1410]
/lib/libreadline.so.5(
rloutputcharacterfunction+0x29) [0xb557b9]
/lib/libncurses.so.5(tputs+0xe1) [0xf33191]
/lib/libreadline.so.5(
rlcleartoeol+0x3b) [0xb4d8bb]
/lib/libreadline.so.5(rl
refreshline+0x43) [0xb57153]
/testing/lib/ruby/site
ruby/1.9.1/i686-linux/readline.so(+0x2b52) [0x54db52]
/testing/bin/ruby() [0x8152158]
/testing/bin/ruby() [0x81544d8]
/testing/bin/ruby() [0x815812e]
/testing/bin/ruby(rbiseqevalmain+0x1ce) [0x815850e]
/testing/bin/ruby() [0x805e4f2]
/testing/bin/ruby(ruby
runnode+0x32) [0x805fd12]
/testing/bin/ruby(main+0x5a) [0x805d72a]
/lib/tls/i686/cmov/libc.so.6(
libcstart_main+0xe6) [0x126bd6]
/testing/bin/ruby() [0x805d631]

History

#1 Updated by Yusuke Endoh about 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to Kouji Takao

Thank you for your report!
I could reproduce.
I assign this to the maintainer of readline.

Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF