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-Status: No, score=-2.6 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no 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 944261F66E for ; Wed, 19 Aug 2020 15:18:38 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 46697120A55; Thu, 20 Aug 2020 00:18:06 +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 DE629120A48 for ; Thu, 20 Aug 2020 00:18:03 +0900 (JST) Received: by filterdrecv-p3las1-5785d94c6b-knd26 with SMTP id filterdrecv-p3las1-5785d94c6b-knd26-19-5F3D42C3-75 2020-08-19 15:18:27.642928155 +0000 UTC m=+514130.101882715 Received: from herokuapp.com (unknown) by ismtpd0122p1mdw1.sendgrid.net (SG) with ESMTP id 8AIe8EkBSlWyiMo3fVb_KQ for ; Wed, 19 Aug 2020 15:18:27.476 +0000 (UTC) Date: Wed, 19 Aug 2020 15:18:27 +0000 (UTC) From: jean.boussier@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75469 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17020 X-Redmine-Issue-Author: byroot X-Redmine-Issue-Assignee: byroot X-Redmine-Sender: byroot 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?AchqQMoUBMcQgz7gop0XiYUiatGIY7E61JGsTL4Fvjft1mhEXi2wS0riWNDcAs?= =?us-ascii?Q?=2FFnWT7AsWqNx6m31Mzv0lXgaI=2FJQLixu0oQ6Skf?= =?us-ascii?Q?uxhImLFDbA0LNGrJCuxsk1ZBt5BYzJDA6D7BReK?= =?us-ascii?Q?r2=2FvRM=2FKMCVWUckGq2TggNkctfOtE=2FvuX9lA0Lp?= =?us-ascii?Q?VwyGT6a09pJYfoa97=2F3c6JZZAGDU+Eb29g4OXpm?= =?us-ascii?Q?enniOqJMFLJiGQnR0=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99641 Subject: [ruby-core:99641] [Ruby master Bug#17020] ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start 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 #17020 has been updated by byroot (Jean Boussier). I can't close, but this is fixed in a74df67244199d1fd1f7a20b49dd5a096d2a13a2 ---------------------------------------- Bug #17020: ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start https://bugs.ruby-lang.org/issues/17020#change-87122 * Author: byroot (Jean Boussier) * Status: Open * Priority: Normal * Assignee: byroot (Jean Boussier) * ruby -v: ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-darwin19] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- The error is easy to reproduce: e.g. on Ruby 2.3: ``` $ ruby -robjspace -e 'ObjectSpace.trace_object_allocations_stop' -e:1:in `trace_object_allocations_stop': wrong argument type false (expected tracepoint) (TypeError) from -e:1:in `
' ``` Up to ruby 2.7.1: ``` $ ruby -robjspace -e 'ObjectSpace.trace_object_allocations_stop' Traceback (most recent call last): 1: from -e:1:in `
' -e:1:in `trace_object_allocations_stop': wrong argument type false (expected tracepoint) (TypeError) ``` Patch: https://github.com/ruby/ruby/pull/3001 -- https://bugs.ruby-lang.org/