From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wZNtFn7JnWrT8jEAWB0awg (envelope-from ) for ; Sun, 06 Sep 2026 16:13:50 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ypfiLZqK; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4C3571E09E; Sun, 06 Sep 2026 16:13: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=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable 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 EDD361E033 for ; Sun, 06 Sep 2026 16:13:48 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7E6AB4BC7ED0 for ; Sun, 6 Sep 2026 20:13:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E6AB4BC7ED0 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ypfiLZqK Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by sourceware.org (Postfix) with ESMTPS id 38A1B4BB8F77 for ; Sun, 6 Sep 2026 20:13:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38A1B4BB8F77 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 38A1B4BB8F77 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788725601; cv=none; b=SvKx2Mu0/IPRnS01AXLTy3vMDb+kEOJD90pRB1ZJj9sc775IJ5Ois/t6cOnVMUoGbE6X50xv4vCEGK3W4tRSEwZpbJZFVh87krkv74n6B9qmsNoHnD47/6A38KLTYBwOduifCoW0LcFElGBmF/WXqmo0bLJRSwvKEtvq+vbhEhE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788725601; c=relaxed/simple; bh=zIQRov30HA1NIP4DnOZdhFFR2OJKzM4IzATTT8RRM5U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dkX2E6N8RHjG7A9VPgim8CnIFYXT7d11RnF7rvsho/EHW6dpJBuuE1GifWH4ryZ2LU0/HiqkuunQM/8htcYKmjWBw1LotmWVS4xw9VnDZ6WqIpYbE1B2N2x9N21ERHIq7BnURz6yHcTJyfwhzdO1KR+BCpfR4ljUZXAzZuh6T28= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ypfiLZqK DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38A1B4BB8F77 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-81ecf499af9so37890567b3.1 for ; Sun, 06 Sep 2026 13:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1788725600; x=1789330400; darn=sourceware.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to:content-type; bh=GNL4LYoSRxfcYZuduETbE29nOxFFiy9kimVFMhZ4AmI=; b=ypfiLZqKt8arXUZqeYhAUC0OTXDD+JTUuTzWPPxcAqEUyDAZhPEY488+TvqX8e3J2v sfFTP3WeiII47ODSAj9kROFnALxZHTeKf7tLcP627y77hmAHFsUJMOSxMAKoXwT3ZvtK e16pUeXDTxql6LKZd30QtZGcRzNRos8a7sSuIfKmJx/MPeU0qj80dQrE/b7HjrN5dloc uSzGE3b1MtIqemR3DUmhmD2Ym3DVy5CZEv95N/45LIe9SOeifSgZ+77b1lqWwUrv037U hzmYtotrLPg6BngU29tOxdBYvdHY9tLvuK4pLTrWvyAn9NtIre93YeO6nyL04SzVh55w S+xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788725600; x=1789330400; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent: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=GNL4LYoSRxfcYZuduETbE29nOxFFiy9kimVFMhZ4AmI=; b=aarBxjSp6QhVqw35tPyqb0NgsM8mI7wD3TejBmFJ8KcYAAXKZ63sA+mNbQTliHsZ/C 6oc9MPRJilPU7gIY18hGyQ74Eu9O8VnOmzPTVjIuDP4jtNsI0Z1ZVV2MuZQg1pigPtly fjyyUKqXrkMVOwADslf+SqApAmaFVlY45t/s4M5CYErq64nW7Xd6iL1ju4Yt4BTOxod4 NAAaY7NSSVCPX2HgpzSL8ik+XmUIWHjQXoXnBjgKcakgAMGsuLBnWu9/uzdo/Jst7o1V w/fnoffsW+ureEV4wV5m8NVhdTzZWZyyXPBci7zzC4QSrGVpU1vb3lTuni6ZFMLxWHum Y+8Q== X-Gm-Message-State: AFuF++mDRGnRYaHutuOHzv/ZJEa9FLfce2i0QsfeTcp5KwNB6qK3uToE nr+Yp0w4Nfpcz7NvPVXQfADDfuZanwMQqTj9fXqapDEbf+IIGQML5BqAV/Dmzy33ZVv7VBl/kD8 YgwmK X-Gm-Gg: AYBFou0hBO+heqEnNuPpp8pGDOUPa+efrKItRvrdgHm3DM3UPsHY/FYd0gxsA5t5Idf zVZl3t6xQnO4j2SY6OfQUCoEYiQUR5GSdjH9FtcC93m3ZbQegKucJCFXS7+9D4SuvVsW3NohM0y oRTXuqNUbYSsnJbDhut2I50ZogjQ1lL0VHr7F/vOJXdYrgnzb/52RL4SLj/+Mi2QFqBAVnDc8Fv GfrWoLRMgKHHkzVadI1467T1uur4ImlkX4kzaatocsLoGKKHXo8VgFNU1/CzU8Ui3q2KOHTlxiJ eYVRtg5v0eN9QkO8rAdSSgwPZ8zhsJiJK77sq5NLvb+M473FVLz8DLajiKWpyplRZ/NrLOCYMMW KC5pZxzxw3W8Yqc0wavWRd0/LjGx05QfUBaZfmtEW/ZektFRtGG+mtszHepqddxLbOy83TIFQ+Y +t9w6QJQ3BkQmTU7tPgnr8PcyYIg7nipg33JXdifW7Q5POfE4Ec3gd1blzs3O9qxGfmvT0UpUWS sX98gzHPg== X-Received: by 2002:a05:690c:4d43:b0:821:e0a:6cd9 with SMTP id 00721157ae682-871266c53aemr72131557b3.17.1788725600341; Sun, 06 Sep 2026 13:13:20 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8714befac64sm60176537b3.47.2026.09.06.13.13.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Sep 2026 13:13:19 -0700 (PDT) From: Thiago Jung Bauermann To: Tom de Vries Cc: gdb-patches@sourceware.org, simark@simark.ca Subject: Re: [PATCH] gdb.gdb/python-helper.exp: Increase timeout values In-Reply-To: (Tom de Vries's message of "Sun, 6 Sep 2026 17:58:06 +0200") References: <20260906040140.158197-1-thiago.bauermann@linaro.org> User-Agent: mu4e 1.14.3; emacs 30.2 Date: Sun, 06 Sep 2026 20:13:17 +0000 Message-ID: <87bjaannoi.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Tom de Vries writes: > On 9/6/26 6:01 AM, Thiago Jung Bauermann wrote: >> In the three Linux machines I tested (my x86_64 laptop and two aarch64 >> servers), gdb.gdb/python-helper.exp has this timeout failure: >> FAIL: gdb.gdb/python-helper.exp: pretty print type instance flags (timeo= ut) >> And the slower aarch64 server also has this one: >> FAIL: gdb.gdb/python-helper.exp: start inner gdb (timeout) >> Fix these failures by using timeout factors. For the latter, a 2x factor >> is enough. For the former, I needed 8x. It appears that the "pretty pr= int >> type instance flags" test is quite demanding. > > I tried to see if I could reproduce this. I ended up writing a patch ( > https://sourceware.org/pipermail/gdb-patches/2026-September/230135.html )= for some timeout > but I have no idea whether it's the same root cause or not. You may want= to test it. > > Assuming it's not, LGTM. > > Approved-By: Tom de Vries Thank you! I tested your patch. The same timeouts still happen. BUT: >> --- >> I actually noticed these failures because I compared GDB 17.2 test >> results with GDB 18 ones. OK to also push to the branch? > > This makes me wonder if we're dealing with a performance regression here,= but yeah, I > suppose it's ok. And from Simon's email: > Out of curiosity, is this with GDB build at -O0 or -O2 (or something > else)? With ASan or other instrumentation? >=20 > I am asking because if it's -O2, then it's representative of what a user > would have in their hands. If some commands take a minute to run, then > we could at least check if it's because GDB is doing something terribly > inefficient. Your responses made me realise I may be the only one seeing these timeouts, even if it's accross three machines. I found out that this is because I compile my test builds with -D_GLIBCXX_DEBUG. I hadn't realized until now that its impact on GDB performance was so big: Without -D_GLIBCXX_DEBUG on the slower aarch64 server: $ ./gdb -D data-directory -nx -q -ex 'maint set per-command time' -ex 'file= gdb' -ex quit Reading symbols from gdb... Time for "minsym install worker": wall 0.237, user 0.135, sys 0.013, user+s= ys 0.148, 62.4 % CPU Time for "minsym install worker": wall 0.238, user 0.139, sys 0.003, user+s= ys 0.142, 59.7 % CPU Time for "minsym install worker": wall 0.239, user 0.141, sys 0.005, user+s= ys 0.146, 61.1 % CPU Time for "minsym install worker": wall 0.248, user 0.148, sys 0.009, user+s= ys 0.157, 63.3 % CPU Time for "minsym install worker": wall 0.249, user 0.154, sys 0.003, user+s= ys 0.157, 63.1 % CPU Time for "minsym install worker": wall 0.252, user 0.143, sys 0.007, user+s= ys 0.150, 59.5 % CPU Time for "minsym install worker": wall 0.256, user 0.151, sys 0.003, user+s= ys 0.154, 60.2 % CPU Time for "minsym install worker": wall 0.260, user 0.148, sys 0.004, user+s= ys 0.152, 58.5 % CPU =E2=9A=A0 warning: File "/home/thiago.bauermann/src/binutils-gdb-wt/gdb/gdb= -gdb.gdb" auto-loading has been declined by your `auto-load safe-path' set = to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /home/thiago.bauermann/src/binutils-gdb-wt/= gdb/gdb-gdb.gdb line to your configuration file "/home/thiago.bauermann/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/thiago.bauermann/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the she= ll: info "(gdb)Auto-loading safe path" warning: File "/home/thiago.bauermann/src/binutils-gdb-wt/gdb/gdb-gdb.py= " auto-loading has been declined by your `auto-load safe-path' set to "$deb= ugdir:$datadir/auto-load". Time for "DWARF indexing worker": wall 0.623, user 0.585, sys 0.035, user+s= ys 0.620, 99.5 % CPU Time for "DWARF indexing worker": wall 0.623, user 0.586, sys 0.034, user+s= ys 0.620, 99.5 % CPU Time for "DWARF indexing worker": wall 0.623, user 0.597, sys 0.023, user+s= ys 0.620, 99.5 % CPU Time for "DWARF indexing worker": wall 0.623, user 0.588, sys 0.033, user+s= ys 0.621, 99.7 % CPU Time for "DWARF indexing worker": wall 0.625, user 0.597, sys 0.025, user+s= ys 0.622, 99.5 % CPU Time for "DWARF indexing worker": wall 0.625, user 0.576, sys 0.045, user+s= ys 0.621, 99.4 % CPU Time for "DWARF indexing worker": wall 0.626, user 0.598, sys 0.025, user+s= ys 0.623, 99.5 % CPU Time for "DWARF indexing worker": wall 0.626, user 0.596, sys 0.029, user+s= ys 0.625, 99.8 % CPU Time for "DWARF skeletonless type units": wall 0.001, user 0.001, sys 0.000= , user+sys 0.001, 100.0 % CPU Time for "DWARF add parent map": wall 0.089, user 0.087, sys 0.001, user+sy= s 0.088, 98.9 % CPU Time for "DWARF finalize worker": wall 2.039, user 2.034, sys 0.002, user+s= ys 2.036, 99.9 % CPU Time for "DWARF finalize worker": wall 0.000, user 0.000, sys 0.000, user+s= ys 0.000, nan % CPU Time for "DWARF finalize worker": wall 2.045, user 2.040, sys 0.002, user+s= ys 2.042, 99.9 % CPU Time for "DWARF finalize worker": wall 2.055, user 2.051, sys 0.001, user+s= ys 2.052, 99.9 % CPU Time for "DWARF finalize worker": wall 2.082, user 2.077, sys 0.002, user+s= ys 2.079, 99.9 % CPU Time for "DWARF finalize worker": wall 2.087, user 2.082, sys 0.002, user+s= ys 2.084, 99.9 % CPU Time for "DWARF finalize worker": wall 2.103, user 2.096, sys 0.004, user+s= ys 2.100, 99.9 % CPU Time for "DWARF finalize worker": wall 2.112, user 2.107, sys 0.002, user+s= ys 2.109, 99.9 % CPU Time for "DWARF finalize worker": wall 2.114, user 2.110, sys 0.001, user+s= ys 2.111, 99.9 % CPU With -D_GLIBCXX_DEBUG on the slower aarch64 server: $ ./gdb -D data-directory -nx -q -ex 'maint set per-command time' -ex 'file= gdb' -ex quit Reading symbols from gdb... Time for "minsym install worker": wall 0.334, user 0.245, sys 0.011, user+s= ys 0.256, 76.6 % CPU Time for "minsym install worker": wall 0.336, user 0.242, sys 0.012, user+s= ys 0.254, 75.6 % CPU Time for "minsym install worker": wall 0.342, user 0.249, sys 0.008, user+s= ys 0.257, 75.1 % CPU Time for "minsym install worker": wall 0.349, user 0.231, sys 0.015, user+s= ys 0.246, 70.5 % CPU Time for "minsym install worker": wall 0.352, user 0.231, sys 0.019, user+s= ys 0.250, 71.0 % CPU Time for "minsym install worker": wall 0.356, user 0.237, sys 0.012, user+s= ys 0.249, 69.9 % CPU Time for "minsym install worker": wall 0.362, user 0.250, sys 0.009, user+s= ys 0.259, 71.5 % CPU Time for "minsym install worker": wall 0.362, user 0.240, sys 0.017, user+s= ys 0.257, 71.0 % CPU warning: File "/home/thiago.bauermann/src/binutils-gdb-wt/gdb/gdb-gdb.gd= b" auto-loading has been declined by your `auto-load safe-path' set to "$de= bugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /home/thiago.bauermann/src/binutils-gdb-wt/= gdb/gdb-gdb.gdb line to your configuration file "/home/thiago.bauermann/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/thiago.bauermann/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the she= ll: info "(gdb)Auto-loading safe path" warning: File "/home/thiago.bauermann/src/binutils-gdb-wt/gdb/gdb-gdb.py= " auto-loading has been declined by your `auto-load safe-path' set to "$deb= ugdir:$datadir/auto-load". Time for "DWARF indexing worker": wall 3.786, user 2.786, sys 0.847, user+s= ys 3.633, 96.0 % CPU Time for "DWARF indexing worker": wall 3.786, user 2.711, sys 0.954, user+s= ys 3.665, 96.8 % CPU Time for "DWARF indexing worker": wall 3.786, user 2.741, sys 0.933, user+s= ys 3.674, 97.0 % CPU Time for "DWARF indexing worker": wall 3.787, user 2.822, sys 0.872, user+s= ys 3.694, 97.5 % CPU Time for "DWARF indexing worker": wall 3.791, user 2.688, sys 0.979, user+s= ys 3.667, 96.7 % CPU Time for "DWARF indexing worker": wall 3.791, user 2.771, sys 0.880, user+s= ys 3.651, 96.3 % CPU Time for "DWARF indexing worker": wall 3.792, user 2.936, sys 0.778, user+s= ys 3.714, 97.9 % CPU Time for "DWARF indexing worker": wall 3.793, user 2.762, sys 0.905, user+s= ys 3.667, 96.7 % CPU Time for "DWARF skeletonless type units": wall 0.006, user 0.005, sys 0.000= , user+sys 0.005, 83.3 % CPU Time for "DWARF add parent map": wall 0.116, user 0.114, sys 0.001, user+sy= s 0.115, 99.1 % CPU Time for "DWARF finalize worker": wall 15.504, user 10.265, sys 4.293, user= +sys 14.558, 93.9 % CPU Time for "DWARF finalize worker": wall 0.000, user 0.000, sys 0.000, user+s= ys 0.000, nan % CPU Time for "DWARF finalize worker": wall 15.770, user 10.372, sys 4.360, user= +sys 14.732, 93.4 % CPU Time for "DWARF finalize worker": wall 16.329, user 10.965, sys 4.415, user= +sys 15.380, 94.2 % CPU Time for "DWARF finalize worker": wall 68.077, user 33.268, sys 26.932, use= r+sys 60.200, 88.4 % CPU Time for "DWARF finalize worker": wall 70.295, user 34.154, sys 27.911, use= r+sys 62.065, 88.3 % CPU Time for "DWARF finalize worker": wall 73.817, user 37.446, sys 28.763, use= r+sys 66.209, 89.7 % CPU Time for "DWARF finalize worker": wall 73.916, user 37.227, sys 28.555, use= r+sys 65.782, 89.0 % CPU Time for "DWARF finalize worker": wall 74.662, user 37.951, sys 28.837, use= r+sys 66.788, 89.5 % CPU Tom, sorry for sending you on a wild goose chase. This patch is clearly not needed. --=20 Thiago (he/him)