public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/27602] New: fflush(NULL) hangs when getc() ongoing
@ 2021-03-18 10:59 samuel.thibault@ens-lyon.org
  2021-03-18 11:23 ` [Bug stdio/27602] " schwab@linux-m68k.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2021-03-18 10:59 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27602
           Summary: fflush(NULL) hangs when getc() ongoing
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: samuel.thibault@ens-lyon.org
  Target Milestone: ---

Created attachment 13320
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13320&action=edit
testcase

Hello,

The attached testcase hangs: a thread is blocked in getc(stdin), and the main
thread tries to call fflush(NULL), but that tries to lock stdin, and that's
already locked by getc, and thus cannot proceed.

Samuel

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

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

end of thread, other threads:[~2021-03-18 12:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 10:59 [Bug stdio/27602] New: fflush(NULL) hangs when getc() ongoing samuel.thibault@ens-lyon.org
2021-03-18 11:23 ` [Bug stdio/27602] " schwab@linux-m68k.org
2021-03-18 11:28 ` samuel.thibault@ens-lyon.org
2021-03-18 11:45 ` schwab@linux-m68k.org
2021-03-18 11:54 ` samuel.thibault@ens-lyon.org
2021-03-18 12:01 ` schwab@linux-m68k.org
2021-03-18 12:07 ` samuel.thibault@ens-lyon.org

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