This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rm -rf dir/foo hangs on mvfs


Thanks Chris, I can see why you wouldn't volunteer to look at an strace,
they are really tedious. But I have attached part of one anyway, at
least for posterity. At least the MLA will have a copy of this for
others to see if they have the same problem. This section of the strace
is where rm is just looping and looping- this is repeated again and
again with the processor pinned at 100%.

  From another shell, I tried to see if there were any files in the
directory, and THE DIRECTORY DOESN'T EXIST! So it seems like rm has
removed the directory and is not returning for some reason.

I am going to lookup symlink_info::check: GetFileAttributesA and the
windows errors to see if I can debug the problem any further- any 
pointers would be welcome.

I managed to attach gdb to my looping rm process, but I don't know what 
I should examine after this point (I haven't really used gdb before). 
Should I look at data, stack, tracepoints?

TIA,
Peter

18447 1511840205 [main] rm 752 stat_worker: -1 = (xprc, 0x241FC74)
   9693 1511849898 [main] rm 752 readdir: 0x0 = readdir (0xA0135D8)
   9104 1511859002 [main] rm 752 rewinddir: rewinddir (0xA0135D8)
11632 1511870634 [main] rm 752 readdir: 0xA0135DC = readdir (0xA0135D8) (.)
10061 1511880695 [main] rm 752 readdir: 0xA0135DC = readdir (0xA0135D8) (..)
   9178 1511889873 [main] rm 752 readdir: 0xA0135DC = readdir (0xA0135D8)
(xprc)
   9621 1511899494 [main] rm 752 lstat: entering
   9037 1511908531 [main] rm 752 normalize_posix_path: src xprc
   9584 1511918115 [main] rm 752 cwdstuff::get: posix
/cygdrive/w/services/boot/lib/c5-d0-sim-debug
   9073 1511927188 [main] rm 752 cwdstuff::get:
(/cygdrive/w/services/boot/lib/c5-d0-sim-debug) = cwdstuff::get
(0x241F6D4, 260, 1
, 0), errno 2
18521 1511945709 [main] rm 752 normalize_posix_path:
/cygdrive/w/services/boot/lib/c5-d0-sim-debug/xprc = normalize_posix_path (
xprc)
18448 1511964157 [main] rm 752 mount_info::conv_to_win32_path:
conv_to_win32_path (/cygdrive/w/services/boot/lib/c5-d0-sim-debug
/xprc)
18450 1511982607 [main] rm 752 mount_info::cygdrive_win32_path: src
'/cygdrive/w/services/boot/lib/c5-d0-sim-debug/xprc', dst 'w
:\services\boot\lib\c5-d0-sim-debug\xprc'
19407 1512002014 [main] rm 752 mount_info::conv_to_win32_path: src_path
/cygdrive/w/services/boot/lib/c5-d0-sim-debug/xprc, dst
w:\services\boot\lib\c5-d0-sim-debug\xprc, flags 0x22, rc 0
20269 1512022283 [main] rm 752 symlink_info::check: GetFileAttributesA
(w:\services\boot\lib\c5-d0-sim-debug\xprc) failed
   9809 1512032092 [main] rm 752 geterrno_from_win_error: windows error 5
== errno 13
   9423 1512041515 [main] rm 752 symlink_info::check: GetFileAttributesA
(w:\services\boot\lib\c5-d0-sim-debug\xprc.exe) failed
   9757 1512051272 [main] rm 752 geterrno_from_win_error: windows error 2
== errno 2
   9406 1512060678 [main] rm 752 symlink_info::check: GetFileAttributesA
(w:\services\boot\lib\c5-d0-sim-debug\xprc.exe) failed
   9197 1512069875 [main] rm 752 geterrno_from_win_error: windows error 2
== errno 2
   9989 1512079864 [main] rm 752 symlink_info::check: GetFileAttributesA
(w:\services\boot\lib\c5-d0-sim-debug\xprc.exe.lnk) faile
d
18555 1512098419 [main] rm 752 geterrno_from_win_error: windows error 2
== errno 2
   9443 1512107862 [main] rm 752 symlink_info::check: GetFileAttributesA
(w:\services\boot\lib\c5-d0-sim-debug\xprc.lnk) failed
   9751 1512117613 [main] rm 752 geterrno_from_win_error: windows error 2
== errno 2
   9127 1512126740 [main] rm 752 symlink_info::check: 0 = symlink.check
(w:\services\boot\lib\c5-d0-sim-debug\xprc, 0x241F394) (0x
22)
18437 1512145177 [main] rm 752 mount_info::conv_to_win32_path:
conv_to_win32_path (/cygdrive/w/services/boot/lib/c5-d0-sim-debug
)
18430 1512163607 [main] rm 752 mount_info::cygdrive_win32_path: src
'/cygdrive/w/services/boot/lib/c5-d0-sim-debug', dst 'w:\ser
vices\boot\lib\c5-d0-sim-debug'
18475 1512182082 [main] rm 752 mount_info::conv_to_win32_path: src_path
/cygdrive/w/services/boot/lib/c5-d0-sim-debug, dst w:\se
rvices\boot\lib\c5-d0-sim-debug, flags 0x22, rc 0
18986 1512201068 [main] rm 752 symlink_info::check: not a symlink
   9176 1512210244 [main] rm 752 symlink_info::check: 0 = symlink.check
(w:\services\boot\lib\c5-d0-sim-debug, 0x241F394) (0x22)
   9148 1512219392 [main] rm 752 path_conv::check: root_dir(w:\),
this->path(w:\services\boot\lib\c5-d0-sim-debug\xprc), set_has_a
cls(0)
18466 1512237858 [main] rm 752 dtable::build_fhandler: fd -1, fh 0x61531268
   9613 1512247471 [main] rm 752 stat_worker: (xprc, 0x241FC74, 1,
0x241F864), file_attributes -1
   9015 1512256486 [main] rm 752 fhandler_base::open:
(w:\services\boot\lib\c5-d0-sim-debug\xprc, 0x110000)
10001 1512266487 [main] rm 752 fhandler_base::open: 0xFFFFFFFF =
CreateFileA (w:\services\boot\lib\c5-d0-sim-debug\xprc, 0x80000
000, 0x7, 0x241F644, 0x3, 0x2000080, 0)
18458 1512284945 [main] rm 752 seterrno_from_win_error:
../../../../winsup/cygwin/fhandler.cc:403 errno 5
   9615 1512294560 [main] rm 752 geterrno_from_win_error: windows error 5
== errno 13
   9050 1512303610 [main] rm 752 fhandler_base::open: 0 =
fhandler_base::open (w:\services\boot\lib\c5-d0-sim-debug\xprc, 0x110000
)
18409 1512322019 [main] rm 752 fhandler_disk_file::open: 0 =
fhandler_disk_file::open (w:\services\boot\lib\c5-d0-sim-debug\xprc
, 0x110000)
18440 1512340459 [main] rm 752 fhandler_base::open:
(w:\services\boot\lib\c5-d0-sim-debug\xprc, 0x110000)
   9999 1512350458 [main] rm 752 fhandler_base::open: 0 =
fhandler_base::open (w:\services\boot\lib\c5-d0-sim-debug\xprc, 0x110000
)
18055 1512368513 [main] rm 752 fhandler_disk_file::open: 0 =
fhandler_disk_file::open (w:\services\boot\lib\c5-d0-sim-debug\xprc
, 0x110000)


Christopher Faylor wrote:

 > On Wed, Nov 28, 2001 at 02:16:17PM -0500, Peter Buckley wrote:
 >
 >>http://www.cygwin.com/ml/cygwin/2001-05/msg01202.html
 >>
 >>I found this message in my search of the archives- I didn't see anything
 >>in the rm or cygwin changelog, but did Chris figure out a solution to
 >>this? I seem to be having the problem with cygwin/rm 1.3.2-1, 1.3.3-2,
 >>and 1.3.5-3. We are using Rational Clearcase MVFS, and "rm -rf" hangs
 >>for over 48 hours sometimes.
 >>
 >
 > I rewrote that section of code some time ago.  There is no possibility
 > of a hang from that situation anymore.  There used to be an unbounded
 > for loop, I believe.
 >
 > If there is a problem it is probably unrelated and will require
 > debugging, via gdb, strace, or whatever.  (I'm not volunteering to look
 > at an strace, btw)
 >
 > I don't have Rational Clearcase, so I really can't help here.
 >
 > cgf
 >
 > --
 > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
 > Bug reporting:         http://cygwin.com/bugs.html
 > Documentation:         http://cygwin.com/docs.html
 > FAQ:                   http://cygwin.com/faq/
 >
 >


-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

--



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]