ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:99903] [Ruby master Bug#17146] Queue operations are allowed after it is frozen
@ 2020-09-03 22:53 eregontp
  2020-09-04  0:58 ` [ruby-core:99908] " ko1
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: eregontp @ 2020-09-03 22:53 UTC (permalink / raw)
  To: ruby-core

Issue #17146 has been reported by Eregon (Benoit Daloze).

----------------------------------------
Bug #17146: Queue operations are allowed after it is frozen
https://bugs.ruby-lang.org/issues/17146

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* ruby -v: ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
```
[1] pry(main)> q = Queue.new
=> #<Thread::Queue:0x000056263683aee8>
[2] pry(main)> q.freeze
=> #<Thread::Queue:0x000056263683aee8>
[3] pry(main)> q << 1
=> #<Thread::Queue:0x000056263683aee8>
[4] pry(main)> q.pop
=> 1
[5] pry(main)> q.frozen?
=> true
```

Found by @ko1 in https://bugs.ruby-lang.org/issues/17100#note-28

I think it's a bug, since those are clear mutations.
I guess old Thread::Queue implemented in Ruby did not have this bug.



-- 
https://bugs.ruby-lang.org/

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

end of thread, other threads:[~2023-09-27  0:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03 22:53 [ruby-core:99903] [Ruby master Bug#17146] Queue operations are allowed after it is frozen eregontp
2020-09-04  0:58 ` [ruby-core:99908] " ko1
2020-09-04  1:52 ` [ruby-core:99911] " merch-redmine
2020-09-04  3:56 ` [ruby-core:99913] " ko1
2020-09-13  9:25 ` [ruby-core:99999] " eregontp
2020-10-26 16:42 ` [ruby-core:100587] " ko1
2021-10-20 14:23 ` [ruby-core:105695] " Eregon (Benoit Daloze)
2021-10-20 14:44 ` [ruby-core:105698] " jeremyevans0 (Jeremy Evans)
2021-10-20 15:53 ` [ruby-core:105699] " Eregon (Benoit Daloze)
2021-10-20 15:56 ` [ruby-core:105700] " Eregon (Benoit Daloze)
2021-10-20 16:17 ` [ruby-core:105702] " jeremyevans0 (Jeremy Evans)
2021-10-20 17:58 ` [ruby-core:105704] " Eregon (Benoit Daloze)
2021-10-20 20:32 ` [ruby-core:105705] " ioquatix (Samuel Williams)
2023-09-14  5:37 ` [ruby-core:114739] " matz (Yukihiro Matsumoto) via ruby-core
2023-09-14 13:36 ` [ruby-core:114751] " mame (Yusuke Endoh) via ruby-core
2023-09-27  0:21 ` [ruby-core:114900] " jeremyevans0 (Jeremy Evans) via ruby-core

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