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: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2DAF21F4C1 for ; Tue, 29 Nov 2022 06:11:58 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="RBFSOslp"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id B2B5D7E7CB; Tue, 29 Nov 2022 06:11:48 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=RBFSOslp; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 231D37E7B6 for ; Tue, 29 Nov 2022 06:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc; s=s1; bh=ZBUTOOe7s8mlodqB7aLHp+qAB+VrdsqCBa4h66Vd+wA=; b=RBFSOslp1fBAat6sq/ofP2+OcfIK17gvy+692iJgIvC2SOIH4UaseJfBi/dc3mW/339M HfMIpKFb6DFRHxJ/WeXPMKCuCrzG+1rPU82En2q85m95q2FOEUZ2unqLXqLjfLoOFWdSQY sqCGT8/v9ZB9uQEY/HeQdKaY/iaP3BSt8/EwahfTGs6b4Y26NcaJwgbEQyqEpTZJs3/RiL sCREex/ewvPOkfEzY7BHCaMCYSiGhZ9s5NcaqUlZCikNrCgcU07p6gaxsFS4cZmnSD7ar5 04d+GZH+QoGFWQM4Qw9jxIMyU/gcr0yf8qv3HJNnYXMC5yLP1Rs9OJVy/1B6tmbg== Received: by filterdrecv-6c4ccfbdd8-2bh97 with SMTP id filterdrecv-6c4ccfbdd8-2bh97-1-6385A29D-2A 2022-11-29 06:11:42.003692037 +0000 UTC m=+975969.470856664 Received: from herokuapp.com (unknown) by geopod-ismtpd-2-0 (SG) with ESMTP id pGdIaNvUS4OCUeHLBl9ZtA for ; Tue, 29 Nov 2022 06:11:41.879 +0000 (UTC) Date: Tue, 29 Nov 2022 06:11:42 +0000 (UTC) From: "hurricup (Alexandr Evstigneev)" Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 19003 X-Redmine-Issue-Author: hurricup X-Redmine-Sender: hurricup 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-Redmine-MailingListIntegration-Message-Ids: 87397 X-SG-EID: =?us-ascii?Q?Xe4OlC5iTPGQ3JO8TtbBNI4X+ejgyt+mBx82501ahkCIW6znsBrMHCknvRNNbb?= =?us-ascii?Q?U74zkOQKLjmUraSJDAq4z2HHaFrHQHLUiH=2FkyHm?= =?us-ascii?Q?fFtFLiVKk+JOch3mXhqfcOa4ykojCr6jEvQzMjl?= =?us-ascii?Q?ZP5T9Ky5fLt9fd8DtvtTblX3jQVJDK6JjffvZvf?= =?us-ascii?Q?WM8QK3hw=2F=2FeMmqzL5jJFFIwJ7s5jtRLg8WM=2FLM=2F?= =?us-ascii?Q?zlUI9ypx5S7JsEOP7LoPtTlMN2IuVy=2FJMVvBZWu?= =?us-ascii?Q?xLJhynDGRxnnRPJDU15uqpmLp2HHm9oBS9=2FI9s+?= =?us-ascii?Q?lf8=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: ERE6LI5LZJX3ENZ3WYMCXNLSOLUVUSAB X-Message-ID-Hash: ERE6LI5LZJX3ENZ3WYMCXNLSOLUVUSAB X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:111047] [Ruby master Bug#19003] TracePoint behavior inconsistency in 3.2.0-preview2 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #19003 has been updated by hurricup (Alexandr Evstigneev). This stays the same in the `preview3`. Are there any chances this will change until release? Current behavior reduces usefulness and complicates usage of local tracepoints, because I can't just set smarter TP, but also I need to think about what fires when and in which cases we have chained events handling. This is really frustrating. ---------------------------------------- Bug #19003: TracePoint behavior inconsistency in 3.2.0-preview2 https://bugs.ruby-lang.org/issues/19003#change-100308 * Author: hurricup (Alexandr Evstigneev) * Status: Open * Priority: Normal * ruby -v: ruby 3.2.0preview2 (2022-09-09 master 35cfc9a3bb) [x86_64-linux] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- This is kind of continuation of my previous report about global/local TP processing (#18730). Sample script: ```rb def foo return 1 end puts RubyVM::InstructionSequence.of(method :foo).disasm def step_over TracePoint.new(:line, :return, :b_return) do |tp| puts "Step over hits by #{tp.event} at #{tp.lineno}" step_over tp.disable end.enable(target: RubyVM::InstructionSequence.of(method :foo), target_thread: Thread.current) end TracePoint.new(:line, :return, :b_return) do |tp| if tp.lineno == 2 puts "Step into hits by #{tp.event} at #{tp.lineno}" step_over tp.disable end end.enable(target_thread: Thread.current) a = foo ``` In ruby 3.1.2 we have expected behavior. Output: ``` == disasm: # (catch: FALSE) 0000 putobject_INT2FIX_1_ ( 2)[LiCa] 0001 leave ( 3)[Re] Step into hits by line at 2 Step over hits by return at 3 ``` In ruby 3.2.0-preview2 - not so much. Output: ``` == disasm: # (catch: false) 0000 putobject_INT2FIX_1_ ( 2)[LiCa] 0001 leave ( 3)[Re] Step into hits by line at 2 Step over hits by line at 2 Step over hits by return at 3 ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/