bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

deadlock in waitchld()


From: Roman Rakus
Subject: deadlock in waitchld()
Date: Mon, 20 May 2013 16:11:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

Bash hangs in wait4() (WAITPID) if TERM signal trap handler is executed during execution of pipeline.

RR

Reproducer:
#!/bin/bash trap "/bin/echo trapped $$" TERM printf '%d\n' $$ while :; do dd if=/dev/zero bs=1k count=128 2>&1 | cat > /dev/null
done

and bombard the bash process with TERM signals:
#!/bin/bash
while :; do
  kill -TERM $1 || break
  usleep 100000
done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]