public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/5994] fflush after ungetc on seekable input stream
       [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
@ 2012-02-21  1:48 ` jsm28 at gcc dot gnu.org
  2013-10-17 12:05 ` eblake at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-21  1:48 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=5994

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |stdio

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug stdio/5994] fflush after ungetc on seekable input stream
       [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
  2012-02-21  1:48 ` [Bug stdio/5994] fflush after ungetc on seekable input stream jsm28 at gcc dot gnu.org
@ 2013-10-17 12:05 ` eblake at redhat dot com
  2013-10-17 12:09 ` eblake at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: eblake at redhat dot com @ 2013-10-17 12:05 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=5994

Eric Blake <eblake at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eblake at redhat dot com

--- Comment #3 from Eric Blake <eblake at redhat dot com> ---
(In reply to Ondrej Bilka from comment #2)
> > I'm not even going to look at this until something
> > at the standard level is decided.
> 
> A gnulib had a patch for this from 2009. 
> http://lists.gnu.org/archive/html/bug-gnulib/2009-01/msg00131.html
> 
> Was this also send to libc?

Not to my knowledge; POSIX 2013 is now explicit about fflush behavior, and
gnulib is still claiming that glibc fflush() is broken and needs a workaround.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug stdio/5994] fflush after ungetc on seekable input stream
       [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
  2012-02-21  1:48 ` [Bug stdio/5994] fflush after ungetc on seekable input stream jsm28 at gcc dot gnu.org
  2013-10-17 12:05 ` eblake at redhat dot com
@ 2013-10-17 12:09 ` eblake at redhat dot com
  2013-10-17 23:18 ` bugdal at aerifal dot cx
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: eblake at redhat dot com @ 2013-10-17 12:09 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=5994

Eric Blake <eblake at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bruno at clisp dot org

--- Comment #4 from Eric Blake <eblake at redhat dot com> ---
*** Bug 9754 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug stdio/5994] fflush after ungetc on seekable input stream
       [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-10-17 12:09 ` eblake at redhat dot com
@ 2013-10-17 23:18 ` bugdal at aerifal dot cx
  2013-10-17 23:30 ` eblake at redhat dot com
  2014-07-01 21:14 ` fweimer at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: bugdal at aerifal dot cx @ 2013-10-17 23:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=5994

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #5 from Rich Felker <bugdal at aerifal dot cx> ---
I'm not clear what the current glibc behavior is. Does it reflect the Austin
Group decision cited in the text of glibc bug 9754 (the one marked duplicate)
or is it still somewhere in between the correct (per Austin Group) behavior and
the (horribly wrong) behavior the original text of the standard demanded?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug stdio/5994] fflush after ungetc on seekable input stream
       [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-10-17 23:18 ` bugdal at aerifal dot cx
@ 2013-10-17 23:30 ` eblake at redhat dot com
  2014-07-01 21:14 ` fweimer at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: eblake at redhat dot com @ 2013-10-17 23:30 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=5994

--- Comment #6 from Eric Blake <eblake at redhat dot com> ---
(In reply to Rich Felker from comment #5)
> I'm not clear what the current glibc behavior is. Does it reflect the Austin
> Group decision cited in the text of glibc bug 9754 (the one marked
> duplicate) or is it still somewhere in between the correct (per Austin
> Group) behavior and the (horribly wrong) behavior the original text of the
> standard demanded?

Current glibc behavior is still broken.  The test program in this report is
what drove the Austin Group decision cited in glibc bug 9754.

When compiled, the foo.c in this report should output:

$ ./foo < foo.c
c = '#'
c = 'i'
ungetc result = '@'
after fflush, location = 1
c = 'i'
c = 'n'
$ ./foo 1 < foo.c
c = '#'
c = 'i'
ungetc result = 'i'
after fflush, location = 1
c = 'i'
c = 'n'

I tested on rawhide with glibc 2.18.90 gets it right in the second instance,
but is still broken in the first:

$ ./foo < foo.c
c = '#'
c = 'i'
ungetc result = '@'
after fflush, location = 581
c = 'n'
c = 'c'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug stdio/5994] fflush after ungetc on seekable input stream
       [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2013-10-17 23:30 ` eblake at redhat dot com
@ 2014-07-01 21:14 ` fweimer at redhat dot com
  5 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01 21:14 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=5994

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-07-01 21:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-5994-131@http.sourceware.org/bugzilla/>
2012-02-21  1:48 ` [Bug stdio/5994] fflush after ungetc on seekable input stream jsm28 at gcc dot gnu.org
2013-10-17 12:05 ` eblake at redhat dot com
2013-10-17 12:09 ` eblake at redhat dot com
2013-10-17 23:18 ` bugdal at aerifal dot cx
2013-10-17 23:30 ` eblake at redhat dot com
2014-07-01 21:14 ` fweimer at redhat dot com

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