From: jean.boussier@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:99641] [Ruby master Bug#17020] ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
Date: Wed, 19 Aug 2020 15:18:27 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-87122.20200819151826.7941@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17020.20200708130656.7941@ruby-lang.org
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 `<main>'
```
Up to ruby 2.7.1:
```
$ ruby -robjspace -e 'ObjectSpace.trace_object_allocations_stop'
Traceback (most recent call last):
1: from -e:1:in `<main>'
-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/
next prev parent reply other threads:[~2020-08-19 15:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 13:06 [ruby-core:99088] [Ruby master Bug#17020] ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start jean.boussier
2020-07-09 6:00 ` [ruby-core:99093] " nobu
2020-07-09 8:11 ` [ruby-core:99096] " jean.boussier
2020-08-04 8:24 ` [ruby-core:99473] " jean.boussier
2020-08-19 15:18 ` jean.boussier [this message]
2020-08-19 15:19 ` [ruby-core:99642] " tenderlove
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-87122.20200819151826.7941@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).