Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Deadlock when receiving kill-signal from child process
- X-seq: zsh-workers 35993
- From: Mathias Fredriksson <mafredri@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Deadlock when receiving kill-signal from child process
- Date: Wed, 5 Aug 2015 22:11:22 +0300
- 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=pM13Pr0kfvpxKFRSyXHyNo/3CPZwebYIYvmMu43Y7xk=; b=yO3h/0r1OhGtc3I42Ynajrvs/0Iw6ePrM/+aeObPCTkGZ8pClfA9yeO9pjuCeLFrst +zybVLBDptKU6XQmhbtlnXBPKO2aZhBL4nCvutN6sYu8CfqteM/mo1x0MGWbAhKjSgmM I+yhdo1zIX53b45hQwKTHBle+O18nipnj+si9nev+dBohrOHDuDfpGdBRrlTFb7RfPwb WeBewhB15JE5M0MF1Uek8M4KBmjpH17NUGPijyiq2OgzcPII718VpHJIHtGcmv+uwQXR aOQr3Zg6pv6v/UMfmVoCotDn5Z1N4u6xSfxLsQwmpjF9sRy2jYB7uGk9q/KiIbdKpGl7 2PkQ==
- In-reply-to: <150805115249.ZM7158@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA+=GgY7mHkyK4NJQ6m7y-HpVPKOuKx3-bkJqRHriKzZ662_iwA@mail.gmail.com> <150803085228.ZM24837@torch.brasslantern.com> <CA+=GgY5iZfgUag_V1jqmCv4=PUGBmaV2cNWTDjSO4DAZ+zm-iQ@mail.gmail.com> <150803135818.ZM24977@torch.brasslantern.com> <CA+=GgY7uGzCYEKLBzqrt=ct6q72WFC5w1jMB5RDNe60J-wUz=Q@mail.gmail.com> <150804235400.ZM9958@torch.brasslantern.com> <CA+=GgY5826pmKzn=WHUKCVWOEfRbP=sCN873arRsYHvGgEUb7A@mail.gmail.com> <150805085258.ZM17673@torch.brasslantern.com> <CA+=GgY5F-ZD7us6C6-N+3NevKPmVvcJ+Zm7MYp4yDQTZhxY6kg@mail.gmail.com> <150805115249.ZM7158@torch.brasslantern.com>
On Wed, Aug 5, 2015 at 9:52 PM, Bart Schaefer wrote:
}
} Hm. I'm a little puzzled by the continued appearance of the "no job
} table entry" warning but this --
Is it not explainable by disowning the child process (child &!)? At
least when I only do "child &" the error disappears.
By applying your last patch (in addition to the previous ones) I have
managed to produce two new stack traces, one where the last script is
run as-is and one where I do not disown the child processes.
child &! (disowned):
#0 0x00007fff8abfe166 in __psynch_mutexwait ()
#1 0x00007fff8e4b578a in _pthread_mutex_lock ()
#2 0x00007fff82ce5750 in fputc ()
#3 0x000000010c4d4d95 in zputs ()
#4 0x000000010c4d4bfc in mb_niceformat ()
#5 0x000000010c4d428d in zwarning ()
#6 0x000000010c4d4436 in zwarn ()
#7 0x000000010c4c8632 in wait_for_processes ()
#8 0x000000010c4c82fe in zhandler ()
#9 <signal handler called>
#10 0x00007fff8abfe72a in __sigsuspend ()
#11 0x000000010c4c84df in signal_suspend ()
#12 0x000000010c49fa05 in zwaitjob ()
#13 0x000000010c49f858 in waitjobs ()
#14 0x000000010c4825cc in execpline ()
#15 0x000000010c4817b2 in execlist ()
#16 0x000000010c4815da in execode ()
#17 0x000000010c4851df in runshfunc ()
#18 0x000000010c484cca in doshfunc ()
#19 0x000000010c4c98a7 in dotrapargs ()
#20 0x000000010c4c8a0a in handletrap ()
#21 0x000000010c4c8308 in zhandler ()
#22 <signal handler called>
#23 0x00007fff853a9340 in OSAtomicCompareAndSwapPtrBarrier$VARIANT$mp ()
#24 0x00007fff8e4b5714 in _pthread_mutex_lock ()
#25 0x00007fff82ce43a3 in ferror ()
#26 0x000000010c499f56 in loop ()
#27 0x000000010c49cb74 in zsh_main ()
#28 0x00007fff8610c5c9 in start ()
child & (no more "no job table entry" errors):
#0 0x00007fff8abf95da in syscall_thread_switch ()
#1 0x00007fff853a982d in _OSSpinLockLockSlow ()
#2 0x00007fff896e16d9 in szone_force_lock ()
#3 0x00007fff896e15e6 in _malloc_fork_prepare ()
#4 0x00007fff82cb8097 in fork ()
#5 0x0000000105079718 in zfork ()
#6 0x000000010507d1a5 in execcmd ()
#7 0x0000000105078208 in execpline ()
#8 0x00000001050777b2 in execlist ()
#9 0x00000001050775da in execode ()
#10 0x000000010507b1df in runshfunc ()
#11 0x000000010507acca in doshfunc ()
#12 0x00000001050bf8a7 in dotrapargs ()
#13 0x00000001050bea0a in handletrap ()
#14 0x00000001050be308 in zhandler ()
#15 <signal handler called>
#16 0x00007fff896ddfc7 in small_free_list_add_ptr ()
#17 0x00007fff896d9ccf in szone_free_definite_size ()
#18 0x00000001050ae85c in init_parse ()
#19 0x00000001050ae965 in parse_event ()
#20 0x000000010508fd1c in loop ()
#21 0x0000000105092b74 in zsh_main ()
#22 0x00007fff8610c5c9 in start ()
Messages sorted by:
Reverse Date,
Date,
Thread,
Author