From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#65324: "make check" hangs on NetBSD 9.3 Date: Wed, 13 Sep 2023 16:34:49 +0200 Message-ID: <87fs3ip2eu.fsf@gmx.de> References: <4712060.QObxxYdZWr@nimes> <1784710.DirUC8aPjC@nimes> <871qf3qhgd.fsf@gmx.de> <23216019.sM9OFumVh5@nimes> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36456"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65324@debbugs.gnu.org, Stefan Kangas To: Bruno Haible Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 16:36:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qgQyb-00096y-HW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 16:36:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgQyG-0002A3-36; Wed, 13 Sep 2023 10:36:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgQyD-00028B-Lq for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:35:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgQyD-0002jc-Dh for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:35:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgQyI-0001dZ-ER for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65324 X-GNU-PR-Package: emacs Original-Received: via spool by 65324-submit@debbugs.gnu.org id=B65324.16946157066220 (code B ref 65324); Wed, 13 Sep 2023 14:36:02 +0000 Original-Received: (at 65324) by debbugs.gnu.org; 13 Sep 2023 14:35:06 +0000 Original-Received: from localhost ([127.0.0.1]:35550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgQxO-0001cF-9T for submit@debbugs.gnu.org; Wed, 13 Sep 2023 10:35:06 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:35015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgQxK-0001bf-Iu for 65324@debbugs.gnu.org; Wed, 13 Sep 2023 10:35:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1694615690; x=1695220490; i=michael.albinus@gmx.de; bh=yuB+SBeRQZtPzPv3rZHu4PEeJr+dt+T7/wkSmW45950=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ZQQ0ahEZIwjztkRT+4C1U+YeUlM0xiAxeKz28HygA77aQyaZUEpcAfsObjJpLEGS+W0B4D72gL+ OdemSSGt2RMEUPulHOkqmGSSxSB2c4bqq+xJJSLh8mAVayQrbJ0UugmIXmbAidaGJuzJ7lwSd6sjI rBXYSbgbpgVi4T53VoeYmCzdIlErOYnSwcL7/tPeGVVa3sS5cGCpITbOf7vZWhp1g5CbtURlSvYlJ 03gSQNpIxWls5M4XskW2+rT6SHyexjNzQG38DWmAhPWive6EnNFLQa869xUe/CES6WFI/wanarhf5 vOyf+AvyzocfQggEJnLSrqb7jyy3sAYZ//Zg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.17]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvK4f-1rWkYd1HZB-00rIZB; Wed, 13 Sep 2023 16:34:50 +0200 In-Reply-To: <23216019.sM9OFumVh5@nimes> (Bruno Haible's message of "Wed, 13 Sep 2023 01:03:24 +0200") X-Provags-ID: V03:K1:wll3gYRKvBGBRzlOHHk8Z7oNTorUl17j6LpNdUrCe1XRYO0dy5R PFhrcszt/tkmIjuX1onMzQP3qry4CrF5+SSAyRvB3Hw/Wcr8g4WjLU4CMEbWvtUcaK9Ongo ElNiUsiaA0T8lesUquhSFPjbAhDZHbgrbchmla9/mX+x/5t6qB4MRJ9hjS7q4btVRvMwb1C eFUw+e4YIiDqVBtVa/LgA== UI-OutboundReport: notjunk:1;M01:P0:oZMQYgMZWdU=;nm7Uj3Toc9aX+eoQXXCqIo7j/k3 ytVWTgx865o05OVPTjiVccAa0TdNAuAMibzA1Jd1N1C6rTG4QNd7YNBsXF8SGP9Un3rNAHPHx UwmBMkBz429LKd/pGUj6xx6ZmfeZRHQaFTFcT5QOXR9tq1+tyCEo2cNKMZ2JfdNZzFISPYrG2 kZCK8xvApAfQVCCoVWsfU97R6ub8fwE73RpqyjPNLDG7gULhm2V0tSTC0KX4QZpMxbICyoyhn wvPvmnbfz6XWmi6g/h+nGRmI6sij/3b2V8u8xsY4YC7lfQXXW+lTR1zdOqd5VH+EtuqeTPpXA MI6C0DhYiTB/ldGOdTN5FgjnVADElU3x1M8L8j52hQB05PWvlSCqcEFHthkooGHUcM3e0wcXQ rkMxZIP/k2tkv9Ljq9CudEpvWn7UD46Wyhcyuv76fEMTxeiWFtOQfgBEuk5l8aXtuMPxHtIhz sy9VOUBxuZmugarJhX+41I6f5jhpAq0OFAOCd3CSRebFV34NKqg+NAOrebEAKTpKVmngsu45Q 1SOOSYSn4xCaFjPmP+qjyi2OHEPWbho3Sip47wCShNgxtgobLbX1kTcWOEKKPs/sgU3ewhdKf Z06LCTnyGJwHyeSPlQVuS92NtFZ+Jou7ccmTOkqgaxHU7+Lpkbud++IBys3Egxgf80UFWWVxi nxiLsbFQ5RnkjRfwUADjHtMaTNXJs59M+ajDkKnZ1thvqiMsjN9fzOm+wTtlgZjll46GQYiFQ Hov52B9nmCGmzH6TsNw9IXiXmHVYDOC1hlbMKQA5YPpJEPJ5oQRWDCYQaAHoN5C0xjnjg3fL X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270297 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Bruno Haible writes: Hi Bruno, > I've applied the patch to lisp/net/tramp-sh.el (since there > is no lisp/tramp-sh.el in this version of emacs). Yep, I did the work in the Tramp repository, which has a slightly different directory structure. > But anyway. With this change, the "gmake check" run goes further along: Good. After the night, I didn't like the patch anymore, it was too complicate. So I have rewitten it, and pushed it to Emacs master. > The debug log repeats itself starting around line 7783. > Find it attached (again, truncated to 10000 lines). Hmm, the debug traces tell us: --8<---------------cut here---------------start------------->8--- 00:54:42.448637 tramp-send-command (6) # cd /tmp/tramp-test1ig90x/foo/\ foo= \ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo\%bar\%ba= z\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'baz\"\#fo= o\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;\bar\\(foo\)bar\= (baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\}/ && \ln -sf /tmp/tramp-test1ig90x/= foo/\ foo\ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo= \%bar\%baz\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'= baz\"\#foo\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;\bar\\(= foo\)bar\(baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\}/\ foo\ bar\ baz\ \@foo\@b= ar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo\%bar\%baz\%\&foo\&bar\&baz\&= \?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'baz\"\#foo\~bar\#baz\~\!foo\|= bar\!baz\|\:foo\;bar\:baz\;\bar\\(foo\)bar\(baz\)\[foo\]bar\[ba= z\]\{foo\}bar\{baz\} ./\ foo\ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\= $-foo-bar-baz-\%foo\%bar\%baz\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar= \*baz\+\'foo\"bar\'baz\"\#foo\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;= \bar\\(foo\)bar\(baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\}foo 2>/= dev/null; echo tramp_exit_status $? --8<---------------cut here---------------end--------------->8--- Again, one line. Here I cannot fix too much, the files are such long in the testsuite. And NetBSD has restricted ressources, for example it reports PIPE_BUF being 512, where other systems report 4096 ... So I exclude this special "ln -sf" call for NetBSD, such longuish file names shouldn't happen in the wild (I hope). See the reworked patch for tramp-tests.el. > Bruno Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 50687dfe993..6390c04c91e 100644 =2D-- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -7096,6 +7096,12 @@ tramp--test-mock-p (string-equal "mock" (file-remote-p ert-remote-temporary-file-directory 'method))) +(defun tramp--test-netbsd-p () + "Check, whether the remote host runs NetBSD." + ;; We must refill the cache. `file-truename' does it. + (file-truename ert-remote-temporary-file-directory) + (ignore-errors (tramp-check-remote-uname tramp-test-vec "NetBSD"))) + (defun tramp--test-openbsd-p () "Check, whether the remote host runs OpenBSD." ;; We must refill the cache. `file-truename' does it. @@ -7333,9 +7339,11 @@ tramp--test-check-files ;; Check symlink in `directory-files-and-attributes'. ;; It does not work in the "smb" case, only relative - ;; symlinks to existing files are shown there. + ;; symlinks to existing files are shown there. On + ;; NetBSD, there are problems with loooong file names, + ;; see Bug#65324. (tramp--test-ignore-make-symbolic-link-error - (unless (tramp--test-smb-p) + (unless (or (tramp--test-netbsd-p) (tramp--test-smb-p)) (make-symbolic-link file2 file3) (should (file-symlink-p file3)) (should @@ -7407,6 +7415,8 @@ tramp--test-check-files ;; These tests are inspired by Bug#17238. (ert-deftest tramp-test41-special-characters () "Check special characters in file names." + (tramp--test-instrument-test-case 10 + (setq tramp-debug-to-file t) (skip-unless (tramp--test-enabled)) (skip-unless (not (getenv "EMACS_HYDRA_CI"))) ; SLOW ~ 245s (skip-unless (not (tramp--test-rsync-p))) @@ -7468,7 +7478,7 @@ tramp-test41-special-characters ;; Simplify test in order to speed up. (apply #'tramp--test-check-files (if (tramp--test-expensive-test-p) - files (list (string-join files "")))))) + files (list (string-join files ""))))))) (tramp--test-deftest-with-stat tramp-test41-special-characters) --=-=-=--