From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27677 invoked by alias); 15 Jan 2015 19:34:25 -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: 34292 Received: (qmail 25625 invoked from network); 15 Jan 2015 19:34:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=s7Jo/S5KfmzNHyO1YyxYgOHAlAzEgkiUfN8sevGiHxI=; b=YvXeLd8C1h+2PmFjiTu7dnTg/rvAnfvLBnWWZw3/wNlColgB6fy0mkdqZH9wVv/l9E rRv+RWVJ+cG9P1uXtuh1hHmIzC/FiyBJACjWxwjds8YJDjRyWXW2ZAZ+K/wUfavbbn4Q bCjz7kxu2utrOpPAk0GIIAusn/yTcexB/ye7ZgF0Oie0eF4449eGZfUPztOUVVtZgr9b ygrPAct+N8JO020s0IqZIz2+CCQ8QxNc77OUF1CVUa1UnmIuU40pff33Mdh9bVr5nT/O mIlfC0UHRktYUFpASc1hD/kl1VWJnWkXLCQ/H/IDHtHvmN6sL5lGjB0oSPz4vHP+4UcN gN2Q== MIME-Version: 1.0 X-Received: by 10.52.72.101 with SMTP id c5mr4784206vdv.59.1421350457224; Thu, 15 Jan 2015 11:34:17 -0800 (PST) Sender: ethersoft@gmail.com Date: Thu, 15 Jan 2015 14:34:17 -0500 X-Google-Sender-Auth: POOd1xcFcwgHiq8D0eq4Wkwutjo Message-ID: Subject: Crash when capturing command output in completion From: Vin Shelton To: "Zsh Hackers' List" Content-Type: text/plain; charset=UTF-8 Using the latest sources, I'm getting a crash during completion with capturing command output. $ installed_packages ==> apel build c-support calc cc-mode cedet-common debug dired easypg ecb ecrypto edebug ediff edit-utils efs eieio elib emerge fsf-compat general-docs gnus ibuffer igrep ilisp ispell mail-lib mmm-mode net-utils os-utils pc pcl-cvs perl-modes pgg prog-modes ps-print psgml psgml-dtds python-modes re-builder ruby-modes semantic sgml sh-script speedbar supercite texinfo text-modes tramp vc xemacs-base xemacs-devel $ scm_update $(installed_ ==> scm_update $(installed_packages ) ==> Boom! My terminal emulator disappeared. ==> Here is the backtrace: gdb /opt/zsh-2015-01-15-1337/bin/zsh core GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /opt/zsh-2015-01-15-1337/bin/zsh...done. [New LWP 4891] Core was generated by `/opt/zsh-2015-01-15-1337/bin/zsh -l'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fa93238cd40 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007fa93238cd40 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fa930d66d6a in callcompfunc (s=0x7fa933009ff0 "installed_packages", fn=0x1aaaa90 "_main_complete") at compcore.c:743 #2 0x00007fa930d67ced in makecomplist (s=0x7fa933009ff0 "installed_packages", incmd=0, lst=0) at compcore.c:989 #3 0x00007fa930d65915 in do_completion (dummy=0x7fa9313dcb48 , dat=0x7fff21af6710) at compcore.c:349 #4 0x00000000004682ac in runhookdef (h=0x7fa9313dcb48 , d=0x7fff21af6710) at module.c:996 #5 0x00007fa9311c22ed in docompletion (s=0x1af0d08 "\205installed_packages", lst=0, incmd=0) at zle_tricky.c:2282 #6 0x00007fa9311bda42 in docomplete (lst=0) at zle_tricky.c:866 #7 0x00007fa9311bc345 in expandorcomplete (args=0x7fa9313dd0c8 ) at zle_tricky.c:315 #8 0x00007fa9311bbf2a in completecall (args=0x7fa9313dd0c8 ) at zle_tricky.c:208 #9 0x00007fa9311a9502 in execzlefunc (func=0x7fa9313d96a0 , args=0x7fa9313dd0c8 , set_bindk=0) at zle_main.c:1345 #10 0x00007fa9311a86d6 in zlecore () at zle_main.c:1066 #11 0x00007fa9311a9060 in zleread (lp=0x6dbcf0 , rp=0x0, flags=3, context=0, init=0x7fa9311cf14d "zle-line-init", finish=0x7fa9311cf13d "zle-line-finish") at zle_main.c:1253 #12 0x00007fa9311abb65 in zle_main_entry (cmd=1, ap=0x7fff21af6cf8) at zle_main.c:1914 #13 0x000000000044f2a0 in zleentry (cmd=1) at init.c:1516 #14 0x0000000000450197 in inputline () at input.c:287 #15 0x000000000045000b in ingetc () at input.c:221 #16 0x0000000000443699 in ihgetc () at hist.c:361 #17 0x0000000000459b4a in gettok () at lex.c:583 #18 0x0000000000459322 in zshlex () at lex.c:264 #19 0x000000000047c78f in parse_event (endtok=37) at parse.c:538 #20 0x000000000044bd75 in loop (toplevel=1, justonce=0) at init.c:145 #21 0x000000000044f794 in zsh_main (argc=2, argv=0x7fff21af7088) at init.c:1671 #22 0x000000000040e82d in main (argc=2, argv=0x7fff21af7088) at ./main.c:93 (gdb) I cannot reproduce this in a zsh started with "-f", so this has something to do with my customizations. Can anyone else reproduce this? Thank you, Vin