* [ruby-core:124825] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
@ 2026-02-15 4:51 s3fxn (s3 fxn) via ruby-core
2026-02-15 15:15 ` [ruby-core:124831] " bkuhlmann (Brooke Kuhlmann) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: s3fxn (s3 fxn) via ruby-core @ 2026-02-15 4:51 UTC (permalink / raw)
To: ruby-core; +Cc: s3fxn (s3 fxn)
Issue #21880 has been reported by s3fxn (s3 fxn).
----------------------------------------
Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
https://bugs.ruby-lang.org/issues/21880
* Author: s3fxn (s3 fxn)
* Status: Open
* ruby -v: 4.0
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN
----------------------------------------
here is the reproduction code.
$ ruby -v
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x86_64-linux]
$ cat pstore.rb
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
if ENV['DEBUG']
gem "pstore", "0.1.4"
else
gem "pstore"
end
end
db = PStore.new("pstore.db")
db.ultra_safe = true
db.transaction do
puts db["now"] = Time.now
end
$ ruby pstore.rb
2026-02-15 04:49:31 +0000
/home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'Ractor.make_shareable': Proc's self is not shareable: #<Proc:0x0000749f688df078 /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:673> (Ractor::IsolationError)
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'PStore#on_windows?'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:685:in 'PStore#save_data'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:575:in 'PStore#transaction'
from pstore.rb:14:in '<main>'
$ DEBUG=1 ruby pstore.rb
2026-02-15 04:49:53 +0000
--
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/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:124831] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
2026-02-15 4:51 [ruby-core:124825] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken s3fxn (s3 fxn) via ruby-core
@ 2026-02-15 15:15 ` bkuhlmann (Brooke Kuhlmann) via ruby-core
2026-02-16 4:37 ` [ruby-core:124838] " nobu (Nobuyoshi Nakada) via ruby-core
2026-02-16 4:57 ` [ruby-core:124839] " nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: bkuhlmann (Brooke Kuhlmann) via ruby-core @ 2026-02-15 15:15 UTC (permalink / raw)
To: ruby-core; +Cc: bkuhlmann (Brooke Kuhlmann)
Issue #21880 has been updated by bkuhlmann (Brooke Kuhlmann).
ℹ️ This is also documented in [Issue 22](https://github.com/ruby/pstore/issues/22).
----------------------------------------
Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
https://bugs.ruby-lang.org/issues/21880#change-116451
* Author: s3fxn (s3 fxn)
* Status: Open
* ruby -v: 4.0
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN
----------------------------------------
here is the reproduction code.
$ ruby -v
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x86_64-linux]
$ cat pstore.rb
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
if ENV['DEBUG']
gem "pstore", "0.1.4"
else
gem "pstore"
end
end
db = PStore.new("pstore.db")
db.ultra_safe = true
db.transaction do
puts db["now"] = Time.now
end
$ ruby pstore.rb
2026-02-15 04:49:31 +0000
/home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'Ractor.make_shareable': Proc's self is not shareable: #<Proc:0x0000749f688df078 /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:673> (Ractor::IsolationError)
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'PStore#on_windows?'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:685:in 'PStore#save_data'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:575:in 'PStore#transaction'
from pstore.rb:14:in '<main>'
$ DEBUG=1 ruby pstore.rb
2026-02-15 04:49:53 +0000
--
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/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:124838] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
2026-02-15 4:51 [ruby-core:124825] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken s3fxn (s3 fxn) via ruby-core
2026-02-15 15:15 ` [ruby-core:124831] " bkuhlmann (Brooke Kuhlmann) via ruby-core
@ 2026-02-16 4:37 ` nobu (Nobuyoshi Nakada) via ruby-core
2026-02-16 4:57 ` [ruby-core:124839] " nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2026-02-16 4:37 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #21880 has been updated by nobu (Nobuyoshi Nakada).
Fixed by [ruby/pstore#36](https://github.com/ruby/pstore/pull/36).
----------------------------------------
Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
https://bugs.ruby-lang.org/issues/21880#change-116459
* Author: s3fxn (s3 fxn)
* Status: Open
* ruby -v: 4.0
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN
----------------------------------------
here is the reproduction code.
```console
$ ruby -v
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x86_64-linux]
$ cat pstore.rb
```
```ruby
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
if ENV['DEBUG']
gem "pstore", "0.1.4"
else
gem "pstore"
end
end
db = PStore.new("pstore.db")
db.ultra_safe = true
db.transaction do
puts db["now"] = Time.now
end
```
```console
$ ruby pstore.rb
2026-02-15 04:49:31 +0000
/home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'Ractor.make_shareable': Proc's self is not shareable: #<Proc:0x0000749f688df078 /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:673> (Ractor::IsolationError)
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'PStore#on_windows?'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:685:in 'PStore#save_data'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:575:in 'PStore#transaction'
from pstore.rb:14:in '<main>'
$ DEBUG=1 ruby pstore.rb
2026-02-15 04:49:53 +0000
```
--
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/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:124839] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
2026-02-15 4:51 [ruby-core:124825] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken s3fxn (s3 fxn) via ruby-core
2026-02-15 15:15 ` [ruby-core:124831] " bkuhlmann (Brooke Kuhlmann) via ruby-core
2026-02-16 4:37 ` [ruby-core:124838] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2026-02-16 4:57 ` nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2026-02-16 4:57 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #21880 has been updated by nobu (Nobuyoshi Nakada).
4.0 needs to backport gems/bundled_gems, and 3.2..3.4 need lib/pstore.rb.
----------------------------------------
Bug #21880: The ultra_safe mode of pstore bundled with Ruby 4.0 is broken.
https://bugs.ruby-lang.org/issues/21880#change-116461
* Author: s3fxn (s3 fxn)
* Status: Open
* ruby -v: 4.0
* Backport: 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED
----------------------------------------
here is the reproduction code.
```console
$ ruby -v
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x86_64-linux]
$ cat pstore.rb
```
```ruby
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
if ENV['DEBUG']
gem "pstore", "0.1.4"
else
gem "pstore"
end
end
db = PStore.new("pstore.db")
db.ultra_safe = true
db.transaction do
puts db["now"] = Time.now
end
```
```console
$ ruby pstore.rb
2026-02-15 04:49:31 +0000
/home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'Ractor.make_shareable': Proc's self is not shareable: #<Proc:0x0000749f688df078 /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:673> (Ractor::IsolationError)
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:676:in 'PStore#on_windows?'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:685:in 'PStore#save_data'
from /home/s3fxn/.rubies/ruby-4.0.1/lib/ruby/gems/4.0.0/gems/pstore-0.2.0/lib/pstore.rb:575:in 'PStore#transaction'
from pstore.rb:14:in '<main>'
$ DEBUG=1 ruby pstore.rb
2026-02-15 04:49:53 +0000
```
--
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/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-16 4:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-15 4:51 [ruby-core:124825] [Ruby Bug#21880] The ultra_safe mode of pstore bundled with Ruby 4.0 is broken s3fxn (s3 fxn) via ruby-core
2026-02-15 15:15 ` [ruby-core:124831] " bkuhlmann (Brooke Kuhlmann) via ruby-core
2026-02-16 4:37 ` [ruby-core:124838] " nobu (Nobuyoshi Nakada) via ruby-core
2026-02-16 4:57 ` [ruby-core:124839] " nobu (Nobuyoshi Nakada) 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 NNTP newsgroup(s).