Bug 102873 - rm hangs while deleting symlinks
Summary: rm hangs while deleting symlinks
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: fileutils
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-22 02:33 UTC by Andrei Gaponenko
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-03 12:02:08 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrei Gaponenko 2003-08-22 02:33:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716

Description of problem:
The rm command hangs when trying to delete a symlink on localdisk,
which points to a file on a hang NFS mount.


Version-Release number of selected component (if applicable):
fileutils-4.1.9-11

How reproducible:
Always

Steps to Reproduce:
1. ln -s /some_junk .
2. strace /bin/rm ./some_junk
3. Observe the calls:

access("./some_junk", W_OK)             = -1 ENOENT (No such file or directory)
stat64("./some_junk", 0xbfffdcd0)       = -1 ENOENT (No such file or directory)

Presently rm gets stuck in access(), but the stat64() call is just as bad.  
WHY did they appear in rm in the first place???

Actual Results:  rm symlink_on_local_filesystem hangs

Expected Results:  operations on local filesystem should never hang.

Additional info:

Comment 1 Tim Waugh 2003-10-03 12:02:08 UTC
I think this should be fixed in rawhide; it is very similar to another problem
that was fixed.


Note You need to log in before you can comment on or make changes to this bug.