Red Hat Bugzilla – Bug 60184
fgetc() / fread() on different devices
Last modified: 2007-04-18 12:40:30 EDT
A thread blocked by fgetc() waiting for input from one device causes lockup of
another thread using fread() access on a *different* device. When lowlevel IO is
used on one of the devices, instead of the C library calls, the problem disappears.
Always reproducible, apparently regardless of thread priority
1. Have a thread that calls fgetc() and blocks waiting for input from serial line.
2. Have another thread that calls fread() trying to read from RAM filesystem.
The thread using fread() locks up.
The thread using fread() successfully reads data from the RAM filesystem.
Might be related to fflush.cxx
The change of 2001-12-05 <email@example.com> in
was applied without success.
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id=60184