Problems when reading special procfs file #25596
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-io
OS: 4.4.0-4-ARCH
Reading special procfs file (e.g.
/proc/$PID/smaps
) as chunk does not always return a full chunk before reaching EOF.Currently Dart determines EOF by trying to read BLOCK_SIZE of bytes and checking if the length of returned bytes equals to BLOCK_SIZE, which may fail in such special circumstances. Relevant code is here and here, maybe more.
And here's a simple test in C:
The text was updated successfully, but these errors were encountered: