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 35983
- From: Mathias Fredriksson <mafredri@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Deadlock when receiving kill-signal from child process
- Date: Wed, 5 Aug 2015 03:05:24 +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=dsiyzL3l/0G47ztbk7SRKwjd0SNcMST1Yc8PSrwDhm4=; b=Asm1JYPRKzsrUwGT+IUv4gf3EN63tgHWjszZNWM4Ae72eGm2msFTmBZjQYRMlmoKL7 UN1dz2ufP/+dWjxujTY8/crNFN9bewesHN+KAPRA+z4ZN4C84nHj2hg0zI0nhbfZ8pIb to1svugpsAXUKgB7sRDKYy3BlY/41C7fFilIJ6rG4Vpf/JAurZYZE50eNSlQPcdfOTlJ DvUYIl/JkzckdStTfuSjZrvFgKHEHvuA7WFJbk4WAzxTTIrGo1Y+s3e0avLoiog+HFiw GQE1z0ZBkSBxHrzSYJKnLs/wOypb7ESxTIaqnSttdSwbsx4M956CzBrq14pq+baqfF7I ELOw==
- In-reply-to: <CA+=GgY7uGzCYEKLBzqrt=ct6q72WFC5w1jMB5RDNe60J-wUz=Q@mail.gmail.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>
I can't seem to produce wanted gdb output of the frozen state. If i
run through gdb with "continue&", when it finally freezes, gdb will
only tell me that it is still running and trying to perform operations
gives "Target is executing.". My gdb-foo is way too low to deal with
this (unless someone would like to give me assistance in debugging it
further).
Since gdb was not much help, I have modified the code slightly in
hopes of others being able to reproduce. With this modification I can
produce a deadlock / freeze on every run.
--
child() {
sleep 0.00001
kill -USR1 $$
sleep 0.0001
kill -USR1 $$
}
TRAPUSR1() {
sleep 0.000001
print -n "."
}
for i in {1..10}; do
child &!
done
sleep 0.0000001
sleep 0.000001
sleep 0.00001
sleep 0.0001
sleep 0.001
Messages sorted by:
Reverse Date,
Date,
Thread,
Author