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: Weird wget behaviour


Just to confirm, and provide a wee bit more info: I straced the command 
and found it repeating a check whether the local version is a symlink. 
This is the relavant part of the strace:

-- BEGIN strace --
   78 13052213 [main] wget 352 path_conv::check: root_dir(D:\), 
this->path(D:\cygwin\home\RLandheer\test\wget\Con.html.3519), 
set_has_acls(8)
  219 13052432 [main] wget 352 normalize_posix_path: src Con.html.3520
   75 13052507 [main] wget 352 cwdstuff::get: posix 
/home/RLandheer/test/wget
   74 13052581 [main] wget 352 cwdstuff::get: (/home/RLandheer/test/wget) 
= cwdstuff::get (0x22F728, 260, 1, 0), errno 2
   75 13052656 [main] wget 352 normalize_posix_path: 
/home/RLandheer/test/wget/Con.html.3520 = normalize_posix_path 
(Con.html.3520)
   76 13052732 [main] wget 352 mount_info::conv_to_win32_path: 
conv_to_win32_path (/home/RLandheer/test/wget/Con.html.3520)
   78 13052810 [main] wget 352 set_flags: flags: text (0x2000000)
   74 13052884 [main] wget 352 mount_info::conv_to_win32_path: src_path 
/home/RLandheer/test/wget/Con.html.3520, dst 
D:\cygwin\home\RLandheer\test\wget\Con.html.3520, flags 0x2000008, rc 0
  230 13053114 [main] wget 352 symlink_info::check: not a symlink
   83 13053197 [main] wget 352 symlink_info::check: 0 = symlink.check 
(D:\cygwin\home\RLandheer\test\wget\Con.html.3520, 0x22F3E8) (0x2000008)
   78 13053275 [main] wget 352 path_conv::check: root_dir(D:\), 
this->path(D:\cygwin\home\RLandheer\test\wget\Con.html.3520), 
set_has_acls(8)
  218 13053493 [main] wget 352 normalize_posix_path: src Con.html.3521
   76 13053569 [main] wget 352 cwdstuff::get: posix 
/home/RLandheer/test/wget
   74 13053643 [main] wget 352 cwdstuff::get: (/home/RLandheer/test/wget) 
= cwdstuff::get (0x22F728, 260, 1, 0), errno 2
   75 13053718 [main] wget 352 normalize_posix_path: 
/home/RLandheer/test/wget/Con.html.3521 = normalize_posix_path 
(Con.html.3521)
   75 13053793 [main] wget 352 mount_info::conv_to_win32_path: 
conv_to_win32_path (/home/RLandheer/test/wget/Con.html.3521)
   78 13053871 [main] wget 352 set_flags: flags: text (0x2000000)
   75 13053946 [main] wget 352 mount_info::conv_to_win32_path: src_path 
/home/RLandheer/test/wget/Con.html.3521, dst 
D:\cygwin\home\RLandheer\test\wget\Con.html.3521, flags 0x2000008, rc 0
  230 13054176 [main] wget 352 symlink_info::check: not a symlink
   83 13054259 [main] wget 352 symlink_info::check: 0 = symlink.check 
(D:\cygwin\home\RLandheer\test\wget\Con.html.3521, 0x22F3E8) (0x2000008)
   78 13054337 [main] wget 352 path_conv::check: root_dir(D:\), 
this->path(D:\cygwin\home\RLandheer\test\wget\Con.html.3521), 
set_has_acls(8)
  219 13054556 [main] wget 352 normalize_posix_path: src Con.html.3522
   75 13054631 [main] wget 352 cwdstuff::get: posix 
/home/RLandheer/test/wget
   73 13054704 [main] wget 352 cwdstuff::get: (/home/RLandheer/test/wget) 
= cwdstuff::get (0x22F728, 260, 1, 0), errno 2
   75 13054779 [main] wget 352 normalize_posix_path: 
/home/RLandheer/test/wget/Con.html.3522 = normalize_posix_path 
(Con.html.3522)
   76 13054855 [main] wget 352 mount_info::conv_to_win32_path: 
conv_to_win32_path (/home/RLandheer/test/wget/Con.html.3522)
   77 13054932 [main] wget 352 set_flags: flags: text (0x2000000)
   75 13055007 [main] wget 352 mount_info::conv_to_win32_path: src_path 
/home/RLandheer/test/wget/Con.html.3522, dst 
D:\cygwin\home\RLandheer\test\wget\Con.html.3522, flags 0x2000008, rc 0
  231 13055238 [main] wget 352 symlink_info::check: not a symlink
   82 13055320 [main] wget 352 symlink_info::check: 0 = symlink.check 
(D:\cygwin\home\RLandheer\test\wget\Con.html.3522, 0x22F3E8) (0x2000008)
--- END strace ---
$ uname -a:
CYGWIN_NT-4.0 nt4-rlandheer 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown 
unknown Cygwin

$ cygcheck -s -r -v -c > cygcheck.out
cygcheck.out attached. 

HTH

rlc

On Fri, 11 Apr 2003, Marko Daris wrote:
> I'm using cygwin's wget (1.8.2) to mirror some web sites... I found an
> url which stops (cygwins) wget:
> wget http://www.uga.edu/ethnobot/Con.html
> 
> First the behaviour was that when I run the command some parts of this
> page were dumped on standard output (note: I don't have a .wgetrc file)
> which is very strange since wget only outputs progress/statistics and
> not the downloaded page... Wget did not finish but hanged forrever (did
> not notice any cpu load). 
> 
> I then thought it was a cygwin bug and reinstalled cygwin completely (10
> Apr 2003). Now what happens is that there is no ouput but the command
> hangs as before - it never returns.
> 
> I did a crosscheck on linux (debian) with wget 1.8.1 and the page is
> downloaded as expected and wget terminates. I also checked on solaris
> 2.6 wget 1.8.2 and works ok. 
> 
> I suspect the problem is somewhere in cygwin.... 
> 
> I'm worried that this could be some buffer overrun (because of the
> behaviour) or something in the realization of cygwin sockets. 
> 
> Let me know...
> 
> Best regards, 
> 
> 				Marko
> 
> 
> 
> --
> 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/
> 
> 

Attachment: cygcheck.out
Description: cygcheck -s -r -v -c > cygcheck.out

--
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]