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,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (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 5C1051F44D for ; Wed, 24 Apr 2024 14:07:39 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=T3mLSj8L; 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=Uxh9RKS3; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 973B4844EA; Wed, 24 Apr 2024 14:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1713967649; bh=YkImkgukDxurd7MaMs8K8+xxMVPLueokUbhARvzizVg=; 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=T3mLSj8LIyJ3TE6RUSM4yTeGG0sZD8So8n3YowsO282YAhe2SfB61w7pZBaYk9a3o UGyXAObdQno6y7nbqGa9WrcxW7emPWYxP1e9UOFR55DFxd+toPAA97JgvxXGAqIgSy sHIN/4VPihCi+KeNMSV1vnVnGm6+mLovA9S5XNT8= Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 32C8A8449D for ; Wed, 24 Apr 2024 14:07:25 +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=Uxh9RKS3; dkim-atps=neutral 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=j9MVoR06H15cZG9tQA8/klSRP6w7PHARGENk0pf6lt4=; b=Uxh9RKS3sATWYDdxqGiU1CCylU5p+Z+0wRXkqbk8WBLOI0ydB3stFayuhx+IbTecl7n/ HSdNBw8sM7nRYJ8QiaOky8UZ98mM3uOM2bnp+veibFXhLSlmn3bOe9oiVVYZJXpUPB43Q3 4ujj84qtUBoOyxGd5usrBhzy51aCBif/LnuqMTqs/wOLiPaNJdGaE0SnPRbhvaPIW0sUAa dqvtMZTPCUpuna9IpMF5wuPHpePOkQmvSFasVD9B2T9mq+1JDQH7QTbWgEorbJ09zagqBL Horb6JD8WTfoLqfW8DS0KRu75DA5QOOEWp679Edh676C7P4vme1Raf9bey50narQ== Received: by recvd-6b888cd74b-h4bgf with SMTP id recvd-6b888cd74b-h4bgf-1-6629121C-7 2024-04-24 14:07:24.26355991 +0000 UTC m=+1008466.648537412 Received: from herokuapp.com (unknown) by geopod-ismtpd-4 (SG) with ESMTP id 8RVpud3eSPyo1xuMSwJKnQ for ; Wed, 24 Apr 2024 14:07:24.258 +0000 (UTC) Date: Wed, 24 Apr 2024 14:07:24 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20452 X-Redmine-Issue-Author: Earlopain X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu 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: 94281 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUdNugPX6smpvpKTxfQupTduFogd12Z?= =?us-ascii?Q?vFTjrdl=2FesiZ4ADf5fOs39bS5JY9Hah2vTcY51O?= =?us-ascii?Q?gwLzrE56S1PB5wY6OavXemCVuhZnlJI8LL0mSwT?= =?us-ascii?Q?85Fl6AlK8nxQqSCOqc04Xb=2F7Es1uQ49QqXKXsZ=2F?= =?us-ascii?Q?h4pfFK10oUkoknfDufnhFvGQ7g=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: OI6ID66IAPEM2A2GTWFBDEJNIOVX5XL4 X-Message-ID-Hash: OI6ID66IAPEM2A2GTWFBDEJNIOVX5XL4 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.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:117685] [Ruby master Bug#20452] Ruby 3.3 on Alpine Linux results in a relatively shallow SystemStackError exception List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20452 has been updated by nobu (Nobuyoshi Nakada). Does `configure` with `ac_cv_func_pthread_get_stackaddr_np=no` change something? ---------------------------------------- Bug #20452: Ruby 3.3 on Alpine Linux results in a relatively shallow SystemStackError exception https://bugs.ruby-lang.org/issues/20452#change-108094 * Author: Earlopain (A S) * Status: Open * ruby -v: 3.3.1 * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- This is a redo of https://bugs.ruby-lang.org/issues/14387, reported against a non-eol version. The same issue still applies on recent rubies, though I personally only have tested 3.3 and 3.2: ```rb n = 100000 res = {} 1.upto(n).to_a.inject(res) do |r, i| r[i] = {} end def f(x) x.each_value { |v| f(v) } end f(res) ``` The patch from https://bugs.ruby-lang.org/issues/14387#note-13 still works, though as per https://bugs.ruby-lang.org/issues/14387#note-16 it can't be accepted as is. With the patch applied: ``` (irb):8:in `block in f': stack level too deep (SystemStackError) from (irb):8:in `each_value' from (irb):8:in `f' from (irb):8:in `block in f' from (irb):8:in `each_value' from (irb):8:in `f' from (irb):8:in `block in f' from (irb):8:in `each_value' from (irb):8:in `f' ... 11549 levels... from /usr/local/lib/ruby/gems/3.3.0/gems/irb-1.11.0/exe/irb:9:in `' from /usr/local/bin/irb:25:in `load' from /usr/local/bin/irb:25:in `
' ``` Without the patch: ``` (irb):8:in `each_value': stack level too deep (SystemStackError) from (irb):8:in `f' from (irb):8:in `block in f' from (irb):8:in `each_value' from (irb):8:in `f' from (irb):8:in `block in f' from (irb):8:in `each_value' from (irb):8:in `f' from (irb):8:in `block in f' ... 286 levels... from /usr/local/lib/ruby/gems/3.3.0/gems/irb-1.11.0/exe/irb:9:in `' from /usr/local/bin/irb:25:in `load' from /usr/local/bin/irb:25:in `
' ``` To reproduce, I have removed lines 102-105 from https://github.com/docker-library/ruby/blob/f5753434bb23041dd9913bb7b650e7be735e03c0/3.3/alpine3.19/Dockerfile. Check out the previous ticket for more information, there are a few conversations about possible solutions. -- 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/postorius/lists/ruby-core.ml.ruby-lang.org/