From: Paul F. <pj...@wa...> - 2025-04-17 06:32:14
|
On 4/16/25 22:12, Paul Floyd via Valgrind-developers wrote: > > > The track_new testcase isn't working on FreeBSD. If I add the > POST_newFd_RES macro to POST(sys_openat) > then I see the fds being assigned from VG_(fd_hard_limit) downwards > but when ML_(fd_allowed)() is called from PRE(sys_write) I don't see > that openbadfd->fd_closed is set for the closed fd. > > Need more debugging of what's happening during close. > I think FreeBSD dprintf is being clever and seeing that the fd is closed. Outside of Valgrind I was seeing a call to write() but not when running under Valgrind. I'll try using just plain write() rather than dprintf(). A+ Paul |