From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8583 invoked by alias); 24 Mar 2010 18:28:17 -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: 27824 Received: (qmail 29144 invoked from network); 24 Mar 2010 18:28:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VERIFIED autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.212 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=ykq5DESAneiEqBb9JI8mPMjD5E3IsFOTEsIoU3nlL9w=; b=KtZAb5HUpaLj9pb5aWzfRKCCO7jZIl/ezrWPTnBsBfhQKd9+72XGCWSYsJ6fZvqDUf 0x99+7bL3sgjnS9GLBdHSafiy/QOZDHm65gF4V98LJ/0KD5D/RfIFPUwXiC/KhuzWYN1 D3MsJjCVEQWjttOpCL5RM8vOw83xKDaRGELOk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=H7UnVII02xUjw+XeJVVh3SWKCoHYR31PrkbwXJm9ZObzOi8fB1W4rn0C53/TDZXDsF DcrGGeW52d/x6bMCpmwgf9KpcU/PKcXapr7gNZ6hVG/ST9b4NB5E4dRCtIjfEF2SWJPk 2J8UqXZ8bMORlh3Cm3Wz+UwBtS19GgdiyRHf0= From: Christian Neukirchen To: zsh-workers@zsh.org Subject: Infinite loop in parsing <()? Date: Wed, 24 Mar 2010 19:22:10 +0100 Message-ID: <87ljdhzijx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi, % uname -a Linux zorya 2.6.32-ARCH #1 SMP PREEMPT Tue Feb 23 19:43:46 CET 2010 x86_64 Genuine Intel(R) CPU U4100 @ 1.30GHz GenuineIntel GNU/Linux % echo $ZSH_VERSION $ZSH_PATCHLEVEL 4.3.10 1.4705 % cat <(echo foo | sort) # 100% CPU usage ^C (gdb) bt #0 0x00007ffff74290ae in memcpy () from /lib/libc.so.6 #1 0x000000000044f514 in realloc () #2 0x000000000044f7a9 in zrealloc () #3 0x0000000000465ec4 in ?? () #4 0x000000000046713a in ?? () #5 0x0000000000467ebe in ?? () #6 0x0000000000468033 in ?? () #7 0x00000000004680cc in ?? () #8 0x000000000046816b in ?? () #9 0x0000000000468289 in ?? () #10 0x0000000000469634 in parse_list () #11 0x00000000004252f1 in parse_string () #12 0x00000000004255d6 in ?? () #13 0x000000000042b96f in getproc () #14 0x0000000000477e2c in ?? () #15 0x000000000047c2b5 in prefork () #16 0x0000000000426b47 in ?? () #17 0x0000000000428ed6 in ?? () #18 0x0000000000429286 in ?? () #19 0x000000000042a577 in execlist () #20 0x000000000042a7e3 in execode () #21 0x000000000043ce48 in loop () #22 0x000000000043dc8e in zsh_main () #23 0x00007ffff73c7b6d in __libc_start_main () from /lib/libc.so.6 #24 0x000000000040d8a9 in _start () For mysterious reasons, % cat <(echo foo) % cat <(echo foo | uname) % cat <(echo foo | wc) all work fine. -- Christian Neukirchen http://chneukirchen.org