From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10479 invoked by alias); 5 Aug 2015 10:37:51 -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: 35985 Received: (qmail 29075 invoked from network); 5 Aug 2015 10:37:49 -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_H3, RCVD_IN_MSPIKE_WL 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:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=6v0cNg3jGOV6uDOM+FfUoWscX3zFMYfJnOlvZ8EwaFQ=; b=iBXoDA5y9HR8/ABr/MNjJlbjJDbYGi6QEFENE9I2h5dTQfyXwwtbucfeOEqdc2E2N7 caju/6TXvhhresKiqfe4nCoVzhPypBWXhih+ehTo/KlU6kBTyb0lCPHNp5x95j6saHHP RxQj1k40xOcmtqRnK+VYZ4mEbjP2JlmxLiQBsDMOvcr3yzPRKqisBurjdm1hbLSq7V1Z nOcrvDqfZk+2T2iKnQW+RUMbiMX9Zg9pIkQIYHpDWdT0Hv0bFD64sOnDdJ/aDDGEo2Ld 8tdzdaBWzcpPudsoOGGd3iPnVEvvqqSPkUn3cmCztwsdNPV9wr8sMUa7TDb7F30jJaJi IiUQ== X-Received: by 10.202.204.204 with SMTP id c195mr7179118oig.12.1438771066534; Wed, 05 Aug 2015 03:37:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <150804235400.ZM9958@torch.brasslantern.com> References: <150803085228.ZM24837@torch.brasslantern.com> <150803135818.ZM24977@torch.brasslantern.com> <150804235400.ZM9958@torch.brasslantern.com> From: Mathias Fredriksson Date: Wed, 5 Aug 2015 13:37:07 +0300 Message-ID: Subject: Re: Deadlock when receiving kill-signal from child process To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On Wed, Aug 5, 2015 at 9:53 AM, Bart Schaefer wrote: } } Mathias, if you could apply that patch and try again to reproduce the } deadlock, it might tell us something. Of course, here's the output (as I see it in the terminal) with the applied patch: TRAPUSR1:1: no job table entry for pid 61571 TRAPUSR1:1: no job table entry for pid 61570 .TRAPUSR1:1: no job table entry for pid 61575 .TRAPUSR1:1: no job table entry for pid 61573 ../deadlock.zsh:19: no job table entry for pid 61577 TRAPUSR1:1: no job table entry for pid 61581 .TRAPUSR1:1: no job table entry for pid 61595 TRAPUSR1:1: no job table entry for pid 61582 ../deadlock.zsh:20: no job table entry for pid 61585 ./deadlock.zsh:20: no job table entry for pid 61589 ./deadlock.zsh:20: no job table entry for pid 61590 Furthermore, here is the gdb output from the last script I posted and zsh built with --enable-zsh-debug: #0 0x00007fff8abfe72a in __sigsuspend () #1 0x0000000108fc05df in signal_suspend () #2 0x0000000108f97b05 in zwaitjob () #3 0x0000000108f97958 in waitjobs () #4 0x0000000108f7a90f in execpline () #5 0x0000000108f79c42 in execlist () #6 0x0000000108f79a6a in execode () #7 0x0000000108f920bb in loop () #8 0x0000000108f94d0c in zsh_main () #9 0x00007fff8610c5c9 in start ()