From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2dgWHwYQsWqF8ysAWB0awg (envelope-from ) for ; Mon, 21 Sep 2026 07:07:50 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Qgw95lJ7; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 72FB81E01F; Mon, 21 Sep 2026 07:07:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4793B1E01F for ; Mon, 21 Sep 2026 07:07:49 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 334704BA23DB for ; Mon, 21 Sep 2026 11:07:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 334704BA23DB Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Qgw95lJ7 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id C12D54BA2E23 for ; Mon, 21 Sep 2026 11:06:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C12D54BA2E23 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C12D54BA2E23 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789988773; cv=none; b=WCVyptNDfeDBIAI64vkDFd9mcuHfs75n7BR0wICK3D31HwL139NgszwRfoN/TciPhHSAW8xMG7qDy42mwPfsjscOjSe75CsxfN8U0tFdQqmDzaX6FaLosi2EfVqaIBENhKczft+h+854eQyyM8GL4fwxHjqqPv6emBr0nHhxwpc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789988773; c=relaxed/simple; bh=Kzp4xpIO8QQ64XuAMM07oZmajRsvEhfV3cPMFTuHasQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wtq+nj7TyVH44GAnN8AUzTYwoSMot+c1snoMEXsmbyIhq4jQJv/Yvt0YYVh6uYhyb26QNL3KBVS3igJdyLITOPQn2gyjd4PL4enIFo6aw2nlArUgbIzsWFfhKagKTYvSUpuRZfnp07OGw9DcRszjK8DRp1NaEzr6HvrdzvnMtxM= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Qgw95lJ7 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C12D54BA2E23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789988773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K2BkSK9O3eLUTrT1+14ZsWlSxZd/a1YMZhzAHIm4Y+w=; b=Qgw95lJ7mggACWX9KVX/gzx/NqO+FQLj4tcCVai/ri9xomsUNOyJnmS5H2FPONgATlE73V nDxGe1kOrxgWTdMzOoKorEF8Q8p5H6E3pvAAOF6bZbTng+UQz6ktqzCbWQQcSdDAA+miqt icdhxgk/pUikTrx1+amdThYYthymWeA= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-376-fC_7N_9WOsSd80s7XT0kFQ-1; Mon, 21 Sep 2026 07:06:11 -0400 X-MC-Unique: fC_7N_9WOsSd80s7XT0kFQ-1 X-Mimecast-MFC-AGG-ID: fC_7N_9WOsSd80s7XT0kFQ_1789988770 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-49e635a6002so33228005e9.0 for ; Mon, 21 Sep 2026 04:06:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789988770; x=1790593570; h=content-type:mime-version:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=K2BkSK9O3eLUTrT1+14ZsWlSxZd/a1YMZhzAHIm4Y+w=; b=CI9ABjJp/HuNLVGZHyqthBOrP1Lrg3rBAtoBSdXJwbj2mPqspBkXhOP1kgKpgZquT0 uGbJ1j7XTaoTGEJPL1HsudtmLJg4srw0rD4i5okjfiVnrbWeWLQRALMP9PFYevSfiZxX WO9BQMliyA/TqBTuoWXk3fXovu0HGD1OaBOlIF752XubEGwjCrym/MVKqin3PVMK8s29 QLkW2n96T6s2JDqu2M7eb8ee7YJZ0F1BNyt1MDp7VCzxZYwOZ9AZKzCQgguAxsiylBkC GcMz4ht/7gDxSrZ/gTzMeGkXGqfwPn8fspQlYpkREVsvwDc3CmHaL6mnryX45Vzx5IpH TomA== X-Forwarded-Encrypted: i=1; AKwUvBzGIjo2GDnhTEshhUBos2dRFa81noJ2SV/mtjpURPBPm42BwcXFfpvn7lE0606S3hjsi5rkCRbTqDbT7g==@sourceware.org X-Gm-Message-State: AFuF++m0eByWnWJcSwqXulgzysU6OYr/NNSSDLT1Uv4ozmfOtQwctrTR ATjSC+avNiD+h+7NAVxcpu03Ibjwm0c9Jdg1wm5lc6i+yOkwC5svPYbMUZCz+hOnHc02O8TIACa tssTUKOCjUAUZ3FVNi0ks76VVNPE+UR67OrzjVC9//ykiWIGT4d6ir5oyCvwCIjWx281TM/c= X-Gm-Gg: AYBFou1JrKhAV2zM2qX5V9py9TTD1ez4vPhc+SMwBHnOPbwoRrhu3vAfILxmuIozVAV zvdfKnLb18dtHfd4u0H/jhheXzCEQDnCaLzVPAdBoxf3JmlwXYVMcyYP+KXuneL9iIS2+RBTqsW 8sr5Ovu1ffEDjdRnTC+xlNLRkMFEJyZ/B5L/FxVUXmhbfZwPSoaSKqnt9mkFvkHj8zcHZl5S2l8 2xd7+KQPvPdRGLAzkTKnHCuVpxhc/tX0NL4Sv2ZFBFJ/usIdm8y0QOpC2EXWZRcpDA4znklkGJ6 zlJMxTySPrkTa8W+056nlsyRtEQLp799vp46aAZfDgk1t8DW8EtkUKsyKzPzMJ0rWah1saM= X-Received: by 2002:a05:600c:34d0:b0:49c:eb16:9fd with SMTP id 5b1f17b1804b1-49fc5671650mr142551125e9.3.1789988770224; Mon, 21 Sep 2026 04:06:10 -0700 (PDT) X-Received: by 2002:a05:600c:34d0:b0:49c:eb16:9fd with SMTP id 5b1f17b1804b1-49fc5671650mr142550715e9.3.1789988769841; Mon, 21 Sep 2026 04:06:09 -0700 (PDT) Received: from localhost ([83.216.138.214]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fcd068059sm232269765e9.5.2026.09.21.04.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2026 04:06:09 -0700 (PDT) From: Andrew Burgess To: Rainer Orth , gdb-patches@sourceware.org Cc: Simon Marchi Subject: Re: [PATCH] Reduce gdb.base/many-headers.c iterations on Solaris [PR34555] In-Reply-To: References: Date: Mon, 21 Sep 2026 12:06:08 +0100 Message-ID: <87o6dqamov.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: JZ--Z5RJwStk5TAPSoBc2cBPFJ-rYcP9eJ_RIwlbmMo_1789988770 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Rainer Orth writes: > As detailed in PR corefiles/34555, when reading the core file in the > gdb.base/many-headers.exp test, gdb consumes excessive amounts of memory > on Solaris. If left unchecked, e.g. with ulimit -Sv 8388608, the test > will consume all available swap space. Since Solaris doesn't do lazy > allocation, this will cause the system to become unusably slow. > > To avoid this, this patch reduces the iteration count by a factor of 100. > > Tested on sparcv9-sun-solaris2.11, x86_64-pc-solaris2.11, and > x86_64-pc-linux-gnu. > > Ok for trunk and the gdb-18 branch? > > > AFAICT, the issue is purely in gdb's Solaris corefile reader, which > seems to need a complete rewrite rather than a couple of bugfixes. Hi Rainer, How would you feel about the patch below being pushed? This skips the gdb.base/many-headers.exp test on Solaris. This should prevent the memory exhaustion issues you are hitting, while not changing the underlying purpose of the test. Thanks, Andrew ~~~ commit acf2c031172b792037874f2a985a6db931c083d8 Author: Andrew Burgess Date: Mon Sep 21 11:48:00 2026 +0100 gdb/testsuite: skip gdb.base/many-headers.exp on Solaris Bug PR gdb/34555 reports that the gdb.base/many-headers.exp test script can trigger memory exhaustion issues on Solaris. This makes running the testsuite harder. Skip the test on Solaris targets. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34555 diff --git a/gdb/testsuite/gdb.base/many-headers.exp b/gdb/testsuite/gdb.base/many-headers.exp index 049c601cf67..b70177da22a 100644 --- a/gdb/testsuite/gdb.base/many-headers.exp +++ b/gdb/testsuite/gdb.base/many-headers.exp @@ -24,6 +24,21 @@ if { [target_info gdb_protocol] != "" } { return } +if { [istarget "*-*-solaris*"] } { + # This quote is taken from PR gdb/34555: + # + # When running the gdb.base/many-headers.exp test on Solaris, + # gdb consumes excessive amounts of memory. Because Solaris + # doesn't use lazy allocation, this eventually consumes all + # swap, slows the machine to a crawl, and often requires a + # reboot. + # + # To avoid this, and make running the testsuite easier, let's skip + # this test for now. + untested "test triggers memory exhaustion (PR gdb/34555)" + return +} + standard_testfile if {[build_executable "failed to prepare" $testfile $srcfile debug]} {