CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=0, private, must-revalidate
content-type: text/html; charset=utf-8
etag: W/"c7b2fcb9c825e281c3a2068fb6dcb08a"
nel: {"report_to":"heroku-nel","response_headers":["Via"],"max_age":3600,"success_fraction":0.01,"failure_fraction":0.1}
referrer-policy: strict-origin-when-cross-origin
report-to: {"group":"heroku-nel","endpoints":[{"url":"https://nel.heroku.com/reports?s=1RAQOMaKDcB4f6%2BvtrZusuiGBSrgBU9mJK63PSeomsE%3D\u0026sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d\u0026ts=1753285801"}],"max_age":3600}
reporting-endpoints: heroku-nel="https://nel.heroku.com/reports?s=1RAQOMaKDcB4f6%2BvtrZusuiGBSrgBU9mJK63PSeomsE%3D&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&ts=1753285801"
server: Heroku
set-cookie: _redmine_session=bktCOHdyNW1zUFdMQTlUbGJpZXd4bk9jb001MkkzMTlGMWRRYlFSK0g5TmNLNGpjb3QrS2ZGeFI1YldCNGZjRGJDZFRRckpGY2ZGL2U3RjJlUEdERjdUMGNGTW8wRk9aVmtBSTRXd0lPcUJOeFFOVU96NXZTb0R5NmN5SXA5N1U4UEFJd1B1aUdvQVBZd2NvZHRXa1FOenVjWGc0cTlrUVk0S0sxbFMwSnQ2Mkh0T0w5ZTRqLzBKR0Zab1lBeUdiLS1xMDhVU3Rmbzd0ZGJkU1pLdTlkNmVnPT0%3D--8b283fce2cdaa1fc2781dc1fe3491f3aec383205; path=/; secure; httponly; samesite=lax
strict-transport-security: max-age=63072000; includeSubDomains
vary: Accept
via: 2.0 heroku-router
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: 8a8e0cf2-f1cb-6c39-9482-d21cd23a5756
x-runtime: 0.214039
x-xss-protection: 1; mode=block
content-length: 31623
date: Wed, 23 Jul 2025 15:50:02 GMT
Bug #21320: Namespaces leak with constant lookup - Ruby - Ruby Issue Tracking System
Project
General
Profile
Tags
Custom queries
Actions
Bug #21320
openNamespaces leak with constant lookup
Added by fxn (Xavier Noria) 2 months ago. Updated about 2 months ago.
Description
The following program
X = :top
class C
X = :super
end
class D < C
p X
end
prints :super
normally, and :top
if running under a namespace.
Updated by fxn (Xavier Noria) 2 months ago
This is probably a consequence of https://bugs.ruby-lang.org/issues/21318.
Updated by Eregon (Benoit Daloze) 2 months ago
Full repro:
# Copy the description program to program.rb, e.g. $ xsel -b > program.rb
$ RUBY_NAMESPACE=1 ruby -ve 'puts "in main"; require "./program"; puts "in namespace"; Namespace.new.require "./program"'
ruby 3.5.0dev (2025-05-10T07:50:29Z namespace-on-read-.. bd4f57f96b) +PRISM [x86_64-linux]
ruby: warning: Namespace is experimental, and the behavior may change in the future!
See doc/namespace.md for know issues, etc.
in main
:super
in namespace
:top
Actions
Like0
Like0Like0Like0
Powered by Redmine © 2006-2025 Jean-Philippe Lang
Loading...