Cygwin 1.5.18 and //./PhysicalDrive??

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cygwin 1.5.18 and //./PhysicalDrive??

Loh, Joe
Folks,
Since updating the Cygwin 1.5.18, we started seeing problem similar to
the what "dd" is experiencing.  The previous Cygwin DLL we used was
Cygwin 1.5.16, at that works flawlessly.  Is anyone out there
experiencing the same issue?

I have reverted back to the Cygwin 1.5.16 and everything start working
normally again.  Due to legacy support requirement we are still using
the //./PhysicalDrive?? to accessing raw device in Cygwin.  

I am also attaching the "strace" output at the end of this mail for the
"dd" that failed.  Please advise what additional information is needed.

See the example and result below:

$ dd if=//./physicaldrive0 count=1 | od -x
dd: opening `//./physicaldrive0': No such host or network path
0000000

Using the same command with the /dev works.

$ dd if=/dev/sda count=1 | od -x
1+0 records in
1+0 records out
512 bytes (512 B) copied0000000 c033 d08e 00bc fb7c 0750 1f50 befc 7c1b
0000020 1bbf 5006 b957 01e5 a4f3 bdcb 07be 04b1
0000040 6e38 7c00 7509 8313 10c5 f4e2 18cd f58b
0000060 c683 4910 1974 2c38 f674 b5a0 b407 8b07
0000100 acf0 003c fc74 07bb b400 cd0e eb10 88f2
0000120 104e 46e8 7300 fe2a 1046 7e80 0b04 0b74
0000140 7e80 0c04 0574 b6a0 7507 80d2 0246 8306
0000160 0846 8306 0a56 e800 0021 0573 b6a0 eb07
0000200 81bc fe3e 557d 74aa 800b 107e 7400 a0c8
0000220 07b7 a9eb fc8b 571e f58b bfcb 0005 568a
0000240 b400 cd08 7213 8a23 24c1 983f de8a fc8a
0000260 f743 8be3 86d1 b1d6 d206 42ee e2f7 5639
0000300 770a 7223 3905 0846 1c73 01b8 bb02 7c00
0000320 4e8b 8b02 0056 13cd 5173 744f 324e 8ae4
0000340 0056 13cd e4eb 568a 6000 aabb b455 cd41
0000360 7213 8136 55fb 75aa f630 01c1 2b74 6061
0000400 006a 006a 76ff ff0a 0876 006a 0068 6a7c
0000420 6a01 b410 8b42 cdf4 6113 7361 4f0e 0b74
0000440 e432 568a cd00 eb13 61d6 c3f9 6e49 6176
0000460 696c 2064 6170 7472 7469 6f69 206e 6174
0000500 6c62 0065 7245 6f72 2072 6f6c 6461 6e69
0000520 2067 706f 7265 7461 6e69 2067 7973 7473
0000540 6d65 4d00 7369 6973 676e 6f20 6570 6172
0000560 6974 676e 7320 7379 6574 006d 0000 0000
0000600 0000 0000 0000 0000 0000 0000 0000 0000
*
0000660 0000 0000 2c00 6344 0000 b800 0000 0100
0000700 0001 fede 043f 003f 0000 3986 0001 0080
0000720 0501 fe07 ffff 39c5 0001 da7a 04a6 0000
0000740 0000 0000 0000 0000 0000 0000 0000 0000
0000760 0000 0000 0000 0000 0000 0000 0000 aa55
0001000
, 0.025 seconds, 20 kB/s

Thanks,
Joe


Strace output:

**********************************************
Program name: C:\cygwin\bin\dd.exe (pid 4000, ppid 1)
App version:  1005.18, api: 0.132
DLL version:  1005.18, api: 0.132
DLL build:    2005-07-02 20:30
OS version:   Windows NT-5.1
Heap size:    402653184
Date/Time:    2005-11-03 16:43:52
**********************************************
   92     788 [main] dd 4000 set_myself: myself->dwProcessId 4000
   90     878 [main] dd 4000 time: 1131057832 = time (0)
  802    1680 [main] dd 4000 environ_init: 0x10010238: !::=::\
  134    1814 [main] dd 4000 environ_init: 0x10010248: !C:=C:\cygwin\bin
  239    2053 [main] dd 4000 environ_init: 0x10010260:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
   98    2151 [main] dd 4000 environ_init: 0x10010298:
APPDATA=C:\Documents and Settings\joel.P3CORPNET\Application Data
   95    2246 [main] dd 4000 environ_init: 0x100102E0:
CLIENTNAME=Console
   90    2336 [main] dd 4000 environ_init: 0x100102F8:
COLORFGBG=0;default;15
   91    2427 [main] dd 4000 environ_init: 0x10010318:
COLORTERM=rxvt-xpm
   90    2517 [main] dd 4000 environ_init: 0x10010330:
COMMONPROGRAMFILES=C:\Program Files\Common Files
   92    2609 [main] dd 4000 environ_init: 0x10010368:
COMPUTERNAME=ASTOR
   91    2700 [main] dd 4000 environ_init: 0x10010380:
COMSPEC=C:\WINDOWS\system32\cmd.exe
   91    2791 [main] dd 4000 environ_init: 0x100103A8:
CVSROOT=:ext:joel@192.168.100.210:/home/cvsroot
   92    2883 [main] dd 4000 environ_init: 0x100103E0: CVS_RSH=ssh
  102    2985 [main] dd 4000 set_file_api_mode: File APIs set to OEM
   55    3040 [main] dd 4000 parse_options: codepage (called func)
   91    3131 [main] dd 4000 parse_options: tty 1001
   89    3220 [main] dd 4000 parse_options: binmode 65536
   91    3311 [main] dd 4000 parse_options: title 1
   88    3399 [main] dd 4000 parse_options: returning
   45    3444 [main] dd 4000 environ_init: 0x100103F0:
CYGWIN=codepage:oem tty binmode title
   93    3537 [main] dd 4000 environ_init: 0x10010468: DISPLAY=:0
   89    3626 [main] dd 4000 environ_init: 0x10010478: EDITOR=vi
   90    3716 [main] dd 4000 environ_init: 0x10010488:
FP_NO_HOST_CHECK=NO
   96    3812 [main] dd 4000 getwinenv: can't set native for HOME= since
no environ yet
   97    3909 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\home\joel, no-keep-rel, no-add-slash)
   63    3972 [main] dd 4000 normalize_win32_path: C:\cygwin\home\joel =
normalize_win32_path (C:\cygwin\home\joel)
   63    4035 [main] dd 4000 mount_info::conv_to_posix_path: /home/joel
= conv_to_posix_path (C:\cygwin\home\joel)
  137    4172 [main] dd 4000 win_env::add_cache: posix /home/joel
   46    4218 [main] dd 4000 win_env::add_cache: native
HOME=C:\cygwin\home\joel
   48    4266 [main] dd 4000 posify: env var converted to
HOME=/home/joel
   87    4353 [main] dd 4000 environ_init: 0x100104C0: HOME=/home/joel
   91    4444 [main] dd 4000 environ_init: 0x100104A0: HOMEDRIVE=C:
   90    4534 [main] dd 4000 environ_init: 0x10010600:
HOMEPATH=\Documents and Settings\joel.P3CORPNET
   92    4626 [main] dd 4000 environ_init: 0x10010638: HOSTNAME=astor
   90    4716 [main] dd 4000 environ_init: 0x10010650:
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
   93    4809 [main] dd 4000 environ_init: 0x10010688:
LOGONSERVER=\\MARS
   89    4898 [main] dd 4000 environ_init: 0x100106A0: MAKE_MODE=unix
  258    5156 [main] dd 4000 environ_init: 0x100106B8:
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
   99    5255 [main] dd 4000 environ_init: 0x10010700:
NUMBER_OF_PROCESSORS=1
   90    5345 [main] dd 4000 environ_init: 0x10010720: OLDPWD=/bin
   90    5435 [main] dd 4000 environ_init: 0x10010730: OS=Windows_NT
   95    5530 [main] dd 4000 getwinenv: can't set native for PATH= since
no environ yet
   62    5592 [main] dd 4000 normalize_posix_path: src .
   62    5654 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\home\joel, no-keep-rel, no-add-slash)
   55    5709 [main] dd 4000 normalize_win32_path: C:\cygwin\home\joel =
normalize_win32_path (C:\cygwin\home\joel)
  139    5848 [main] dd 4000 mount_info::conv_to_posix_path: /home/joel
= conv_to_posix_path (C:\cygwin\home\joel)
   60    5908 [main] dd 4000 cwdstuff::get: posix /home/joel
   57    5965 [main] dd 4000 cwdstuff::get: (/home/joel) = cwdstuff::get
(0x22EBC0, 260, 1, 0), errno 0
   52    6017 [main] dd 4000 normalize_posix_path: /home/joel/ =
normalize_posix_path (.)
   49    6066 [main] dd 4000 mount_info::conv_to_win32_path:
conv_to_win32_path (/home/joel)
   60    6126 [main] dd 4000 set_flags: flags: binary (0x2)
   50    6176 [main] dd 4000 mount_info::conv_to_win32_path: src_path
/home/joel, dst C:\cygwin\home\joel, flags 0xA, rc 0
  173    6349 [main] dd 4000 symlink_info::check: not a symlink
   57    6406 [main] dd 4000 symlink_info::check: 0 = symlink.check
(C:\cygwin\home\joel, 0x22E880) (0xA)
  985    7391 [main] dd 4000 set_privilege: 1 = set_privilege ((token
728) SeChangeNotifyPrivilege, 1)
  247    7638 [main] dd 4000 path_conv::check:
this->path(C:\cygwin\home\joel), has_acls(1)
  122    7760 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\usr\local\bin, keep-rel, no-add-slash)
   55    7815 [main] dd 4000 normalize_win32_path:
C:\cygwin\usr\local\bin = normalize_win32_path (C:\cygwin\usr\local\bin)
   54    7869 [main] dd 4000 mount_info::conv_to_posix_path:
/usr/local/bin = conv_to_posix_path (C:\cygwin\usr\local\bin)
   52    7921 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
   59    7980 [main] dd 4000 normalize_win32_path: C:\cygwin\bin =
normalize_win32_path (C:\cygwin\bin)
   50    8030 [main] dd 4000 mount_info::conv_to_posix_path: /usr/bin =
conv_to_posix_path (C:\cygwin\bin)
   51    8081 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
   51    8132 [main] dd 4000 normalize_win32_path: C:\cygwin\bin =
normalize_win32_path (C:\cygwin\bin)
   50    8182 [main] dd 4000 mount_info::conv_to_posix_path: /usr/bin =
conv_to_posix_path (C:\cygwin\bin)
   50    8232 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
   52    8284 [main] dd 4000 normalize_win32_path:
C:\cygwin\usr\X11R6\bin = normalize_win32_path (C:\cygwin\usr\X11R6\bin)
   53    8337 [main] dd 4000 mount_info::conv_to_posix_path:
/usr/X11R6/bin = conv_to_posix_path (C:\cygwin\usr\X11R6\bin)
   52    8389 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS\system32, keep-rel, no-add-slash)
   51    8440 [main] dd 4000 normalize_win32_path: c:\WINDOWS\system32 =
normalize_win32_path (c:\WINDOWS\system32)
   52    8492 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS/system32 = conv_to_posix_path (c:\WINDOWS\system32)
   52    8544 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS, keep-rel, no-add-slash)
   50    8594 [main] dd 4000 normalize_win32_path: c:\WINDOWS =
normalize_win32_path (c:\WINDOWS)
   50    8644 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS = conv_to_posix_path (c:\WINDOWS)
   52    8696 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS\System32\Wbem, keep-rel, no-add-slash)
   52    8748 [main] dd 4000 normalize_win32_path:
c:\WINDOWS\System32\Wbem = normalize_win32_path
(c:\WINDOWS\System32\Wbem)
   52    8800 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS/System32/Wbem = conv_to_posix_path
(c:\WINDOWS\System32\Wbem)
   55    8855 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\Program Files\ATI Technologies\ATI Control Panel,
keep-rel, no-add-slash)
   53    8908 [main] dd 4000 normalize_win32_path: c:\Program Files\ATI
Technologies\ATI Control Panel = normalize_win32_path (c:\Program
Files\ATI Technologies\ATI Control Panel)
  128    9036 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel =
conv_to_posix_path (c:\Program Files\ATI Technologies\ATI Control Panel)
  161    9197 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\Program Files\Microsoft Office\OFFICE11\Business
Contact Manager\IM, keep-rel, no-add-slash)
   63    9260 [main] dd 4000 normalize_win32_path: c:\Program
Files\Microsoft Office\OFFICE11\Business Contact Manager\IM =
normalize_win32_path (c:\Program Files\Microsoft
Office\OFFICE11\Business Contact Manager\IM)
   61    9321 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/Program Files/Microsoft Office/OFFICE11/Business Contact
Manager/IM = conv_to_posix_path (c:\Program Files\Microsoft
Office\OFFICE11\Business Contact Manager\IM)
   61    9382 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\Program Files\Microsoft SQL
Server\80\Tools\Binn\, keep-rel, add-slash)
   55    9437 [main] dd 4000 normalize_win32_path: c:\Program
Files\Microsoft SQL Server\80\Tools\Binn\ = normalize_win32_path
(c:\Program Files\Microsoft SQL Server\80\Tools\Binn\)
   58    9495 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/Binn/ =
conv_to_posix_path (c:\Program Files\Microsoft SQL
Server\80\Tools\Binn\)
   59    9554 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\Program Files\Microsoft Office\OFFICE11\Business
Contact Manager\, keep-rel, add-slash)
   56    9610 [main] dd 4000 normalize_win32_path: c:\Program
Files\Microsoft Office\OFFICE11\Business Contact Manager\ =
normalize_win32_path (c:\Program Files\Microsoft
Office\OFFICE11\Business Contact Manager\)
   60    9670 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/Program Files/Microsoft Office/OFFICE11/Business Contact
Manager/ = conv_to_posix_path (c:\Program Files\Microsoft
Office\OFFICE11\Business Contact Manager\)
   61    9731 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\Program Files\Common Files\Adaptec Shared\System,
keep-rel, no-add-slash)
   55    9786 [main] dd 4000 normalize_win32_path: c:\Program
Files\Common Files\Adaptec Shared\System = normalize_win32_path
(c:\Program Files\Common Files\Adaptec Shared\System)
   57    9843 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/Program Files/Common Files/Adaptec Shared/System =
conv_to_posix_path (c:\Program Files\Common Files\Adaptec Shared\System)
   58    9901 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\lib\lapack, keep-rel, no-add-slash)
   66    9967 [main] dd 4000 normalize_win32_path: C:\cygwin\lib\lapack
= normalize_win32_path (C:\cygwin\lib\lapack)
   53   10020 [main] dd 4000 mount_info::conv_to_posix_path:
/usr/lib/lapack = conv_to_posix_path (C:\cygwin\lib\lapack)
  204   10224 [main] dd 4000 win_env::add_cache: posix
/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/syst
em32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/P
rogram Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program
Files/Microsoft Office/OFFICE11/Business Contact
Manager/IM:/cygdrive/c/Program Files/Microsoft SQL
Server/80/Tools/Binn/:/cygdrive/c/Program Files/Microsoft
Office/OFFICE11/Business Contact Manager/:/cygdrive/c/Program
Files/Common Files/Adaptec Shared/System:/usr/lib/lapack
   92   10316 [main] dd 4000 win_env::add_cache: native
PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X
11R6\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Prog
ram Files\ATI Technologies\ATI Control Panel;c:\Program Files\Microsoft
Office\OFFICE11\Business Contact Manager\IM;c:\Program Files\Microsoft
SQL Server\80\Tools\Binn\;c:\Program Files\Microsoft
Office\OFFICE11\Business Contact Manager\;c:\Program Files\Common
Files\Adaptec Shared\System;C:\cygwin\lib\lapack
   79   10395 [main] dd 4000 posify: env var converted to
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS
/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdriv
e/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program
Files/Microsoft Office/OFFICE11/Business Contact
Manager/IM:/cygdrive/c/Program Files/Microsoft SQL
Server/80/Tools/Binn/:/cygdrive/c/Program Files/Microsoft
Office/OFFICE11/Business Contact Manager/:/cygdrive/c/Program
Files/Common Files/Adaptec Shared/System:/usr/lib/lapack
  131   10526 [main] dd 4000 environ_init: 0x10010918:
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS
/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdriv
e/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program
Files/Microsoft Office/OFFICE11/Business Contact
Manager/IM:/cygdrive/c/Program Files/Microsoft SQL
Server/80/Tools/Binn/:/cygdrive/c/Program Files/Microsoft
Office/OFFICE11/Business Contact Manager/:/cygdrive/c/Program
Files/Common Files/Adaptec Shared/System:/usr/lib/lapack
  132   10658 [main] dd 4000 environ_init: 0x10010748:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
   96   10754 [main] dd 4000 environ_init: 0x10010788:
PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
   93   10847 [main] dd 4000 environ_init: 0x100107B8: PRINTER=Adobe PDF
   91   10938 [main] dd 4000 environ_init: 0x100107D0:
PROCESSOR_ARCHITECTURE=x86
   99   11037 [main] dd 4000 environ_init: 0x100107F0:
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
   95   11132 [main] dd 4000 environ_init: 0x10010838: PROCESSOR_LEVEL=6
   91   11223 [main] dd 4000 environ_init: 0x10010850:
PROCESSOR_REVISION=0905
   92   11315 [main] dd 4000 environ_init: 0x10010870:
PROGRAMFILES=C:\Program Files
   91   11406 [main] dd 4000 environ_init: 0x10010898: PROMPT=$P$G
   91   11497 [main] dd 4000 environ_init: 0x100108A8:
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
   94   11591 [main] dd 4000 environ_init: 0x100108F0: PWD=/home/joel
   90   11681 [main] dd 4000 environ_init: 0x100110B8:
SESSIONNAME=Console
   90   11771 [main] dd 4000 environ_init: 0x10010908: SHLVL=1
   90   11861 [main] dd 4000 environ_init: 0x100110D0: SYSTEMDRIVE=C:
   90   11951 [main] dd 4000 environ_init: 0x100110E8:
SYSTEMROOT=C:\WINDOWS
   99   12050 [main] dd 4000 getwinenv: can't set native for TEMP= since
no environ yet
   92   12142 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp, no-keep-rel,
no-add-slash)
   53   12195 [main] dd 4000 normalize_win32_path:
c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp = normalize_win32_path
(c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp)
   55   12250 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp = conv_to_posix_path
(c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp)
  139   12389 [main] dd 4000 win_env::add_cache: posix
/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp
   50   12439 [main] dd 4000 win_env::add_cache: native
TEMP=c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp
   49   12488 [main] dd 4000 posify: env var converted to
TEMP=/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp
   89   12577 [main] dd 4000 environ_init: 0x10011138:
TEMP=/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp
   94   12671 [main] dd 4000 environ_init: 0x10011108: TERM=xterm
   90   12761 [main] dd 4000 getwinenv: can't set native for TMP= since
no environ yet
   91   12852 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp, no-keep-rel,
no-add-slash)
   54   12906 [main] dd 4000 normalize_win32_path:
c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp = normalize_win32_path
(c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp)
   61   12967 [main] dd 4000 mount_info::conv_to_posix_path:
/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp = conv_to_posix_path
(c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp)
  139   13106 [main] dd 4000 win_env::add_cache: posix
/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp
   49   13155 [main] dd 4000 win_env::add_cache: native
TMP=c:\DOCUME~1\JOEL~1.P3C\LOCALS~1\Temp
   48   13203 [main] dd 4000 posify: env var converted to
TMP=/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp
   90   13293 [main] dd 4000 environ_init: 0x100112E0:
TMP=/cygdrive/c/DOCUME~1/JOEL~1.P3C/LOCALS~1/Temp
  184   13477 [main] dd 4000 environ_init: 0x10011118: USER=joel
   94   13571 [main] dd 4000 environ_init: 0x100112B0:
USERDNSDOMAIN=P3CORPNET.PIVOT3.COM
   93   13664 [main] dd 4000 environ_init: 0x10011458:
USERDOMAIN=P3CORPNET
   91   13755 [main] dd 4000 environ_init: 0x10011478: USERNAME=joel
   90   13845 [main] dd 4000 environ_init: 0x10011490:
USERPROFILE=C:\Documents and Settings\joel.P3CORPNET
   93   13938 [main] dd 4000 environ_init: 0x10011128: VISUAL=vi
   97   14035 [main] dd 4000 environ_init: 0x100114D0: WINDIR=C:\WINDOWS
   90   14125 [main] dd 4000 environ_init: 0x100114E8: WINDOWID=4718736
   91   14216 [main] dd 4000 environ_init: 0x10011500: _=/usr/bin/strace
   72   14288 [main] dd 4000 pinfo_init: Set nice to 0
   50   14338 [main] dd 4000 pinfo_init: pid 4000, pgid 4000
  930   15268 [main] dd 4000 set_privilege: 0 = set_privilege ((token
754) SeRestorePrivilege, 1)
   75   15343 [main] dd 4000 set_privilege: 1 = set_privilege ((token
754) SeChangeNotifyPrivilege, 1)
  157   15500 [main] dd 4000 dtable::extend: size 32, fds 0x611556B0
   72   15572 [main] dd 4000 normalize_posix_path: src /etc/passwd
   52   15624 [main] dd 4000 normalize_posix_path: /etc/passwd =
normalize_posix_path (/etc/passwd)
   51   15675 [main] dd 4000 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/passwd)
   51   15726 [main] dd 4000 set_flags: flags: binary (0x2)
   48   15774 [main] dd 4000 mount_info::conv_to_win32_path: src_path
/etc/passwd, dst C:\cygwin\etc\passwd, flags 0xA, rc 0
  162   15936 [main] dd 4000 symlink_info::check: not a symlink
  156   16092 [main] dd 4000 symlink_info::check: 0 = symlink.check
(C:\cygwin\etc\passwd, 0x22E830) (0xA)
   63   16155 [main] dd 4000 path_conv::check:
this->path(C:\cygwin\etc\passwd), has_acls(1)
  210   16365 [main] dd 4000 etc::test_file_change: FindFirstFile
succeeded
  630   16995 [main] dd 4000 pwdgrp::load: /etc/passwd curr_lines 9
   54   17049 [main] dd 4000 pwdgrp::load: /etc/passwd load succeeded
   95   17144 [main] dd 4000 normalize_posix_path: src /etc/group
   49   17193 [main] dd 4000 normalize_posix_path: /etc/group =
normalize_posix_path (/etc/group)
   49   17242 [main] dd 4000 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/group)
   51   17293 [main] dd 4000 set_flags: flags: binary (0x2)
   48   17341 [main] dd 4000 mount_info::conv_to_win32_path: src_path
/etc/group, dst C:\cygwin\etc\group, flags 0xA, rc 0
  144   17485 [main] dd 4000 symlink_info::check: not a symlink
   56   17541 [main] dd 4000 symlink_info::check: 0 = symlink.check
(C:\cygwin\etc\group, 0x22E7F0) (0xA)
   54   17595 [main] dd 4000 path_conv::check:
this->path(C:\cygwin\etc\group), has_acls(1)
  178   17773 [main] dd 4000 etc::test_file_change: FindFirstFile
succeeded
  682   18455 [main] dd 4000 pwdgrp::load: /etc/group curr_lines 27
   52   18507 [main] dd 4000 pwdgrp::load: /etc/group load succeeded
   63   18570 [main] dd 4000 cygheap_user::ontherange: what 2, pw
0x10011AA8
   57   18627 [main] dd 4000 cygheap_user::ontherange: HOME is already
in the environment /home/joel
  239   18866 [main] dd 4000 sigproc_init: process/signal handling
enabled(1001)
  402   19268 [main] dd 4000 tty_list::allocate_tty: console 1A0368
already associated with tty2
   69   19337 [main] dd 4000 tty_list::allocate_tty: console 0x1A0368
associated with tty2
 2299   21636 [main] dd 4000 build_argv: argv[0] = 'dd'
   67   21703 [main] dd 4000 build_argv: argv[1] =
'if=//./physicaldrive0'
   52   21755 [main] dd 4000 build_argv: argv[2] = 'count=1'
   48   21803 [main] dd 4000 build_argv: argc 3
  137   21940 [main] dd 4000 build_fh_pc: fh 0x61155818
   68   22008 [main] dd 4000 fhandler_base::set_flags: flags 0x10002,
supplied_bin 0x0
   52   22060 [main] dd 4000 fhandler_base::set_flags: O_TEXT/O_BINARY
set in flags 0x10000
   49   22109 [main] dd 4000 fhandler_base::set_flags: filemode set to
binary
   50   22159 [main] dd 4000 fhandler_base::init: created new
fhandler_base for handle 0x65C, bin 1
  126   22285 [main] dd 4000 build_fh_pc: fh 0x61155A20
   63   22348 [main] dd 4000 fhandler_base::set_flags: flags 0x10002,
supplied_bin 0x0
   52   22400 [main] dd 4000 fhandler_base::set_flags: O_TEXT/O_BINARY
set in flags 0x10000
   50   22450 [main] dd 4000 fhandler_base::set_flags: filemode set to
binary
   47   22497 [main] dd 4000 fhandler_base::init: created new
fhandler_base for handle 0x658, bin 1
  366   22863 [sig] dd 4000 wait_sig: myself->dwProcessId 4000
   67   22930 [sig] dd 4000 wait_sig: entering ReadFile loop, readsig
0x6FC, myself->sendsig 0x6F8
   75   23005 [main] dd 4000 build_fh_pc: fh 0x61155C28
   53   23058 [main] dd 4000 fhandler_base::set_flags: flags 0x10002,
supplied_bin 0x0
   49   23107 [main] dd 4000 fhandler_base::set_flags: O_TEXT/O_BINARY
set in flags 0x10000
   50   23157 [main] dd 4000 fhandler_base::set_flags: filemode set to
binary
   47   23204 [main] dd 4000 fhandler_base::init: created new
fhandler_base for handle 0x704, bin 1
  470   23674 [main] dd 4000 set_console_title: title 'dd'
  287   23961 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin\cygiconv-2.dll, keep-rel,
no-add-slash)
   70   24031 [main] dd 4000 normalize_win32_path:
C:\cygwin\bin\cygiconv-2.dll = normalize_win32_path
(C:\cygwin\bin\cygiconv-2.dll)
   56   24087 [main] dd 4000 mount_info::conv_to_posix_path:
/usr/bin/cygiconv-2.dll = conv_to_posix_path
(C:\cygwin\bin\cygiconv-2.dll)
  162   24249 [main] dd 4000 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin\cygintl-3.dll, keep-rel, no-add-slash)
   58   24307 [main] dd 4000 normalize_win32_path:
C:\cygwin\bin\cygintl-3.dll = normalize_win32_path
(C:\cygwin\bin\cygintl-3.dll)
   62   24369 [main] dd 4000 mount_info::conv_to_posix_path:
/usr/bin/cygintl-3.dll = conv_to_posix_path
(C:\cygwin\bin\cygintl-3.dll)
   97   24466 [main] dd 4000 dll_crt0_1: user_data->main 0x402220
   47   24513 [main] dd 4000 __set_errno: void dll_crt0_1(char*):880 val
0
   50   24563 [main] dd 4000 wait_for_sigthread: wait_sig_inited 0x714
  382   24945 [main] dd 4000 close: close (0)
  113   25058 [main] dd 4000 fhandler_base::close: closing '' handle
0x65C
   58   25116 [main] dd 4000 close: 0 = close (0)
   58   25174 [main] dd 4000 open: open (//./physicaldrive0, 0x10000)
   53   25227 [main] dd 4000 normalize_posix_path: src
//./physicaldrive0
   49   25276 [main] dd 4000 normalize_posix_path: //physicaldrive0 =
normalize_posix_path (//./physicaldrive0)
   50   25326 [main] dd 4000 mount_info::conv_to_win32_path:
conv_to_win32_path (//physicaldrive0)
   49   25375 [main] dd 4000 set_flags: flags: binary (0x2)
   47   25422 [main] dd 4000 mount_info::conv_to_win32_path: src_path
//physicaldrive0, dst \\physicaldrive0, flags 0x2, rc 0
   66   25488 [main] dd 4000 build_fh_pc: fh 0x61155818
  301   25789 [WNetGetResourceInformation] dd 4000 cygthread::stub:
thread 'WNetGetResourceInformation', id 0xB5C, stack_ptr 0xE6EFD0
6844127 6869916 [main] dd 4000 __set_errno: fhandler_base*
build_fh_name(const char*, void*, unsigned int, suffix_info*):346 val
136
   91 6870007 [main] dd 4000 open: -1 = open (//./physicaldrive0,
0x10000)
  471 6870478 [main] dd 4000 fhandler_base::write: binary write
  568 6871046 [main] dd 4000 fhandler_base::write: binary write
  378 6871424 [main] dd 4000 fhandler_base::write: binary write
  225 6871649 [main] dd 4000 fhandler_base::write: binary write
  383 6872032 [main] dd 4000 close: close (0)
   48 6872080 [main] dd 4000 __set_errno:
cygheap_fdget::cygheap_fdget(int, bool, bool):387 val 9
   52 6872132 [main] dd 4000 close: -1 = close (0)
  349 6872481 [main] dd 4000 close: close (1)
   48 6872529 [main] dd 4000 fhandler_base::close: closing '' handle
0x658
   54 6872583 [main] dd 4000 close: 0 = close (1)
  357 6872940 [main] dd 4000 close: close (2)
  143 6873083 [main] dd 4000 fhandler_base::close: closing '' handle
0x704
   58 6873141 [main] dd 4000 close: 0 = close (2)
  202 6873343 [main] dd 4000 do_exit: do_exit (256), exit_state 0
   57 6873400 [main] dd 4000 void: 0x0 = signal (20, 0x1)
   61 6873461 [main] dd 4000 void: 0x0 = signal (1, 0x1)
   48 6873509 [main] dd 4000 void: 0x0 = signal (2, 0x1)
   47 6873556 [main] dd 4000 void: 0x0 = signal (3, 0x1)
   49 6873605 [main] dd 4000 sigproc_terminate: entering
   62 6873667 [main] dd 4000 proc_terminate: nprocs 0
   49 6873716 [main] dd 4000 proc_terminate: leaving
  443 6874159 [main] dd 4000 set_console_title: title 'od'
   64 6874223 [main] dd 4000 do_exit: 4000 == sid 4000, send SIGHUP to
children
   99 6874322 [main] dd 4000 sigproc_terminate: sigproc handling not
active
   49 6874371 [main] dd 4000 proc_terminate: nprocs 0
   46 6874417 [main] dd 4000 proc_terminate: leaving
   51 6874468 [main] dd 4000 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 600864
   50 6874518 [main] dd 4000 __to_clock_t: total 00000000 0000003C
   52 6874570 [main] dd 4000 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 100144
   51 6874621 [main] dd 4000 __to_clock_t: total 00000000 0000000A
 1384 6876005 [main] dd 4000 pinfo::maybe_set_exit_code_from_windows:
pid 4000, exit value - old 0x80000100, windows 0xDEADBEEF, cygwin
0x80000100

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin 1.5.18 and //./PhysicalDrive??

Corinna Vinschen-2
On Nov  3 16:56, Loh, Joe wrote:

> Folks,
> Since updating the Cygwin 1.5.18, we started seeing problem similar to
> the what "dd" is experiencing.  The previous Cygwin DLL we used was
> Cygwin 1.5.16, at that works flawlessly.  Is anyone out there
> experiencing the same issue?
>
> I have reverted back to the Cygwin 1.5.16 and everything start working
> normally again.  Due to legacy support requirement we are still using
> the //./PhysicalDrive?? to accessing raw device in Cygwin.  
>
> I am also attaching the "strace" output at the end of this mail for the
> "dd" that failed.  Please advise what additional information is needed.
>
> See the example and result below:
>
> $ dd if=//./physicaldrive0 count=1 | od -x
> dd: opening `//./physicaldrive0': No such host or network path
> 0000000

Sorry, but using //./foo was deprecated already for a long time, see
http://cygwin.com/cygwin-ug-net/using-specialnames.html#id4676548


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin 1.5.18 and //./PhysicalDrive??

Corinna Vinschen-2
On Nov  4 10:53, Corinna Vinschen wrote:

> On Nov  3 16:56, Loh, Joe wrote:
> > Folks,
> > Since updating the Cygwin 1.5.18, we started seeing problem similar to
> > the what "dd" is experiencing.  The previous Cygwin DLL we used was
> > Cygwin 1.5.16, at that works flawlessly.  Is anyone out there
> > experiencing the same issue?
> >
> > I have reverted back to the Cygwin 1.5.16 and everything start working
> > normally again.  Due to legacy support requirement we are still using
> > the //./PhysicalDrive?? to accessing raw device in Cygwin.  
> >
> > I am also attaching the "strace" output at the end of this mail for the
> > "dd" that failed.  Please advise what additional information is needed.
> >
> > See the example and result below:
> >
> > $ dd if=//./physicaldrive0 count=1 | od -x
> > dd: opening `//./physicaldrive0': No such host or network path
> > 0000000
>
> Sorry, but using //./foo was deprecated already for a long time, see
> http://cygwin.com/cygwin-ug-net/using-specialnames.html#id4676548

It just occured to me that you still can use the same pathname when
using backslashes instead of forward slashes.

  dd if=\\\\.\\physicaldrive0 count=1 | od -x

works since paths with a backslash are treated as Win32 paths and are
not subject to the POSIX normalization and path conversion.

However, not that Win32 paths like the above are not treated as devices,
but as plain files.  For instance, you'll fail to use device specific
ioctls.


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply | Threaded
Open this post in threaded view
|

Re: Cygwin 1.5.18 and //./PhysicalDrive??

Corinna Vinschen-2
On Nov  4 11:06, Corinna Vinschen wrote:
> It just occured to me that you still can use the same pathname when
> using backslashes instead of forward slashes.
>
>   dd if=\\\\.\\physicaldrive0 count=1 | od -x
>
> works since paths with a backslash are treated as Win32 paths and are
> not subject to the POSIX normalization and path conversion.
>
> However, not that Win32 paths like the above are not treated as devices,
           ^^^
           note

> but as plain files.  For instance, you'll fail to use device specific
> ioctls.


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/