XWin copy/paste succeeds on Windows 7, crashes on Windows 11 Enterprise.

2023-11-03 Thread Stone, Timothy M via Cygwin
Hi folks, I'm having a really hard time debugging this issue. If I use the exact same version of cygwin and XWin, exact same code, exact same Motif GUI app... I find that when I try to use copy/paste functionality in TextFieldWidgets: *Cut/Copy/Paste works perfectly on Windows 7

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Christian Franke
Corinna Vinschen wrote: On Nov 3 17:27, Corinna Vinschen wrote: On Nov 3 17:09, Christian Franke wrote: Unlike (S)ATA and NVMe, the serial number is not available for free in the device identify data block but requires an extra command (SCSI INQUIRY of VPD page 0x80). This might not be

Re: [cygport RFC PATCH 1/1] Run install functions separately

2023-11-03 Thread ASSI via Cygwin-apps
Adam Dinwoodie via Cygwin-apps writes: > When running as part of a `&&` chain, Bash's `set -e` behaviour is > suppressed entirely, which means calls that produce non-zero error codes > will be ignored if they're called inside functions that are part of such > a chain. > > To avoid silent failures

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
On Nov 3 17:27, Corinna Vinschen wrote: > On Nov 3 17:09, Christian Franke wrote: > > Unlike (S)ATA and NVMe, the serial number > > is not available for free in the device identify data block but requires an > > extra command (SCSI INQUIRY of VPD page 0x80). This might not be supported > > by

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
On Nov 3 17:09, Christian Franke wrote: > Corinna Vinschen wrote: > > I haven't found out where the UUID is coming from, yet, but based on the > > description from > > https://learn.microsoft.com/en-us/windows-hardware/drivers/storage/device-unique-identifiers--duids--for-storage-devices > > I

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Christian Franke
Corinna Vinschen wrote: On Nov 3 12:10, Corinna Vinschen wrote: On Nov 3 11:09, Corinna Vinschen wrote: On Nov 3 10:55, Corinna Vinschen wrote: On Oct 3 14:39, Christian Franke wrote: According to NtQueryObject(., ObjectBasicInformation, ...), using NtOpenFile(., MAXIMUM_ALLOWED, ...)

Re: Question on statically linking with cygwin

2023-11-03 Thread Johannes Thoma via Cygwin
Hi, As I promised some updates below. Am 02.11.23 um 18:33 schrieb Johannes Thoma via Cygwin: [...] Interesting. But how (from a developers perspective) do you link cygwin1.dll statically into a binary? I would build my own cygwin1.lib or cygwin1.a and statically link against it. If you do

Re: Cant install Cygwin Virt-manager that asks for library that asks for python2

2023-11-03 Thread Jon Turney via Cygwin
On 01/11/2023 09:46, Adam Dinwoodie via Cygwin wrote: On Wed, 1 Nov 2023 at 06:33, Bill Sharp via Cygwin wrote: On Tue, 31 Oct 2023 at 22:58, Jānis Ķengurs via Cygwin wrote: [...] Python2 was removed in July, and per Jon's announcement it was expected this would break some orphaned

Re: Watch open/read/write/close WIndows syscalls with strace ?

2023-11-03 Thread Jon Turney via Cygwin
On 02/11/2023 18:21, Roland Mainz via Cygwin wrote: We're trying to debug mysterious sporadic I/O issues in Windows native git ('/cygdrive/c/Program Files/Git/cmd/git') started from Cygwin 3.5.0 mintty.exe ... ... which raises the question: How can I watch the Windows syscalls for file

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
On Nov 3 12:10, Corinna Vinschen wrote: > On Nov 3 11:09, Corinna Vinschen wrote: > > On Nov 3 10:55, Corinna Vinschen wrote: > > > On Oct 3 14:39, Christian Franke wrote: > > > > According to NtQueryObject(., ObjectBasicInformation, ...), using > > > > NtOpenFile(., MAXIMUM_ALLOWED, ...)

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
On Nov 3 12:06, Christian Franke wrote: > Corinna Vinschen wrote: > > > I ran this on Windows 11 and Windows 2K19 in a QEMU/KVM VM. A > > > \Device\Harddisk0\Partition0 symlink pointing to \Device\Harddisk0\DR0 > > > exists in both cases. I straced it, and found the following debug > > >

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
On Nov 3 11:09, Corinna Vinschen wrote: > On Nov 3 10:55, Corinna Vinschen wrote: > > On Oct 3 14:39, Christian Franke wrote: > > > According to NtQueryObject(., ObjectBasicInformation, ...), using > > > NtOpenFile(., MAXIMUM_ALLOWED, ...) without admin rights sets > > > GrantedAccess > > > to

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Christian Franke
Corinna Vinschen wrote: On Nov 3 10:55, Corinna Vinschen wrote: Hi Christian, On Oct 3 14:39, Christian Franke wrote: Christian Franke wrote: This is a first attempt to partly emulate the Linux directory /dev/disk/by-id. Useful to make sure the correct device is accessed in conjunction

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
On Nov 3 10:55, Corinna Vinschen wrote: > Hi Christian, > > On Oct 3 14:39, Christian Franke wrote: > > Christian Franke wrote: > > > This is a first attempt to partly emulate the Linux directory > > > /dev/disk/by-id. Useful to make sure the correct device is accessed in > > > conjunction with

Re: [PATCH] Cygwin: Add /dev/disk/by-id symlinks

2023-11-03 Thread Corinna Vinschen
Hi Christian, On Oct 3 14:39, Christian Franke wrote: > Christian Franke wrote: > > This is a first attempt to partly emulate the Linux directory > > /dev/disk/by-id. Useful to make sure the correct device is accessed in > > conjunction with dd, ddrescue, fdisk, > > Attached is the second