[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dd hangs with SIGINT
From: |
Guillaume Chazarain |
Subject: |
dd hangs with SIGINT |
Date: |
Fri, 01 Apr 2005 11:42:07 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) |
Hi,
With recent linux distributions (using NPTL), dd can hang waiting on a
futex when
being killed. The problem sould be reproduceable with the following script :
#!/bin/sh
echo 'When you only see "dd frozen" in a loop the problem is present'
while : ; do
dd if=/dev/zero of=/dev/null bs=1000 count=200 &> /dev/null
echo -n "."
done &
# Don't leave useless dd processes
CHILD=$!
trap "kill $CHILD; killall dd" EXIT
while : ; do
killall -INT dd &> /dev/null
usleep 10000
PIDOF_DD1=$(pidof dd)
usleep 10000
PIDOF_DD2=$(pidof dd)
if [ -n "$PIDOF_DD1" ] && [ "$PIDOF_DD1" = "$PIDOF_DD2" ]; then
echo "dd frozen"
else
echo -n "+"
fi
done
I hope someone can reproduce and look into it.
Kind regards.
--
Guillaume
- dd hangs with SIGINT,
Guillaume Chazarain <=
- Re: dd hangs with SIGINT, Paul Eggert, 2005/04/04
- Re: dd hangs with SIGINT, Guillaume Chazarain, 2005/04/04
- Re: dd hangs with SIGINT, Guillaume Chazarain, 2005/04/06
- Re: dd hangs with SIGINT, Bruno Haible, 2005/04/06
- Re: dd hangs with SIGINT, Jim Meyering, 2005/04/07
- Re: dd hangs with SIGINT, Guillaume Chazarain, 2005/04/07
- Re: dd hangs with SIGINT, Jim Meyering, 2005/04/07
- Re: dd hangs with SIGINT, Guillaume Chazarain, 2005/04/07
- Re: dd hangs with SIGINT, Jim Meyering, 2005/04/07
- Re: dd hangs with SIGINT, Guillaume Chazarain, 2005/04/08