From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5E7A01F56A for ; Sat, 10 May 2025 11:07:29 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=bIDAj1Ed; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=FkRaMhe/; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1746875216; bh=513HlSgvtehsxT23/eyuCYx/3Zh97EPwQXweAuRyvyg=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=bIDAj1Ed8K7Y0wgOJXrOxnm4o/BF1qK8/DQ1b9aK47aHji9BGlLiA8jIRJSxbYyed slBBk1iMofTaj6x46t35fuAdL3Fzl9Kmo5CJqirFtoM60tOzqOhlzcmCXbVSLTIBrD MtmSe6TNLtJ4RsS4FIbewstlMZZ8roZwS9ToYAlk= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 8162E474BA for ; Sat, 10 May 2025 11:06:56 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=FkRaMhe/; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 7CE8B467FE for ; Sat, 10 May 2025 11:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=WQUCE6hpTI9e/q1pz4f0GAta+az5juzLzzeHNwxqgx8=; b=FkRaMhe/DBJ8mjSfL7Q8hsx+Uur5QZ9Q5C/q1+rHifILUqR112XUP+k+RJKgv6u7q0yA MsBc+05orLPPZ1j++fhXnrBUs4yx75JIfyzF+bTb1IkmfkWHI3xN2C1B9VsnBmPw/MkbMi xWNxzpDw7HNS19LlkXwX/Fwp34lbK0ZO8byDChN/3zqoGaBynoeoLnBsgtnn0l/Ot87DAq pZDh+W6m5stALGmSpdc0l1shjcZbkHWFLVdgM9XGkXd5BA1/CQeQT4AE/TbMO1ZUy5kaTS e/Mri3hL2/fEu5BHv8C4X3+kWxxN3AnqvVSevyXS8UCFm9j1GLtU2AwZy6RyYumQ== Received: by recvd-545d4d4647-j8xnv with SMTP id recvd-545d4d4647-j8xnv-1-681F334A-2 2025-05-10 11:06:50.290785445 +0000 UTC m=+2725097.669834421 Received: from herokuapp.com (unknown) by geopod-ismtpd-6 (SG) with ESMTP id C-jEtArUR9SJmCMVvx6F0A for ; Sat, 10 May 2025 11:06:50.249 +0000 (UTC) Date: Sat, 10 May 2025 11:06:50 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21318 X-Redmine-Issue-Author: fxn X-Redmine-Issue-Priority: Normal X-Redmine-Sender: Eregon X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 98736 X-SG-EID: =?us-ascii?Q?u001=2EByjZWvxTCjdoV8K03xEuhE7KqN4thWULFLM7+oH78KY30oYB3qFthsDpL?= =?us-ascii?Q?4w4cbYa3ttBh8bAHPOnE=2FkzPba67JNu7Lnrked2?= =?us-ascii?Q?O7K9VQ=2FJax07m=2FJUTCDl3iOszgztbcExHiMXT+P?= =?us-ascii?Q?WtB6RFVR1sWZriiXnBp+YquyujhjRv+Kv1sU7d9?= =?us-ascii?Q?KfjDaoV0UBM+NiEIYz8cGwIZu0+BN8+5Iz8apKq?= =?us-ascii?Q?Kcfsq6OIfmUFINnWtrnJvhzoaQJot96IolWrQHl?= =?us-ascii?Q?fXovAE+TBGvSC+3v6EN1pFfWMw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 44WOWPQZ4URJKEAN7ZYDHKQS3QWPSOAL X-Message-ID-Hash: 44WOWPQZ4URJKEAN7ZYDHKQS3QWPSOAL X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:121980] [Ruby Bug#21318] Namespaces leak with Module.nesting List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "Eregon (Benoit Daloze) via ruby-core" Cc: "Eregon (Benoit Daloze)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21318 has been updated by Eregon (Benoit Daloze). Complete reproducer: ``` $ RUBY_NAMESPACE=1 ruby -ve 'p Module.nesting; ns = Namespace.new; File.write "ns.rb", "p Module.nesting"; ns.require "./ns"' 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. [] [#] ``` ---------------------------------------- Bug #21318: Namespaces leak with Module.nesting https://bugs.ruby-lang.org/issues/21318#change-113097 * Author: fxn (Xavier Noria) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Namespaces are not transparent for this program: ```ruby Module.nesting ``` The nesting is empty or not depending on whether it is being executed under a namespace. -- 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/