home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22206 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.0 KB  |  53 lines

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