From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43632-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 3ef2787a for ; Mon, 8 Oct 2018 15:49:59 +0000 (UTC) Received: (qmail 29649 invoked by alias); 8 Oct 2018 15:49:48 -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: 43632 Received: (qmail 24411 invoked by uid 1010); 8 Oct 2018 15:49:47 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com 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(66.111.4.27):SA:0(-2.6/5.0):. Processed in 6.433645 secs); 08 Oct 2018 15:49:47 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=cxW6Mw9RhhVRvtGRYveQrcs4Cg5oROUPSDwjklbM mmw=; b=ZJOVqzhSwyDtYxhgqoco8bz9vO/G8vw4Cv57sbVvX7c9YAIcqRbB8UJx JxPKSLPDuCyn1GRvcSypEBdbSt+4RCVSj+GePuRYsLwMQVTBmR/GQwSTU8hUNxQC o+1v/L6sI8YxpLh48KkuaW5Y0EY+7YkjcV/XrOsCmxrTALN7QDVTsOTobSBeNEHl J1c2v3Y2K9s2Fv4pR0ZFwgBMDqnaMBN4A/rhTsL25hBJqA7jhn5WVnUfQCIjnUGa fKA7hsnyhjFwkGHrJkZ2Jjzs4tpfZXKWJ98X8cMqvEsi/CgpZta/umRzSc5I5RZb Nb66T5kLIKAs/K//R0RM7OJEjgoqdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=cxW6Mw9RhhVRvtGRYveQrcs4Cg5oROUPSDwjklbMm mw=; b=VwruXnYOsHXfq9crXrXb9CtZnRcOcbS67QZgjhpGm7BiGKxjVvr/dJn43 1c5aduT3L1OObV/db93AhdjhMNkehaaP0cvbY3eP+6ln+jJFxGrBYbuyY1fGMPws oUdpY/Bfv2T8J58rVNXuKgcSJTBizrhb+mKqqvU2dKLMPB4Rfq8qbQzUZAvQ2SsX tzUomkXChgssSFr+56/GaaXaClsEtyu625W26mEgDIlAsvNrK6WiS7evuc5wTuoY gidvrn7hZwum+u4VUzdj8bII7Ed8LhvXo7RNNg/rjkddoZvh2iyXK7ejP3U2k8dK aYc2UK3GjHdwgezXRXiQC+5SKeXYw== X-ME-Sender: X-ME-Proxy: Date: Mon, 8 Oct 2018 15:49:32 +0000 From: Daniel Shahaf To: Peter Stephenson Cc: Zsh Hackers' List Subject: Re: [PATCH] [long] typeset doesn't report tied parameters (and related issues) Message-ID: <20181008154932.dvc5q46ylb66j2mm@tarpaulin.shahaf.local2> References: <20180924210550.carijwjibarjivu4@chaz.gmail.com> <20181007133545.zzkrbc3ed6shnk3e@chaz.gmail.com> <20181008090557eucas1p11f18ef9ca4a6e3cc09fd59242f344f96~bltk3bsqO1947719477eucas1p1q@eucas1p1.samsung.com> <20181008141056eucas1p2a9a49ec055d2760e87c17832af9f6591~bp33g9vlR0328803288eucas1p2G@eucas1p2.samsung.com> <1539008917.1366329.1534632080.5313528C@webmail.messagingengine.com> <20181008152406eucas1p1660f190ddb4bcd4c0131c4c84492a9f2~bq3vkNlyg2997729977eucas1p1I@eucas1p1.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181008152406eucas1p1660f190ddb4bcd4c0131c4c84492a9f2~bq3vkNlyg2997729977eucas1p1I@eucas1p1.samsung.com> User-Agent: NeoMutt/20170113 (1.7.2) Peter Stephenson wrote on Mon, Oct 08, 2018 at 16:24:04 +0100: > On Mon, 2018-10-08 at 14:28 +0000, Daniel Shahaf wrote: > > Peter Stephenson wrote on Mon, 08 Oct 2018 15:10 +0100: > > I see a failure in a clean build on Debian stretch > >  > > [[[ > > Test /home/daniel/src/zsh/./Test/V10private.ztst failed: bad status 139, > > expected 0 from: > >  if (( UID )); then > >    ZTST_verbose=0 $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh private.TMP/B02 > >  else > >    ZTST_skip="cannot re-run typeset tests when tests run as superuser" > >  fi > > Was testing: typeset still works with zsh/param/private module loaded > > ]]] > >  > > It then says "2 failures, 2 skipped" even though no other failures are > > listed in the output. > > Hmm, I'm guessing all the B02 failures are all down to being re-run from > V10?  That should be obvious from the output --- the first run of B02 is > much earlier.  Is that failing for anyone?  (This needs confirming.) > Yes. % make -s check TESTNUM=B02 ZTST_verbose=2 | tail ZTST_test: all tests successful ************************************** 0 successful test scripts, 1 failure, 0 skipped ************************************** Makefile:187: recipe for target 'check' failed > > This is with --enable-zsh-debug and modules compiled statically, if that > > matters. > > Then there's even more you're not telling me --- V10 doesn't get > compiled in and would be skipped by default in this case.  However, I > updated the configuration and I'm still not seeing any problems myself. > I don't know what you mean. V10 normally runs and succeeds in my build. > There's a reasonable chance valgrind may help with the 139 status.  I > didn't get any hints from adding it to the combined V10 / B02 test, > however. I did. If someone wants to look into it (not necessarly Peter), be my guest. ==25895== Invalid read of size 8 ==25895== at 0x4823AE: zshlex (lex.c:280) ==25895== by 0x4ACBC0: parse_event (parse.c:581) ==25895== by 0x47109D: loop (init.c:146) ==25895== by 0x47659B: zsh_main (init.c:1757) ==25895== by 0x420201: main (main.c:93) ==25895== Address 0x3a is not stack'd, malloc'd or (recently) free'd ==25895== ==25895== ==25895== Process terminating with default action of signal 11 (SIGSEGV) ==25895== Access not within mapped region at address 0x3A ==25895== at 0x4823AE: zshlex (lex.c:280) ==25895== by 0x4ACBC0: parse_event (parse.c:581) ==25895== by 0x47109D: loop (init.c:146) ==25895== by 0x47659B: zsh_main (init.c:1757) ==25895== by 0x420201: main (main.c:93) ==25895== If you believe this happened as a result of a stack ==25895== overflow in your program's main thread (unlikely but ==25895== possible), you can try to increase the size of the ==25895== main thread stack using the --main-stacksize= flag. ==25895== The main thread stack size used in this run was 8388608. ==25895== ==25895== HEAP SUMMARY: ==25895== in use at exit: 238,978 bytes in 8,046 blocks ==25895== total heap usage: 229,079 allocs, 221,033 frees, 12,615,547 bytes allocated ==25895== ==25895== LEAK SUMMARY: ==25895== definitely lost: 0 bytes in 0 blocks ==25895== indirectly lost: 0 bytes in 0 blocks ==25895== possibly lost: 0 bytes in 0 blocks ==25895== still reachable: 238,978 bytes in 8,046 blocks ==25895== suppressed: 0 bytes in 0 blocks ==25895== Reachable blocks (those to which a pointer was found) are not shown. ==25895== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==25895== ==25895== For counts of detected and suppressed errors, rerun with: -v ==25895== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) zsh: segmentation fault valgrind --leak-check=full ../Src/zsh +Z -f ~/src/zsh/Test/ztst.zsh