From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19346 invoked by alias); 5 Aug 2015 17:59:36 -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: X-Seq: 35990 Received: (qmail 8906 invoked from network); 5 Aug 2015 17:59:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PMWSHd6ejSlOjsI5mDEPJZoNNREQkxlJfSJjTJoKeIU=; b=me1/nBxwWLW6ix6tt5mfgiGOC9EcFwNzJ/mbsWeYWmFfUJnadv58S87zwpaQ1hS2EC 6np6/bPornA/ODWYNHbMqEOMOJhpbhpSDLAavpLAyeh9FGiHwk2KsJO8tmwPgxMMX5Vr fJCJJJ+ERxyoAcb1oZQJbEZLVPrA0B0YZanl56ZCBsc1PoezRTeWkQGF0ABq5eYXUcXS zG3sSlceAzkcOnkUM/ov2ddbMP161dzXXkfaNZ+tQn7grHjmZn09DDUD4Ue0IDBAwzFo CjVQh/6lkhwxZS8d0PHfmv8H7KoqhDpEJJNRcnXYCqVWo4DZNVRk1BLsgKKDG4nKf+7b wauw== MIME-Version: 1.0 X-Received: by 10.107.158.20 with SMTP id h20mr11387237ioe.187.1438797571791; Wed, 05 Aug 2015 10:59:31 -0700 (PDT) Date: Wed, 5 Aug 2015 19:59:31 +0200 Message-ID: Subject: typeset -T crash From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 typeset -T i j k; typeset -T j i k Program received signal SIGSEGV, Segmentation fault. bin_typeset (name=0x7ffff7ff67e8 "typeset", argv=0x7ffff7ff6828, assigns=0x0, ops=0x7fffffffce20, func=0) at builtin.c:2680 2680 tdp->joinchar = joinchar; (gdb) bt #0 bin_typeset (name=0x7ffff7ff67e8 "typeset", argv=0x7ffff7ff6828, assigns=0x0, ops=0x7fffffffce20, func=0) at builtin.c:2680 #1 0x000000000041da86 in execbuiltin (args=args@entry=0x7ffff7ff6758, assigns=assigns@entry=0x0, bn=bn@entry=0x6ae640 ) at builtin.c:480 #2 0x000000000042c357 in execcmd (state=state@entry=0x7fffffffd460, input=input@entry=0, output=output@entry=0, how=, how@entry=18, last1=1) at exec.c:3622 #3 0x000000000042c871 in execpline2 (state=state@entry=0x7fffffffd460, pcode=pcode@entry=131, how=how@entry=18, input=0, output=0, last1=last1@entry=1) at exec.c:1724 #4 0x000000000042ce7b in execpline (state=state@entry=0x7fffffffd460, slcode=, how=how@entry=18, last1=1) at exec.c:1507 #5 0x000000000042dcda in execlist (state=state@entry=0x7fffffffd460, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=1) at exec.c:1277 #6 0x000000000042e1a0 in execode (p=0x7ffff7ff6588, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=1, context=context@entry=0x492af7 "cmdarg") at exec.c:1074 #7 0x000000000042e235 in execstring (s=0x7fffffffda66 "typeset -T i j k; typeset -T j i k", dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=1, context=context@entry=0x492af7 "cmdarg") at exec.c:1040 (gdb) p tdp $1 = (struct tieddata *) 0x0 I don't know what any of the things are, and the comment looks like PWS does. I would have thought the earlier checks that i/j and j/i are scalar / array respectively respectively would have stopped the code until we got to this point though? -- Mikael Magnusson