Project

General

Profile

Bug #3139

Possible Bug with Irb jobs from Ruby 1.9.2-dev

Added by rodrigo3n (Rodrigo Alves Vieira) about 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]
Backport:
[ruby-core:29483]

Description

=begin
Hello everyone, I may have found a bug with Ruby 1.9.2-dev, version which I installed today.
I was playing with Irb Jobs when I ran the command 'jobs' to list them after, I got this error.

The error:

ruby-1.9.2-preview1 > Rodrigo = Class.new
=> Rodrigo
ruby-1.9.2-preview1 > irb Rodrigo
ruby-1.9.2-preview1 > jobs
=> #0->irb on main (#Thread:0x858e3ac: stop)
#1->irb#1 on Rodrigo (#Thread:0x898db74: running)
ruby-1.9.2-preview1 > NewClass = Rodrigo
=> Rodrigo
ruby-1.9.2-preview1 > irb NewClass
ruby-1.9.2-preview1 > jobs
=> #0->irb on main (#Thread:0x858e3ac: stop)
#1->irb#1 on Rodrigo (#Thread:0x898db74: stop)
#2->irb#2 on Rodrigo (#Thread:0x88170d8: running)
ruby-1.9.2-preview1 > kill Rodrigo
=> #, @signal_status=:IN_EVAL, @scanner=#RubyLex:0x8568684>
ruby-1.9.2-preview1 > => [Rodrigo]
ruby-1.9.2-preview1 > jobs
=> #0->irb on main (#Thread:0x858e3ac: running)
#2->irb#2 on Rodrigo (#Thread:0x88170d8: running)
ruby-1.9.2-preview1 > jobs[A/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/input-method.rb:115: [BUG] Segmentation fault
ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]

-- control frame ----------
c:0028 p:---- s:0094 b:0094 l:000093 d:000093 CFUNC :getbyte
c:0027 p:---- s:0092 b:0092 l:000091 d:000091 CFUNC :readline
c:0026 p:0054 s:0087 b:0087 l:000086 d:000086 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/input-method.rb:115
c:0025 p:0017 s:0083 b:0083 l:0013fc d:000082 BLOCK /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:131
c:0024 p:0039 s:0080 b:0080 l:000079 d:000079 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:263
c:0023 p:0011 s:0075 b:0075 l:0013fc d:000074 BLOCK /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:130
c:0022 p:---- s:0073 b:0073 l:000072 d:000072 FINISH
c:0021 p:---- s:0071 b:0071 l:000070 d:000070 CFUNC :call
c:0020 p:0023 s:0068 b:0068 l:000067 d:000067 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:189
c:0019 p:0019 s:0064 b:0064 l:000063 d:000063 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:103
c:0018 p:0026 s:0060 b:0060 l:000059 d:000059 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/slex.rb:205
c:0017 p:0056 s:0052 b:0052 l:000051 d:000051 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/slex.rb:75
c:0016 p:0045 s:0047 b:0047 l:000046 d:000046 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:287
c:0015 p:0017 s:0043 b:0043 l:000042 d:000042 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:263
c:0014 p:0027 s:0038 b:0038 l:000021 d:000037 BLOCK /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:234
c:0013 p:---- s:0035 b:0035 l:000034 d:000034 FINISH
c:0012 p:---- s:0033 b:0033 l:000032 d:000032 CFUNC :loop
c:0011 p:0009 s:0030 b:0030 l:000021 d:000029 BLOCK /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:230
c:0010 p:---- s:0028 b:0028 l:000027 d:000027 FINISH
c:0009 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :catch
c:0008 p:0023 s:0022 b:0022 l:000021 d:000021 METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:229
c:0007 p:0046 s:0019 b:0019 l:0013fc d:0013fc METHOD /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:145
c:0006 p:0011 s:0016 b:0016 l:000074 d:000015 BLOCK /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ext/multi-irb.rb:166
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :catch
c:0003 p:0111 s:0008 b:0008 l:000074 d:000007 BLOCK /home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ext/multi-irb.rb:165
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP


/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ext/multi-irb.rb:165:in block in irb'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ext/multi-irb.rb:165:in
catch'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ext/multi-irb.rb:166:in block (2 levels) in irb'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:145:in
eval_input'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in each_top_level_statement'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in
catch'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in block in each_top_level_statement'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in
loop'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:234:in block (2 levels) in each_top_level_statement'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:263:in
lex'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:287:in token'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/slex.rb:75:in
match'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/slex.rb:205:in match_io'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:103:in
getc'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:189:in buf_input'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/ruby-lex.rb:189:in
call'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:130:in block in eval_input'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:263:in
signal_status'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb.rb:131:in block (2 levels) in eval_input'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/input-method.rb:115:in
gets'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/input-method.rb:115:in readline'
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/irb/input-method.rb:115:in
getbyte'

kill Rodrigo-- C level backtrace information -------------------------------------------
irb(rb_vm_bugreport+0x9d) [0x815294d]
irb [0x818b649]
irb(rb_bug+0x28) [0x818b708]
irb [0x80ec228]
[0xb771b410]
irb [0x8159682]
irb(rb_io_getbyte+0x12a) [0x80808ca]
irb [0x814b61f]
irb [0x814ba55]
irb(rb_funcall+0x63) [0x814be93]
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/i686-linux/readline.so [0xb7478574]
/lib/libreadline.so.5(rl_read_key+0xf1) [0xb744dc81]
/lib/libreadline.so.5(readline_internal_char+0x6e) [0xb743981e]
/lib/libreadline.so.5(readline+0x6d) [0xb7439cdd]
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/i686-linux/readline.so [0xb7479e7d]
irb(rb_protect+0xc1) [0x805d341]
/home/rodrigo3n/.rvm/rubies/ruby-1.9.2-preview1/lib/ruby/1.9.1/i686-linux/readline.so [0xb7479ddb]
irb [0x813f71d]
irb [0x813f8dd]
irb [0x814eeec]
irb [0x81464d4]
irb [0x8149a09]
irb(rb_vm_invoke_proc+0x260) [0x814b2c0]
irb [0x80631f4]
irb [0x813f71d]
irb [0x813f8dd]
irb [0x814eeec]
irb [0x81464d4]
irb [0x8149a09]
irb [0x814aab2]
irb(rb_rescue2+0x141) [0x805d511]
irb [0x81404b4]
irb [0x813f8dd]
irb [0x814eeec]
irb [0x81464d4]
irb [0x8149a09]
irb [0x81512e3]
irb [0x8151cfb]
irb [0x813f71d]
irb [0x813f8dd]
irb [0x814eeec]
irb [0x81464d4]
irb [0x8149a09]
irb [0x81512e3]
irb [0x8151cfb]
irb [0x813f71d]
irb [0x813f8dd]
irb [0x814eeec]
irb [0x81464d4]
irb [0x8149a09]
irb(rb_iseq_eval_main+0x195) [0x8149ca5]
irb(ruby_exec_node+0x97) [0x805d767]
irb(ruby_run_node+0x46) [0x805ee76]
irb(main+0x5a) [0x805c9ea]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb7559b56]
irb [0x805c8f1]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

zsh: abort irb
~/code%

Hope I'm helping,
Rodrigo Alves Vieira.
=end


Related issues

Has duplicate Ruby master - Bug #3182: multi-irb may run parallellyClosedkeiju (Keiju Ishitsuka)04/21/2010Actions
#1

Updated by keiju (Keiju Ishitsuka) about 10 years ago

  • Status changed from Open to Closed

=begin
This issue was solved with changeset r27444.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF