El mar, 3 dic 2024 a las 18:33, Samuel Thibault (<samuel.thiba...@gnu.org>) escribió: > > And nothing else after that? fclose() would need to be run inside gdb to > make sure where exactly it returns an error. Possibly it's simply > _IO_do_flush that doesn't work for /dev/zero, but this doesn't show up > in the RPCs above.
I traced it to the function `io_write` from `libhurduser.so.3` which is returning 1. Where is the code for that DLL? Also, it's quite difficult without the source code. I've downloaded glibc-source and extracted the tar.xz. How do I instruct gdb to use those files? Thanks