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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9D3B81F405 for ; Thu, 25 Jan 2024 00:18:37 +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=RoYsHrIS; 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=i7G/KblO; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 9F90E81F2F; Thu, 25 Jan 2024 00:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1706141909; bh=bkGW7uSFjlotK9UW9kEmNRlnPSpMWDXLnJl91LkNcSM=; 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=RoYsHrIS6xqWelbg9/ybcY2xWYGARogncLKmhS9/PUdwXR8k9SfHyt9RfnV9ar0fk q182MFYbBfhI+HRGLEb4RGmCYqHBG032g8lF2Lf9xi4kJIaPNOGgJbkw4AwjvFDl3x S4GMETOcgl5Ud6pArqPFY+HU/WghLo60e2o97E14= Received: from wrqvtvvn.outbound-mail.sendgrid.net (wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id CC2BC81F0A for ; Thu, 25 Jan 2024 00:18:26 +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=i7G/KblO; 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=iE5jIVCcH0KOd990XHgNECV+m7Z4sjLaa055/SUYRGM=; b=i7G/KblOHaz3pwbCdoVVZTbAcca5ORnA3pTjjfkh2BI0xc0ubMbOX7ANuNhMPp82kB8s mZh77t5QU2cmW2GNc+uA81Kp+k4UO4dHxRNafPZbWFC4QR/ifgmdeaB26kdDzIvdjIrUVk qWJDNRWYIriaZpzYwrpb0hvIFUbDm/v+cdL7YPeksv/PhrUfZzVfnO/3a4k08Yk9CZaeeT 7AJRi0bACKG8PyDfYYGudVTtYOS0FseNF0SzP4ryQ0OmWlWj1FzNXOrIqgHYtUK6io16WX pPJuUSjJ28P67hTW879+pCgrV90fEtR6WXGDJ5xBLjj8l21iSQWiJV4Tx/mz2VmQ== Received: by filterdrecv-58bfc74dd6-dgkl4 with SMTP id filterdrecv-58bfc74dd6-dgkl4-1-65B1A8D1-12 2024-01-25 00:18:25.592251422 +0000 UTC m=+120658.159439748 Received: from herokuapp.com (unknown) by geopod-ismtpd-15 (SG) with ESMTP id 5faUUNNuQvqXe2S6MeJNcA for ; Thu, 25 Jan 2024 00:18:25.537 +0000 (UTC) Date: Thu, 25 Jan 2024 00:18:25 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20203 X-Redmine-Issue-Author: vo.x X-Redmine-Sender: alanwu 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: 92991 X-SG-EID: =?us-ascii?Q?WlXRPNHxHGFfdcQPJIrfDE3RfQp6=2FL4iLf2SoiTsluUkfWCqAJLU=2FcY9pnqY3l?= =?us-ascii?Q?28iupwvwMlsqVgvX2LBzrpty7P4pJXqJylHWZye?= =?us-ascii?Q?iBkuzpbxHGdjI3aZO=2FKQ6yuPTjpqWFWWxKSjbAe?= =?us-ascii?Q?8xwB4TfkgoeXFRcqdnCQ4BeF1PYASlRuzmB+iJb?= =?us-ascii?Q?KJJQec=2FqrtSscg=2FKad=2FyyBSqVral7IuaBhg8sxO?= =?us-ascii?Q?ShK89fcKmVxH42rUuAre64dp+JtLq8Wv=2F6Gu8hc?= =?us-ascii?Q?0Tqt2V0xxJ=2FS2QP72dk0g=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: 5FZMUAMD2TAH7N4F4NFWNGCSKISEUOKI X-Message-ID-Hash: 5FZMUAMD2TAH7N4F4NFWNGCSKISEUOKI 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:116434] [Ruby master Bug#20203] `TestEnumerable` test failures with GCC 14 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "alanwu (Alan Wu) via ruby-core" Cc: "alanwu (Alan Wu)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20203 has been updated by alanwu (Alan Wu). The GC by default doesn't move objects so it shouldn't write to the array. I guess it's a use-after-free and double free caused by `callcc` in the test jumping into the middle of `qsort_r` like the glibc devs noticed https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=dfa3394a605c8f6f25e4f827789bc89eca1d206c The `c.call` line in the test jumps back into the middle of qsort_r (with a saved stack) after it already returned, so if the buffer is malloc'd it'd be freed already the second time around. ---------------------------------------- Bug #20203: `TestEnumerable` test failures with GCC 14 https://bugs.ruby-lang.org/issues/20203#change-106456 * Author: vo.x (Vit Ondruch) * Status: Open * Priority: Normal * ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- There is ongoing mass rebuild in Fedora and that is first time GCC 14 is used and we observe test failures in `TestEnumerable`. Here are a few examples: ~~~ [ 3000/26419] TestEnumerable#test_transient_heap_sort_bymalloc_consolidate(): unaligned fastbin chunk detected ~~~ ~~~ [ 2455/26535] TestEnumerable#test_transient_heap_sort_bycorrupted size vs. prev_size in fastbins ~~~ ~~~ [ 9716/26532] TestEnumerable#test_any_with_unused_blockdouble free or corruption (fasttop) ~~~ The full logs are accessible [here](https://koji.fedoraproject.org/koji/taskinfo?taskID=112176941). Please drill through `Descendants` and `build.log` -- 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/