ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:99088] [Ruby master Bug#17020] ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
@ 2020-07-08 13:06 jean.boussier
  2020-07-09  6:00 ` [ruby-core:99093] " nobu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jean.boussier @ 2020-07-08 13:06 UTC (permalink / raw)
  To: ruby-core

Issue #17020 has been reported by byroot (Jean Boussier).

----------------------------------------
Bug #17020: ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
https://bugs.ruby-lang.org/issues/17020

* Author: byroot (Jean Boussier)
* Status: Open
* Priority: Normal
* 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-19 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [ruby-core:99641] " jean.boussier
2020-08-19 15:19 ` [ruby-core:99642] " tenderlove

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).