From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id I4ucJ7IpQ2jUhgMAWB0awg (envelope-from ) for ; Fri, 06 Jun 2025 13:47:30 -0400 Received: by simark.ca (Postfix, from userid 112) id 8EAD11E11C; Fri, 6 Jun 2025 13:47:30 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-9.0 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 1A0281E0C2 for ; Fri, 6 Jun 2025 13:47:28 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 988023856DEF for ; Fri, 6 Jun 2025 17:47:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 988023856DEF Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by sourceware.org (Postfix) with ESMTPS id 9506E3858C50 for ; Fri, 6 Jun 2025 17:46:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9506E3858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9506E3858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1749232016; cv=none; b=e9UAEVhcQVQiGg7S95L/dVtn0YaLioa/bj3n71TkizMgNjBsbP1Wm74or02mZsAtQHGzY83s2I+obamPs/V4KsBvLfp5f79arkXl6W0OZHtv7WnjyG6NGR2oLj8lrjDhX1792GVb1H44PpW65dppgzYGfIQn079Y8nbPxOPD/wU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1749232016; c=relaxed/simple; bh=oDAqWvmim1chDYKo3o/+qgNI+nxW2vGrkR++j9oMG6g=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Oqh8CR2S786KV5HrI+FVRhyFYWo3ceVyrk9SvRNH6lMJUkqRGKwKL3bvpuSSSe2AWiW4Jl214nJsxzuDSxPcsGN0xSnppsnrCp3icSU2yN7z3a0V7OPzHpSYVD/uIKcXz+PRXkR6TrPncaTTzgcLCIG3WHzRXOO2t9b0xalQAvE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9506E3858C50 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-451e2f0d9c2so19287655e9.1 for ; Fri, 06 Jun 2025 10:46:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749232015; x=1749836815; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Kxhst//MMDr11b69HJRANnx3HmIbA1LPC06fhkXoWWM=; b=tcLlYB3agdz2tq+nLZNh5zPf5FW7TFAWx25uob08tS07TPfvKP/eFgs0/W/fXfyQtU qNpE/chNgZTpL1i6zlDfHs+Ks7YPxg0S6cF4n9DbDIhZ3D+om0Bjier54d8TkdavBmF5 aH0K3BYJPUfYChf4yP2TIqiTfbUE9+VOY9QrkiKVqF8QF0y30OUhuFVijp349INfVxKb D/mtPYi4hnod75y0vuAK6mdabFR+9BVD0bCRAzKH/bLtDDzDnoPuOwlB9I2xNbgr0smU Kj+qomB/vdA0R3KHDxHNX/DWwe2c+NuQuC7xVkQ7I2QAtj5lOo0TRXYqUi/SzFfdkKa5 mDdA== X-Gm-Message-State: AOJu0YwjHEtpK4wtIAOkutsdn1siu6Z2clSYxQGcsT7zh9e7c+UW+XRw bvGYav+ynkrUNQXB4kOFpxHym3e+KHvg01r6FUdC7aATtmjQps720hgBONrTOErw X-Gm-Gg: ASbGncur4e5dYZObsDZSYTrlCEPq4nUvrguBgUA/Ghvia3TYKiHcNJHHeaYRZnHoGh2 N6oyiROsa+f5nR0HhcW398ekW9v87CKX3Fpd9jHLy21Wn+3cT2iI5Emyh62H5RvYyXuQO/BzE6b Xy8DoAThxLyhyRleCcLrnb+4bXcSZBwDJ+ndKyDSIENtmg1P7qlFqY7aydcwrFLrHd/R4eDQSyu qAYlWrHeU2rNY/uvMZ9jJa9PCR7dacmMxQyM1KdKkQ6xVbwp/9Hw18lpeK5xlrT5XtXheVswkzT 7Wi2/m9db52QDig2sGf5cd22IedKRrswQXcMPNj7q01ZUPiBAu/cSlnC09Bd X-Google-Smtp-Source: AGHT+IFDgPqmpVwTvGEozIKunR76QWQ8o1v8P0GpK062W13K8lWIL5eomBfcdO77C+q9ZzIXluT3xw== X-Received: by 2002:a05:600c:3513:b0:450:cabc:a6c6 with SMTP id 5b1f17b1804b1-4520159f6fdmr42670255e9.15.1749232014976; Fri, 06 Jun 2025 10:46:54 -0700 (PDT) Received: from localhost ([2001:8a0:facf:2b00:77f6:647:8d2f:f905]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-452730d1686sm28461005e9.36.2025.06.06.10.46.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jun 2025 10:46:54 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH] Skip gdb.base/libsegfault.exp on Cygwin Date: Fri, 6 Jun 2025 18:46:48 +0100 Message-ID: <20250606174648.982691-1-pedro@palves.net> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Running gdb.base/libsegfault.exp on Cygwin, in parallel mode causes badness: $ make check-parallel TESTS="gdb.base/libsegfault.exp" ... Running /home/alves/gdb/src/gdb/testsuite/gdb.base/libsegfault.exp ... 0 [main] expect 6611 C:\cygwin64\bin\expect.exe: *** fatal error in forked process - error while loading shared libraries: libSegFault.so: cannot open shared object file: No such file or directory *** starting '"C:\cygwin64\bin\dumper.exe" -n "C:\cygwin64\bin\expect.exe" 8012' for pid 6611, tid 7992 *** continuing pid 6611 parent: sync byte write: broken pipe make[1]: *** [Makefile:320: check/gdb.base/libsegfault.exp] Error 255 make[1]: Target 'do-check-parallel' not remade because of errors. make[1]: Leaving directory '/home/alves/rocm/gdb/build-cygwin-testsuite' outputs/gdb.base/libsegfault/gdb.sum: no recognised summary line outputs/gdb.base/libsegfault/gdb.log: no recognised summary line make: *** [Makefile:260: check-parallel] Error 2 $ I.e., Expect's spawn fails, and that brings down the whole Expect process, for some reason. The result is that we end up with incomplete gdb.sum/gdb.log files, which dg-extract-results.sh can't process. Since libSegFault.so is a glibc feature that doesn't exist on Cygwin, just skip the test there. Change-Id: I44bdbffa25a5d21c5019418b68776d334a57be26 --- gdb/testsuite/gdb.base/libsegfault.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdb/testsuite/gdb.base/libsegfault.exp b/gdb/testsuite/gdb.base/libsegfault.exp index eab12ff57e1..808ab046bc5 100644 --- a/gdb/testsuite/gdb.base/libsegfault.exp +++ b/gdb/testsuite/gdb.base/libsegfault.exp @@ -24,6 +24,12 @@ # the local machine. require {!is_remote host} +# On Cygwin, the testcase would somehow end up trying to preload +# libSegFault.so into the Expect process, which would fail and crash +# it. Since libSegFault.so is a glibc feature that doesn't exist on +# Cygwin, just skip testing there. +require {!expr {[isbuild "*-*-cygwin*"] && [ishost "*-*-cygwin*"]}} + # Spawn GDB with LIB preloaded with LD_PRELOAD. CMDLINE_OPTS are # command line options passed to GDB. -- 2.49.0