home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!psinntp!davidge!cae
- From: cae@davidge.com (Caleb Epstein)
- Subject: Possible Race Condition?
- Message-ID: <1992Dec30.204824.11959@davidge.com>
- Followup-To: comp.os.linux
- Keywords: race
- Sender: cae@davidge.com
- Organization: Davidge Data Systems Corp., NYC, NY
- Date: Wed, 30 Dec 92 20:48:24 GMT
- Lines: 40
-
- Linux kernel: 0.99.1
-
- Greetings, fellow Linuxers. I believe I may have
- discovered a race condition in the kernel this afternoon.
- It may relate to the MINIX file system.
-
- I was installing a new hard drive on my Linux box and
- had copied over a whole bunch of directories onto the new
- disk (a new, roomy /usr parition). I was then removing the
- old directories (from a primary, MINIX partition) after a
- reboot and did the following:
-
- cae_1# cd /mnt
- cae_2# rm -fr * &
- [ I paused for a few seconds; my drive was chugging ]
- cae_3# ls -Flg
-
- The 'rm' job was working and ended up finishing its job just
- fine, but the 'ls' never did anything - no output at all. I
- hit Ctrl-C and Ctrl-Z a few times, but got no response. I
- logged on on another VC and did a 'ps'. The 'ls' was still
- there, but all attempts to kill it were in vain - it stuck
- around, even when I sent a signal 9 to it (usually kills
- anything on the Suns at work). The STAT field for the 'ls'
- process showed 'R'. Eventually I killed the login shell and
- the previously-hung VC got a new login prompt. Even after
- this, though, the 'ls' job was still in the process table.
- It only disappeared upon a reboot (obviously).
-
- Does this sound like a possible race condition in the
- MINIX fs code? Could my Ctrl-C/Z-ing have hung things up?
- Am I a dodo for wanting to 'rm' and 'ls' at the same time?
-
- Oh, BTW, both of my hard drives hang off of a Seagate
- RLL drive controller, if that matters.
-
- --
- [ Caleb Epstein ][ Davidge Data Systems Corp, New York, NY ][ cae@davidge.com ]
- [ Someone's definitely jumping into the tub ... with your brother! ]
-
-