From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ezWGK9U7smr94zEAWB0awg (envelope-from ) for ; Tue, 22 Sep 2026 04:27:01 -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=BBLDxyPT; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A110D1E033; Tue, 22 Sep 2026 04:27:01 -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 B44811E033 for ; Tue, 22 Sep 2026 04:27:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF3E24B9DB52 for ; Tue, 22 Sep 2026 08:26:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF3E24B9DB52 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=BBLDxyPT Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id CA1854BA7980 for ; Tue, 22 Sep 2026 08:26:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA1854BA7980 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 CA1854BA7980 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790065593; cv=none; b=MSVmGHRqwbcL2CAA8SwPVEZudlegn0i+VbyMYYFkoGNSsJ2FqPs12sR4/5zHFdPIibOwt5MZMPOTnShSv93d584hCv3zOGsA1daizYgXHekMEeqmgatK35JK+Iriv4Ep49TEtkaLViGEyAwOw7BQxLYbhnX6jXyIV7OfjNbBt28= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790065593; c=relaxed/simple; bh=aeKrFXQvQmFnSEYnu4WEVIS7bwTlRl0w1ZiygzRrHCw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=KimRtPtoNTvImxjq3s6qCqMjG/2K742nj+aArESMvgGDXZO57c62kvV/U9o3J/Yj2jWSyZoo4sxV3npFXK+oCZz105GSdyXs7gEzZ8GMBD/NavwOzPF0BXbMWRu77Rb4qW+Z58tMnO4nvI4jQXZq2E5EgrXOkuyaxks2++DDpWk= 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=BBLDxyPT DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA1854BA7980 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790065593; 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=XA4WXdhU2RJSX/lUj7jHsKtQxH1szF4iJGkD6nHq42g=; b=BBLDxyPT3SGNIsNrGwSPVe0yvokJdW2FywKbCZM3Sugekq7dzvhN+3j9Eh0dZlPaCzC9XV 45NUSk/rPEXhkdewn3XPD8jWRN5t+HIC2WQhNrxxfxKgjYk27MybP9ZBHsGdAsscf2Y2I/ yOPsqMAYslzWBv5LqpU5WJBSpTUs7gc= 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-98-q-TAYhQ9Om6viSerz5o-mQ-1; Tue, 22 Sep 2026 04:25:26 -0400 X-MC-Unique: q-TAYhQ9Om6viSerz5o-mQ-1 X-Mimecast-MFC-AGG-ID: q-TAYhQ9Om6viSerz5o-mQ_1790065525 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-49fce60a8d4so15733405e9.3 for ; Tue, 22 Sep 2026 01:25:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790065525; x=1790670325; 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=XA4WXdhU2RJSX/lUj7jHsKtQxH1szF4iJGkD6nHq42g=; b=AJoiB3aBJu/nY2p8ri9iBCuJScKvKyZ/md6O7mQnUpVcu0Z6dI6dlSGFWgKyJFv/I4 X2f3d+M8Nkr/MQxVAZHd+TC7cThdegyrc0yYyoLlVg6glD4WCWg/JbREdjZtfJ6Ba2aw PdeQ4Unv5eUxkyD31kv6Z3c1tMQBGYzvEBxMsOTP52MrwlhBcbEeiFOLpqfIOmBKf0TX ZLWa3mixvn4ttbxy0AcQcVmgUb3sJy1xh2OY66VDN4N0jJzHtqXR67i1/sUzXpCkLiSd F5g75gDa9KTy9a6BtroJf8NwJFPbuJSaaQvbCK/tRs/y13y10q/Br0KswSZNWKjtRL/E zxSQ== X-Gm-Message-State: AFuF++nTVxeKKeJIfnKYINbhmtLTeV3a/Uy56IRB17K9vQ2lRJHK2JYh Jlc8h7KjJqAIgQcPZK0vyAN3HFSXh5CYZkK8l/r3O9dUX30I+u/chxfIbICxQclaKSjKLIgGKcv 7e43epHp9RIwYYG9p1V0u2LiGMzOohmYUr9JS0OJK+zyZz512Im5gq7akRxyo+Nt5pMWrd2M= X-Gm-Gg: AYBFou0+iQuBv5ORzdq2/e3bAgR3eQ+2pIyXhg4ptMjfnwgjDEvcsfQZvlZ0coCiFu/ nV8uf1ej3l+kJEi/A4BoTJ95FWLKiVgaCQz51LjCseDVxvsCW8DAiUzqiXARCq52PgEfB5pae/d cNOil19F152zp7G6FKcJincf60FAVqVhJRLSajPake1nqPE50vsChomEZH0u3iAtqzVb/gm3OfL VtLvF5c5fRb5cuEKQgm05wGtQpi2b30R/EAbZ6JO5FswohGEKtWDCgZxxQVaJnEzFxHJk7lzMRT M0nW7srH2Nw36uzjIIi3lGI3PpyP8I6B1L21zHQu2auecjz1f0iphEzn5RDRLvs/SArfcEw= X-Received: by 2002:a05:600d:848f:10b0:49d:827:e5b6 with SMTP id 5b1f17b1804b1-49fc5735351mr129030215e9.20.1790065525252; Tue, 22 Sep 2026 01:25:25 -0700 (PDT) X-Received: by 2002:a05:600d:848f:10b0:49d:827:e5b6 with SMTP id 5b1f17b1804b1-49fc5735351mr129029855e9.20.1790065524770; Tue, 22 Sep 2026 01:25:24 -0700 (PDT) Received: from localhost ([83.216.138.214]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fdad29ee8sm32618685e9.4.2026.09.22.01.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 01:25:24 -0700 (PDT) From: Andrew Burgess To: Rainer Orth Cc: gdb-patches@sourceware.org, Simon Marchi Subject: Re: [PATCH] Reduce gdb.base/many-headers.c iterations on Solaris [PR34555] In-Reply-To: References: <87o6dqamov.fsf@redhat.com> Date: Tue, 22 Sep 2026 09:25:23 +0100 Message-ID: <87ld8tae18.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: r-bMwtDLjErNf1AlhS5VBu_-z4njoTEnI1onELXEGe8_1790065525 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: > Hi Andrew, > >> 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. > > I'm perfectly fine with that as I'd already indicated when you first > suggested something similar: > > https://sourceware.org/pipermail/gdb-patches/2026-September/230180.html > > Thanks for following up on this: I'm currently pretty swamped... I pushed to master and gdb-18-branch. Thanks, Andrew