Project

General

Profile

Bug #16268

Consistent segfault with ObjectSpace.count_imemo_objects

Added by sam.saffron (Sam Saffron) 27 days ago. Updated 25 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.6.5
[ruby-core:95449]

Description

On 2.6.5:

irb
require 'objspace'
ObjectSpace.count_imemo_objects

Segfaults with:

/usr/local/lib/ruby/2.6.0/irb/inspector.rb:109: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0023 p:---- s:0100 e:000099 CFUNC  :inspect
c:0022 p:---- s:0097 e:000096 CFUNC  :inspect
c:0021 p:0006 s:0093 e:000092 BLOCK  /usr/local/lib/ruby/2.6.0/irb/inspector.rb:109
c:0020 p:0008 s:0089 e:000088 METHOD /usr/local/lib/ruby/2.6.0/irb/inspector.rb:102
c:0019 p:0009 s:0084 e:000083 METHOD /usr/local/lib/ruby/2.6.0/irb/context.rb:389
c:0018 p:0013 s:0080 e:000077 METHOD /usr/local/lib/ruby/2.6.0/irb.rb:685
c:0017 p:0033 s:0074 e:000073 BLOCK  /usr/local/lib/ruby/2.6.0/irb.rb:494
c:0016 p:0025 s:0071 e:000070 METHOD /usr/local/lib/ruby/2.6.0/irb.rb:647
c:0015 p:0008 s:0065 e:000064 BLOCK  /usr/local/lib/ruby/2.6.0/irb.rb:490
c:0014 p:0100 s:0060 e:000059 BLOCK  /usr/local/lib/ruby/2.6.0/irb/ruby-lex.rb:246 [FINISH]
c:0013 p:---- s:0056 e:000055 CFUNC  :loop
c:0012 p:0006 s:0052 e:000051 BLOCK  /usr/local/lib/ruby/2.6.0/irb/ruby-lex.rb:232 [FINISH]
c:0011 p:---- s:0049 e:000048 CFUNC  :catch
c:0010 p:0012 s:0044 e:000043 METHOD /usr/local/lib/ruby/2.6.0/irb/ruby-lex.rb:231
c:0009 p:0034 s:0040 E:0024a8 METHOD /usr/local/lib/ruby/2.6.0/irb.rb:489
c:0008 p:0005 s:0035 e:000034 BLOCK  /usr/local/lib/ruby/2.6.0/irb.rb:428 [FINISH]
c:0007 p:---- s:0032 e:000031 CFUNC  :catch
c:0006 p:0064 s:0027 E:002448 METHOD /usr/local/lib/ruby/2.6.0/irb.rb:427
c:0005 p:0102 s:0022 e:000021 METHOD /usr/local/lib/ruby/2.6.0/irb.rb:383
c:0004 p:0019 s:0016 e:000015 TOP    /usr/local/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC  :load
c:0002 p:0109 s:0008 E:001200 EVAL   /usr/local/bin/irb:23 [FINISH]
c:0001 p:0000 s:0003 E:0013f0 (none) [FINISH]


Works fine in Ruby master

History

Updated by ko1 (Koichi Sasada) 27 days ago

74b19e330adbdae2d8e53b58f1a2a7b725e69c8d is needed for 2.6.

#2

Updated by nagachika (Tomoyuki Chikanaga) 25 days ago

  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN to 2.5: UNKNOWN, 2.6: REQUIRED
#3

Updated by nagachika (Tomoyuki Chikanaga) 25 days ago

  • Status changed from Open to Closed

Also available in: Atom PDF