public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] Cygwin 3.0.0-1
@ 2019-02-16 16:15 Corinna Vinschen
  2019-02-17 16:34 ` Andrey Repin
  0 siblings, 1 reply; 15+ messages in thread
From: Corinna Vinschen @ 2019-02-16 16:15 UTC (permalink / raw)
  To: cygwin

Hi folks,


I uploaded a new Cygwin release 3.0.0-1.

=======================================================================

What's new:
-----------

- Support for CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE,
  CLOCK_MONOTONIC_RAW, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM,
  CLOCK_BOOTTIME_ALARM clocks.

- Support for case sensitive directories.  mkdir(2) automatically
  creates directories within the Cygwin installation dir as case
  sensitive now.

  This feature requires Windows 10 1803 or later and WSL installed!

- New file ioctls's FS_IOC_GETFLAGS and FS_IOC_SETFLAGS.  The actual
  inode flags are Cygwin-specific.  This allows to set or reset
  DOS attributes, file sparseness, FS level encryption and compression,
  as well as directory case sensitivity programatically.

- New tools chattr(1) and lsattr(1) to utilize setting and viewing the
  aforementioned new ioctl's on the command line.

- Support for exFAT.

- Support Linux-specific open(2) flag O_PATH.

- Support Linux-specific linkat(2) flag AT_EMPTY_PATH.

- Support overrun counter for posix timers (via timer_getoverrun() or
  siginfo_t::si_overrun).

- New APIs: signalfd, timerfd_create, timerfd_gettime, timerfd_settime,
  timer_getoverrun.

- fork(2) now is able to recover from when an in-use executable/dll is
  removed or replaced during process runtime.  This feature is disabled by
  default and limited to exes/dlls on the same NTFS partition as the Cygwin
  installation.  For more information and how to enable, please refer to
  https://www.cygwin.com/cygwin-ug-net/highlights.html#ov-hi-process


What changed:
-------------

- clock_nanosleep, pthread_condattr_setclock and timer_create now support
  all clocks, except CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.

- clock_setres is a no-op now.

- Use the new POSIX unlink semantics on NTFS starting with Windows 10 1709.
  Deleting an in-use file now actually removes the file, rather than moving
  it to the recycler bin.

- Use the new POSIX rename semantics on NTFS starting with Windows 10 1809.
  Renaming a file to another in-use file now actually removes the other file,
  rather than moving it to the recycler bin.

- open(..., O_TMPFILE) now moves the file to the trash bin immediately,
  to free the parent directory.

- Wctype functions updated to Unicode 11.0.

- Remove matherr, and SVID and X/Open math library configurations.
  Default math library configuration is now IEEE.

- Improve uname(2) for newly built applications.

- Kerberos/MSV1_0 S4U authentication replaces two old methods:
  Creating a token from scratch and Cygwin LSA authentication package.

- Cygwin PIDs have been decoupled from Windows PID.  Cygwin PIDs are
  now incrementally dealt in the range from 2 up to 65535, POSIX-like.
  Native Windows processes not started by Cygwin processes are mapped
  into the range beyond 65535.


Bug Fixes
---------

- Fix a thread race when initializing CLOCK_MONOTONIC.
  Addresses: https://cygwin.com/ml/cygwin/2018-11/msg00017.html

- Fix early timeout from pthread_cond_timedwait.
  Addresses: https://cygwin.com/ml/cygwin/2018-11/msg00171.html

- Fix a bug in recognizing remote FAT/FAT32/exFAT correctly.

- Allow open(2)/stat(2)/linkat(2) of a file via /proc/PID/fd/DESCRIPTOR
  even if file has been deleted.
  Addresses: https://cygwin.com/ml/cygwin/2018-12/msg00125.html
             https://cygwin.com/ml/cygwin/2018-12/msg00028.html

- Fix a bug in select(2) when polling HANDLE-less descriptors.

- Fix WEOF handling in wctype functions.
  Addresses: https://cygwin.com/ml/cygwin/2018-12/msg00173.html

- Fix thread names in GDB when cygthreads get reused.

- Fix return value of gethostname in a border case.

- Disallow seteuid on disabled or locked out accounts.
  Addresses: https://cygwin.com/ml/cygwin/2019-01/msg00197.html

- Fix raise to work as required by POSIX.
  Addresses: https://cygwin.com/ml/cygwin/2019-01/msg00149.html

- Fix exception handling in pthreads.
  Addresses: https://cygwin.com/ml/cygwin/2019-01/msg00149.html

- Fix O_APPEND handling on files when calling non-Cygwin applications
  Addresses: https://cygwin.com/ml/cygwin/2019-02/msg00081.html

- Fix case correctness of passwd/group entries fetched via getpwnam
  or getgrnam.
  Addresses: https://cygwin.com/ml/cygwin/2019-02/msg00109.html

=======================================================================


Have fun,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-16 16:15 [ANNOUNCEMENT] Cygwin 3.0.0-1 Corinna Vinschen
@ 2019-02-17 16:34 ` Andrey Repin
  2019-02-17 16:51   ` Corinna Vinschen
  0 siblings, 1 reply; 15+ messages in thread
From: Andrey Repin @ 2019-02-17 16:34 UTC (permalink / raw)
  To: Corinna Vinschen, cygwin

Greetings, Corinna Vinschen!

> I uploaded a new Cygwin release 3.0.0-1.

The redirection issue I mentioned for 3.0-0.9 is still happens.
And I see the STC did not made it to the list.
Hamsters were hungry, I guess... Let's try without attachments.

TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -

Save it as .bat file.
Specify the path to diff.exe if necessary.


-- 
With best regards,
Andrey Repin
Sunday, February 17, 2019 18:24:26

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 16:34 ` Andrey Repin
@ 2019-02-17 16:51   ` Corinna Vinschen
  2019-02-17 17:20     ` Brian Inglis
                       ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Corinna Vinschen @ 2019-02-17 16:51 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

On Feb 17 18:28, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> 
> > I uploaded a new Cygwin release 3.0.0-1.
> 
> The redirection issue I mentioned for 3.0-0.9 is still happens.
> And I see the STC did not made it to the list.
> Hamsters were hungry, I guess... Let's try without attachments.
> 
> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -

I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
0 is a pipe and thus not seekable.  Nevertheless it calls lseek
just a bit later to seek back to the beginning of input.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 16:51   ` Corinna Vinschen
@ 2019-02-17 17:20     ` Brian Inglis
  2019-02-17 17:32       ` Andrey Repin
  2019-02-17 17:20     ` Andrey Repin
  2019-02-18  5:18     ` Brian Inglis
  2 siblings, 1 reply; 15+ messages in thread
From: Brian Inglis @ 2019-02-17 17:20 UTC (permalink / raw)
  To: cygwin

On 2019-02-17 09:42, Corinna Vinschen wrote:
> On Feb 17 18:28, Andrey Repin wrote:
>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>> And I see the STC did not made it to the list.
>> Hamsters were hungry, I guess... Let's try without attachments.
>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
> just a bit later to seek back to the beginning of input.

Appears to be running under Windows shell (TYPE) and pipe redirection - could
that make a difference under some Windows versions about what is known?

What are uname -srvmo and cmd /c ver?

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 16:51   ` Corinna Vinschen
  2019-02-17 17:20     ` Brian Inglis
@ 2019-02-17 17:20     ` Andrey Repin
  2019-02-18  8:31       ` Corinna Vinschen
  2019-02-18  5:18     ` Brian Inglis
  2 siblings, 1 reply; 15+ messages in thread
From: Andrey Repin @ 2019-02-17 17:20 UTC (permalink / raw)
  To: Corinna Vinschen, cygwin

Greetings, Corinna Vinschen!

> On Feb 17 18:28, Andrey Repin wrote:
>> Greetings, Corinna Vinschen!
>> 
>> > I uploaded a new Cygwin release 3.0.0-1.
>> 
>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>> And I see the STC did not made it to the list.
>> Hamsters were hungry, I guess... Let's try without attachments.
>> 
>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -

> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
> just a bit later to seek back to the beginning of input.

Do you need me to strace it locally?


-- 
With best regards,
Andrey Repin
Sunday, February 17, 2019 20:07:37

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 17:20     ` Brian Inglis
@ 2019-02-17 17:32       ` Andrey Repin
  2019-02-17 17:48         ` Brian Inglis
  0 siblings, 1 reply; 15+ messages in thread
From: Andrey Repin @ 2019-02-17 17:32 UTC (permalink / raw)
  To: Brian Inglis, cygwin

Greetings, Brian Inglis!

> On 2019-02-17 09:42, Corinna Vinschen wrote:
>> On Feb 17 18:28, Andrey Repin wrote:
>>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>>> And I see the STC did not made it to the list.
>>> Hamsters were hungry, I guess... Let's try without attachments.
>>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
>> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
>> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
>> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
>> just a bit later to seek back to the beginning of input.

> Appears to be running under Windows shell (TYPE) and pipe redirection - could
> that make a difference under some Windows versions about what is known?

> What are uname -srvmo and cmd /c ver?

It's Win7Pro/RUS SP1 64-bit, if that's what you were after.

(Can't install back 3.0 right now, but I'll do that later if it's important.)

$ cmd /c ver

Microsoft Windows [Version 6.1.7601]


-- 
With best regards,
Andrey Repin
Sunday, February 17, 2019 20:03:31

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 17:32       ` Andrey Repin
@ 2019-02-17 17:48         ` Brian Inglis
  2019-02-17 19:09           ` Andrey Repin
  0 siblings, 1 reply; 15+ messages in thread
From: Brian Inglis @ 2019-02-17 17:48 UTC (permalink / raw)
  To: cygwin

On 2019-02-17 10:07, Andrey Repin wrote:
>> On 2019-02-17 09:42, Corinna Vinschen wrote:
>>> On Feb 17 18:28, Andrey Repin wrote:
>>>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>>>> And I see the STC did not made it to the list.
>>>> Hamsters were hungry, I guess... Let's try without attachments.
>>>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
>>> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
>>> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
>>> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
>>> just a bit later to seek back to the beginning of input.
>> Appears to be running under Windows shell (TYPE) and pipe redirection - could
>> that make a difference under some Windows versions about what is known?
>> What are uname -srvmo and cmd /c ver?
> It's Win7Pro/RUS SP1 64-bit, if that's what you were after.
> (Can't install back 3.0 right now, but I'll do that later if it's important.)
> $ cmd /c ver
> Microsoft Windows [Version 6.1.7601]

No problems for me under Win10 1809 with previous Cygwin release - after current
upgrade:
> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
diff: -: Illegal seek

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 17:48         ` Brian Inglis
@ 2019-02-17 19:09           ` Andrey Repin
  2019-02-18  5:05             ` Brian Inglis
  0 siblings, 1 reply; 15+ messages in thread
From: Andrey Repin @ 2019-02-17 19:09 UTC (permalink / raw)
  To: Brian Inglis, cygwin

Greetings, Brian Inglis!

> On 2019-02-17 10:07, Andrey Repin wrote:
>>> On 2019-02-17 09:42, Corinna Vinschen wrote:
>>>> On Feb 17 18:28, Andrey Repin wrote:
>>>>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>>>>> And I see the STC did not made it to the list.
>>>>> Hamsters were hungry, I guess... Let's try without attachments.
>>>>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
>>>> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
>>>> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
>>>> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
>>>> just a bit later to seek back to the beginning of input.
>>> Appears to be running under Windows shell (TYPE) and pipe redirection - could
>>> that make a difference under some Windows versions about what is known?
>>> What are uname -srvmo and cmd /c ver?
>> It's Win7Pro/RUS SP1 64-bit, if that's what you were after.
>> (Can't install back 3.0 right now, but I'll do that later if it's important.)
>> $ cmd /c ver
>> Microsoft Windows [Version 6.1.7601]

> No problems for me under Win10 1809 with previous Cygwin release - after current
> upgrade:
>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
> diff: -: Illegal seek

Did we find a century old upstream bug? :)


-- 
With best regards,
Andrey Repin
Sunday, February 17, 2019 21:10:47

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 19:09           ` Andrey Repin
@ 2019-02-18  5:05             ` Brian Inglis
  0 siblings, 0 replies; 15+ messages in thread
From: Brian Inglis @ 2019-02-18  5:05 UTC (permalink / raw)
  To: cygwin

On 2019-02-17 11:11, Andrey Repin wrote:
> Greetings, Brian Inglis!
> 
>> On 2019-02-17 10:07, Andrey Repin wrote:
>>>> On 2019-02-17 09:42, Corinna Vinschen wrote:
>>>>> On Feb 17 18:28, Andrey Repin wrote:
>>>>>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>>>>>> And I see the STC did not made it to the list.
>>>>>> Hamsters were hungry, I guess... Let's try without attachments.
>>>>>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
>>>>> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
>>>>> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
>>>>> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
>>>>> just a bit later to seek back to the beginning of input.
>>>> Appears to be running under Windows shell (TYPE) and pipe redirection - could
>>>> that make a difference under some Windows versions about what is known?
>>>> What are uname -srvmo and cmd /c ver?
>>> It's Win7Pro/RUS SP1 64-bit, if that's what you were after.
>>> (Can't install back 3.0 right now, but I'll do that later if it's important.)
>>> $ cmd /c ver
>>> Microsoft Windows [Version 6.1.7601]
>> No problems for me under Win10 1809 with previous Cygwin release - after current
>> upgrade:
>>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
>> diff: -: Illegal seek
> Did we find a century old upstream bug? :)

Days old:

$ uname -srvmo
CYGWIN_NT-10.0 3.0.0(0.336/5/3) 2019-02-16 13:21 x86_64 Cygwin

worked fine with no problems under 2.11.2-1 days before with the same OS:

$ cmd /c ver
Microsoft Windows [Version 10.0.17763.292]

[OT: as someone who made money from necessary, auditable, trackable, repeatable
Y2K fixes to systems, other stupid, short sighted, amnesiac orgs still omitting
the century from years makes me spitting mad, hoping they crash and burn
pathetically and soon, as they deserve!]

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 16:51   ` Corinna Vinschen
  2019-02-17 17:20     ` Brian Inglis
  2019-02-17 17:20     ` Andrey Repin
@ 2019-02-18  5:18     ` Brian Inglis
  2 siblings, 0 replies; 15+ messages in thread
From: Brian Inglis @ 2019-02-18  5:18 UTC (permalink / raw)
  To: cygwin

On 2019-02-17 09:42, Corinna Vinschen wrote:
> On Feb 17 18:28, Andrey Repin wrote:
>>> I uploaded a new Cygwin release 3.0.0-1.
>> The redirection issue I mentioned for 3.0-0.9 is still happens.
>> And I see the STC did not made it to the list.
>> Hamsters were hungry, I guess... Let's try without attachments.
>> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
> I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
> with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
> 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
> just a bit later to seek back to the beginning of input.

Does not happen under mintty, only cmd, does the below help?

 > ver

Microsoft Windows [Version 10.0.17763.292]

 > uname -srvmo
CYGWIN_NT-10.0 3.0.0(0.336/5/3) 2019-02-16 13:21 x86_64 Cygwin

 > diff --version
diff (GNU diffutils) 3.5
Packaged by Cygwin (3.5-2)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

 > cat /var/log/setup.log | strace -o diff.strace diff -u /var/log/setup.log -
diff: -: Illegal seek
cat: write error: No space left on device

 > less diff.strace
...
   41   63902 [main] diff 43744 _cygwin_istext_for_stdio: fd 3: opened as binary
  359   64261 [main] diff 43744 setmode_helper: improbable, but 0 != 3
  347   64608 [main] diff 43744 setmode_helper: improbable, but 1 != 3
  349   64957 [main] diff 43744 setmode_helper: improbable, but 2 != 3
   47   65004 [main] diff 43744 read: read(3, 0x600063390, 65536) blocking
   93   65097 [main] diff 43744 fhandler_base::read: returning 65536, binary mode
   43   65140 [main] diff 43744 read: 65536 = read(3, 0x600063390, 65536)
   90   65230 [main] diff 43744 fhandler_base::set_flags: flags 0x10000,
supplied_bin 0x0
   39   65269 [main] diff 43744 fhandler_base::set_flags: O_TEXT/O_BINARY set in
flags 0x10000
   38   65307 [main] diff 43744 fhandler_base::set_flags: filemode set to binary
   38   65345 [main] diff 43744 _setmode: (0<>, 0x10000) returning text
   39   65384 [main] diff 43744 _cygwin_istext_for_stdio: fd 0: opened as binary
  162   65546 [main] diff 43744 setmode_helper: file was binary now binary
  286   65832 [main] diff 43744 setmode_helper: improbable, but 1 != 0
  287   66119 [main] diff 43744 setmode_helper: improbable, but 2 != 0
^^^
*No strace of _fwalk calling setmode_helper for comparison with 0, and continues
to compare against 1 and 2? Should _fwalk return if !fp->flags?*

   39   66158 [main] diff 43744 read: read(0, 0x600073490, 65536) blocking
  109   66267 [main] diff 43744 fhandler_base::read: returning 65536, binary mode
   47   66314 [main] diff 43744 read: 65536 = read(0, 0x600073490, 65536)
   43   66357 [main] diff 43744 fhandler_pipe::lseek: (-65536, 1)
   40   66397 [main] diff 43744 __set_errno: virtual off_t
fhandler_pipe::lseek(off_t, int):165 setting errno 29
   39   66436 [main] diff 43744 lseek64: -1 = lseek(0, -65536, 1), errno 29
...

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-17 17:20     ` Andrey Repin
@ 2019-02-18  8:31       ` Corinna Vinschen
  2019-02-18 10:10         ` Corinna Vinschen
  0 siblings, 1 reply; 15+ messages in thread
From: Corinna Vinschen @ 2019-02-18  8:31 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

On Feb 17 20:07, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> 
> > On Feb 17 18:28, Andrey Repin wrote:
> >> Greetings, Corinna Vinschen!
> >> 
> >> > I uploaded a new Cygwin release 3.0.0-1.
> >> 
> >> The redirection issue I mentioned for 3.0-0.9 is still happens.
> >> And I see the STC did not made it to the list.
> >> Hamsters were hungry, I guess... Let's try without attachments.
> >> 
> >> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
> 
> > I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
> > with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
> > 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
> > just a bit later to seek back to the beginning of input.
> 
> Do you need me to strace it locally?

No, the above is what I gathered from strace, but thanks all the
same.  Patch is forthcoming.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-18  8:31       ` Corinna Vinschen
@ 2019-02-18 10:10         ` Corinna Vinschen
  2019-02-18 11:21           ` Andrey Repin
  0 siblings, 1 reply; 15+ messages in thread
From: Corinna Vinschen @ 2019-02-18 10:10 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]

On Feb 18 09:28, Corinna Vinschen wrote:
> On Feb 17 20:07, Andrey Repin wrote:
> > Greetings, Corinna Vinschen!
> > 
> > > On Feb 17 18:28, Andrey Repin wrote:
> > >> Greetings, Corinna Vinschen!
> > >> 
> > >> > I uploaded a new Cygwin release 3.0.0-1.
> > >> 
> > >> The redirection issue I mentioned for 3.0-0.9 is still happens.
> > >> And I see the STC did not made it to the list.
> > >> Hamsters were hungry, I guess... Let's try without attachments.
> > >> 
> > >> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
> > 
> > > I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
> > > with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
> > > 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
> > > just a bit later to seek back to the beginning of input.
> > 
> > Do you need me to strace it locally?
> 
> No, the above is what I gathered from strace, but thanks all the
> same.  Patch is forthcoming.

Please try the today's developer snapshot from
https://cygwin.com/snapshots/

Please note that cygcheck and mount utils need to be taken from the
snapshot as well to mke sure they work correctly in terms of binary/text
mounts.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-18 10:10         ` Corinna Vinschen
@ 2019-02-18 11:21           ` Andrey Repin
  2019-02-18 11:48             ` Houder
  2019-02-18 14:46             ` Corinna Vinschen
  0 siblings, 2 replies; 15+ messages in thread
From: Andrey Repin @ 2019-02-18 11:21 UTC (permalink / raw)
  To: Corinna Vinschen, cygwin

Greetings, Corinna Vinschen!

>> > >> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
>> > 
>> > > I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
>> > > with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
>> > > 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
>> > > just a bit later to seek back to the beginning of input.
>> > 
>> > Do you need me to strace it locally?
>> 
>> No, the above is what I gathered from strace, but thanks all the
>> same.  Patch is forthcoming.

> Please try the today's developer snapshot from
> https://cygwin.com/snapshots/

Looks file at a first glance.

> Please note that cygcheck and mount utils need to be taken from the
> snapshot as well to mke sure they work correctly in terms of binary/text
> mounts.

The snapshot only contains a lonely cygwin1.dll.


-- 
With best regards,
Andrey Repin
Monday, February 18, 2019 14:00:32

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-18 11:21           ` Andrey Repin
@ 2019-02-18 11:48             ` Houder
  2019-02-18 14:46             ` Corinna Vinschen
  1 sibling, 0 replies; 15+ messages in thread
From: Houder @ 2019-02-18 11:48 UTC (permalink / raw)
  To: cygwin

On Mon, 18 Feb 2019 14:01:40, Andrey Repin  wrote:
[snip]

> The snapshot only contains a lonely cygwin1.dll.

You have to download the tar(.xz) file ...

See faq for further details.

Henri


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Cygwin 3.0.0-1
  2019-02-18 11:21           ` Andrey Repin
  2019-02-18 11:48             ` Houder
@ 2019-02-18 14:46             ` Corinna Vinschen
  1 sibling, 0 replies; 15+ messages in thread
From: Corinna Vinschen @ 2019-02-18 14:46 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

On Feb 18 14:01, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> 
> >> > >> TYPE "%SystemRoot%\win.ini" | diff -u "%SystemRoot%\win.ini" -
> >> > 
> >> > > I'm baffled.  diff calls fstat on descriptor 0.  fstat returns
> >> > > with st_mode set to S_IFIFO | S_IRUSR, so it *knows* descriptor
> >> > > 0 is a pipe and thus not seekable.  Nevertheless it calls lseek
> >> > > just a bit later to seek back to the beginning of input.
> >> > 
> >> > Do you need me to strace it locally?
> >> 
> >> No, the above is what I gathered from strace, but thanks all the
> >> same.  Patch is forthcoming.
> 
> > Please try the today's developer snapshot from
> > https://cygwin.com/snapshots/
> 
> Looks file at a first glance.

👍

Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-02-18 14:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-16 16:15 [ANNOUNCEMENT] Cygwin 3.0.0-1 Corinna Vinschen
2019-02-17 16:34 ` Andrey Repin
2019-02-17 16:51   ` Corinna Vinschen
2019-02-17 17:20     ` Brian Inglis
2019-02-17 17:32       ` Andrey Repin
2019-02-17 17:48         ` Brian Inglis
2019-02-17 19:09           ` Andrey Repin
2019-02-18  5:05             ` Brian Inglis
2019-02-17 17:20     ` Andrey Repin
2019-02-18  8:31       ` Corinna Vinschen
2019-02-18 10:10         ` Corinna Vinschen
2019-02-18 11:21           ` Andrey Repin
2019-02-18 11:48             ` Houder
2019-02-18 14:46             ` Corinna Vinschen
2019-02-18  5:18     ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).