This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ls \\\\\?\\DRIVE\\ Aborted (core dumped)
On 2019-09-23 16:26, Andrey Repin wrote:
>> On 2019-09-23 09:02, Ken Brown wrote:
>>> On 9/23/2019 10:42 AM, Mark Zhitomirski wrote:
>>>> While trying different path names I've hit the following crash:
>>>> $ ls \\\\\?\\DRIVE\\
>>>> assertion "p >= path" failed: file
>>>> "/home/corinna/src/cygwin/cygwin-3.0.7/cygwin-3.0.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/path.cc",
>>>> line 2916, function: int symlink_info::check(char*, const
>>>> suffix_info*, fs_info&, path_conv_handle&)
>>>> Aborted (core dumped)
> $ ls -ld \\\\\?\\C:\\
> drwxr-xr-x 1 anrdaemon None 0 сен 13 23:19 '\\?\C:\'
> WJFFM
>>> Thanks for the report. I can confirm the crash. I'll look into it.
>> Although:
>> $ ll $SYSTEMDRIVE\\
>> lists normally, the owner and group is the current user, whereas the correct
>> owners and groups are shown by:
>> $ ll /proc/cygdrive/c/
> That did not work for me, both show current user:group.
> For reference,
> fstab:
> none / cygdrive noacl,binary,nouser,posix=0 0 0
> $ mount
> C: on /c type ntfs (binary,noacl,posix=0,noumount,auto)
>> and Cygwin really does not like the entries in:
>> $ ll \\\\\?\\*\\
>> use of any name instead of *, or none causes a crash:
>> $ ll \\\\\?\\Boot\\
>> $ ll \\\\\?\\
> I wonder, what have you tried to reach here?
The Win 32 unlimited absolute path length file name space \\?\,
just as \\.\ is the Win 32 device name space:
https://docs.microsoft.com/en-ca/windows/win32/fileio/naming-a-file
Compare:
> fsutil fsinfo ntfsinfo \\.\C:
NTFS Volume Serial Number : 0x80ffb5d906b8d438
NTFS Version : 3.1
LFS Version : 2.0
Number Sectors : 0x00000000744bc466
Total Clusters : 0x000000000e89788c
Free Clusters : 0x0000000009861b37
Total Reserved : 0x000000000000b4b0
Bytes Per Sector : 512
Bytes Per Physical Sector : 4096
Bytes Per Cluster : 4096
Bytes Per FileRecord Segment : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length : 0x00000000e4f00000
Mft Start Lcn : 0x00000000000ad74c
Mft2 Start Lcn : 0x0000000000000002
Mft Zone Start : 0x000000000522ce40
Mft Zone End : 0x0000000005239660
Max Device Trim Extent Count : 0
Max Device Trim Byte Count : 0x0
Max Volume Trim Extent Count : 62
Max Volume Trim Byte Count : 0x40000000
> fsutil fsinfo ntfsinfo C:
NTFS Volume Serial Number : 0x80ffb5d906b8d438
NTFS Version : 3.1
LFS Version : 2.0
Number Sectors : 0x00000000744bc466
Total Clusters : 0x000000000e89788c
Free Clusters : 0x0000000009861b37
Total Reserved : 0x000000000000b4b0
Bytes Per Sector : 512
Bytes Per Physical Sector : 4096
Bytes Per Cluster : 4096
Bytes Per FileRecord Segment : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length : 0x00000000e4f00000
Mft Start Lcn : 0x00000000000ad74c
Mft2 Start Lcn : 0x0000000000000002
Mft Zone Start : 0x000000000522ce40
Mft Zone End : 0x0000000005239660
Max Device Trim Extent Count : 0
Max Device Trim Byte Count : 0x0
Max Volume Trim Extent Count : 62
Max Volume Trim Byte Count : 0x40000000
Resource Manager Identifier : 99B60DE5-842F-11E1-98AF-D71846560B56
^ Object Identifier
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple