From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 7769B1F4C1 for ; Mon, 21 Oct 2019 07:05:22 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E44BD12097C; Mon, 21 Oct 2019 16:05:12 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 4A9C9120978 for ; Mon, 21 Oct 2019 16:05:11 +0900 (JST) Received: by filter0038p3iad2.sendgrid.net with SMTP id filter0038p3iad2-2871-5DAD58AA-2D 2019-10-21 07:05:14.262210481 +0000 UTC m=+280992.012631811 Received: from herokuapp.com (unknown [54.159.77.90]) by ismtpd0050p1iad2.sendgrid.net (SG) with ESMTP id nVg1F1AOR6eoKGkyHVR0dw for ; Mon, 21 Oct 2019 07:05:14.230 +0000 (UTC) Date: Mon, 21 Oct 2019 07:05:14 +0000 (UTC) From: ko1@atdot.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71041 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16268 X-Redmine-Issue-Author: sam.saffron X-Redmine-Sender: ko1 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?fVTMYOBjtdvXNcWwrscBhLsHItUXVK5L4mtnq0mdcRfaWSu=2FTzJCEEisot5v5b?= =?us-ascii?Q?KU4OqVDP9YjWMo9l9CMT14G6UGjGgBkw4SG3baN?= =?us-ascii?Q?vaOIBo=2FpJhiWupy=2FuBcGgxdg0hAmvF82+vodm31?= =?us-ascii?Q?77z8Rw9+lzIeLk0rQ49CxyrSw6UlOsJfHY1IgGO?= =?us-ascii?Q?B9sREd59RLmli?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95450 Subject: [ruby-core:95450] [Ruby master Bug#16268] Consistent segfault with ObjectSpace.count_imemo_objects X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16268 has been updated by ko1 (Koichi Sasada). 74b19e330adbdae2d8e53b58f1a2a7b725e69c8d is needed for 2.6. ---------------------------------------- Bug #16268: Consistent segfault with ObjectSpace.count_imemo_objects https://bugs.ruby-lang.org/issues/16268#change-82200 * Author: sam.saffron (Sam Saffron) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6.5 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- 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 -- https://bugs.ruby-lang.org/