public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps@cygwin.com
Subject: Re: [GOLDSTAR] Re: fflush(NULL) clobbers input streams
Date: Wed, 19 Jul 2017 17:20:00 -0000	[thread overview]
Message-ID: <4dcac102-4fb3-f7d2-a746-947d8ebe615b@cornell.edu> (raw)
In-Reply-To: <20170719170313.GC10516@calimero.vinschen.de>

On 7/19/2017 1:03 PM, Corinna Vinschen wrote:
> On Jul 19 10:45, Corinna Vinschen wrote:
>> On Jul 18 22:16, Ken Brown wrote:
>>> On 7/18/2017 6:41 PM, Ken Brown wrote:
>>>> On 7/18/2017 3:21 PM, Achim Gratz wrote:
>>>>> Corinna Vinschen writes:
>>>>>> Oh, and a plain C testcase, of course...
>>>>>
>>>>> Call that fflush.c:
>>>>> [...]
>>>>> Then run:
>>>>>
>>>>> gcc fflush.c -o fflush
>>>>> cat fflush.c | ./fflush 2>/dev/null > fflush.out
>>>>> diff fflush.c fflush.out
>>>>>
>>>>> If things are working, fflush.c and fflush.out should be identical.
>>>>> Currently only the first line makes it into fflush.out on Cygwin.
>>>>
>>>> I've checked that the 2017-03-08 snapshot is good and the 2017-03-10
>>>> snapshot is bad.  I'll bisect further when I get a chance
>>>
>>> Done:
>>>
>>> 44b1746a41921533d27aca414a9188314cb725b6 is the first bad commit
>>> commit 44b1746a41921533d27aca414a9188314cb725b6
>>> Author: Corinna Vinschen <corinna@vinschen.de>
>>> Date:   Fri Mar 10 20:21:09 2017 +0100
>>>
>>>      errno: Stop using _impure_ptr->_errno completely
>>>
>>>      We use errno AKA _REENT->_errno since the last century and only set
>>>      _impure_ptr->_errno for backward compat.  Stop that.  Also, remove
>>>      the last check for _impure_ptr->_errno in Cygwin code.
>>>
>>> Ken
>>
>> Achim, thanks for the testcase.  Ken, thanks for bisecting.  You're
>> my hero!
>>
>> I reverted the patch and created new developer snapshots.
> 
> I forgot the gold star.  Thanks again, Ken!

Glad I could do it.  And thanks for the hero comment.  You made my day.

Ken

  reply	other threads:[~2017-07-19 17:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-17 17:53 Achim Gratz
2017-07-18  9:55 ` Corinna Vinschen
2017-07-18 10:51   ` Corinna Vinschen
2017-07-18 19:21     ` Achim Gratz
2017-07-18 22:41       ` Ken Brown
2017-07-19  2:16         ` Ken Brown
2017-07-19  8:46           ` Corinna Vinschen
2017-07-19 17:03             ` [GOLDSTAR] " Corinna Vinschen
2017-07-19 17:20               ` Ken Brown [this message]
2017-07-19 20:40               ` Andrew Schulman
2017-07-19 17:11             ` Achim Gratz
2017-07-19 17:03           ` Achim Gratz
2017-07-18 18:33   ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4dcac102-4fb3-f7d2-a746-947d8ebe615b@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).