From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43426-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id a8af50b8 for ; Mon, 10 Sep 2018 12:46:57 +0000 (UTC) Received: (qmail 4374 invoked by alias); 10 Sep 2018 12:46:44 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43426 Received: (qmail 9743 invoked by uid 1010); 10 Sep 2018 12:46:43 -0000 X-Qmail-Scanner-Diagnostics: from smtpq1.tb.ukmail.iss.as9143.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.54.57.96):SA:0(-2.6/5.0):. Processed in 1.179792 secs); 10 Sep 2018 12:46:43 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.136 X-CNFS-Analysis: v=2.3 cv=e+XXtph/ c=1 sm=1 tr=0 a=4AIt8OzuWET5BS7mAkvERw==:117 a=VhSAxaxaeyEA:10 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=HegVXZIhm-oA:10 a=pGWmhHBWAAAA:8 a=BmRP1UKsn3Z0ZJCSpdcA:9 a=QEXdDO2ut3YA:10 a=UmEFuOT3ktMK2G6T3c9L:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1536583599; bh=Zplw94eAqk9KJHd6WlWtJ/qR5WGc+Wnc+BogH5Ygf1g=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=xRcYwCC3ERfV49qU3FvBxiG3y8A0MqU0dw7VwYB7ZKqlU+0XyMteBPqSNfe5zk1Mt /VT58qZ5GAne5Z/EK2QqOFFKEvNomlNwTkz9MDU8K13R5XNS2UZ81hUqvVMB1ZbmbJ fOHc+/s1lFhwv03XINm2RjtXixZImv7dPr+wnfM3ImDGh+Gl9Zj9kS6M0D7cwv1uUj okkKgb1zL2BPQgH6LYcfYzgV4qFXgVtx9ArBnWLmL0blnMMDXfZlJGj9cR2Gf8EKST r6EH15DTATv07BjoAAkbP3fxOTuhDvvZvM0Jwk/YR8SAvD6gWNx5YdI6TbRka/N7Rg bmbG/A+ePDUFg== Date: Mon, 10 Sep 2018 13:46:39 +0100 (BST) From: Peter Stephenson To: =?UTF-8?Q?=C4=B0smail_D=C3=B6nmez?= Cc: zsh-workers@zsh.org Message-ID: <578964708.1160352.1536583599266@mail2.virginmedia.com> In-Reply-To: References: <20180910103226eucas1p2c84a98abec87724d039d0f14a33c3d28~TA1GZtpYp3066130661eucas1p2z@eucas1p2.samsung.com> <524677991.1156882.1536578389106@mail2.virginmedia.com> Subject: Re: W02jobs.ztst hangs with zsh 5.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev48 X-Originating-IP: 213.86.214.118 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4wfIQ1Kzqe8pG/CWCzVKS/zahoj2X4Me+5uO5ySto7y4Yjx6C97mXg3CDDKyuG9+GL9AvjDDd+ykjtFz7751ybVIPdrSS2SmKK6xBO0NDeGy7nSwnTFTHR 4pJwVi0ido0bcH1vK819/xrH5SqAvt3399OJPTDNusiB7YMNP1ib0UGZ+6ylQnttHvPaMrNWCmuBXWka2JUggYB5gLdzJC5m/HS1acP1c2oxwxQJrGOCu8SB > On 10 September 2018 at 12:32 =C4=B0smail D=C3=B6nmez w= rote: > Inded that doesn't fail when I manually run it. I put the W02 under a > loop to see if I can get it to fail more but surprisingly it failed > elsewhere: >=20 > Running test: suspended job with check_jobs + check_running_jobs > ZTST_test: expecting status: 0 > Input: /tmp/zsh.ztst.8136/ztst.in, output: > /tmp/zsh.ztst.8136/ztst.out, error: /tmp/zsh.ztst.8136/ztst.terr >=20 > So indeed this could be a zpty problem in the end. Thanks for that. I'll disable the tests that attempt to test suspended jobs and see where th= at gets us. diff --git a/Test/W02jobs.ztst b/Test/W02jobs.ztst index 1e7ac76..fe12f97 100644 --- a/Test/W02jobs.ztst +++ b/Test/W02jobs.ztst @@ -85,27 +85,29 @@ *>zsh:*running jobs* *>zsh:*SIGHUPed* =20 - zpty_start - zpty_input 'setopt check_jobs no_check_running_jobs' - zpty_input 'sleep 3' - sleep 0.1 - zpty_input $'\C-z' - zpty_stop -0:suspended job with check_jobs + no_check_running_jobs -*>zsh:*(stopped|suspended)*sleep* -*>zsh:*(stopped|suspended) jobs* -# no 'SIGHUPed' message for suspended jobs - - zpty_start - zpty_input 'setopt check_jobs check_running_jobs' - zpty_input 'sleep 3' - sleep 0.1 - zpty_input $'\C-z' - zpty_stop -0:suspended job with check_jobs + check_running_jobs -*>zsh:*(stopped|suspended)*sleep* -*>zsh:*(stopped|suspended) jobs* -# no 'SIGHUPed' message for suspended jobs +#### Races presumed to be associated with zpty mean that +#### tests involving suspending jobs are not safe. +## zpty_start +## zpty_input 'setopt check_jobs no_check_running_jobs' +## zpty_input 'sleep 3' +## sleep 0.1 +## zpty_input $'\C-z' +## zpty_stop +## 0:suspended job with check_jobs + no_check_running_jobs +## *>zsh:*(stopped|suspended)*sleep* +## *>zsh:*(stopped|suspended) jobs* +## # no 'SIGHUPed' message for suspended jobs +##=20 +## zpty_start +## zpty_input 'setopt check_jobs check_running_jobs' +## zpty_input 'sleep 3' +## sleep 0.1 +## zpty_input $'\C-z' +## zpty_stop +## 0:suspended job with check_jobs + check_running_jobs +## *>zsh:*(stopped|suspended)*sleep* +## *>zsh:*(stopped|suspended) jobs* +## # no 'SIGHUPed' message for suspended jobs =20 zpty_start zpty_input 'sleep 5 & sleep 4 & sleep 3 &' @@ -153,19 +155,19 @@ *>- *>zsh:*SIGHUPed* =20 - zpty_start - zpty_input 'sleep 5' - sleep 0.1 - zpty_input $'\C-z' - zpty_input 'jobs -r' - zpty_input 'print -- -' - zpty_input 'jobs -s' - zpty_stop -0:`jobs -r` and `jobs -s` with suspended job -*>zsh:*(stopped|suspended)*sleep* -*>- -*>\[1] + (stopped|suspended)*sleep* -# no 'SIGHUPed' message for suspended jobs +## zpty_start +## zpty_input 'sleep 5' +## sleep 0.1 +## zpty_input $'\C-z' +## zpty_input 'jobs -r' +## zpty_input 'print -- -' +## zpty_input 'jobs -s' +## zpty_stop +## 0:`jobs -r` and `jobs -s` with suspended job +## *>zsh:*(stopped|suspended)*sleep* +## *>- +## *>\[1] + (stopped|suspended)*sleep* +## # no 'SIGHUPed' message for suspended jobs =20 zpty_start zpty_input 'sleep 10 & sleep 9 & sleep 8 & sleep 7 &'