Skip to content

Commit b2e9c5e

Browse files
committed
Continue with EBADF in AutoRemoteSyscalls::retrieve_fd_arch too.
bin/rr --fatal-errors --check-cached-mmaps record bin/pid_ns_reap [FATAL src/AutoRemoteSyscalls.cc:659:retrieve_fd_arch() errno: EBADF] (task 693273 (rec:693273) at time 308) -> Assertion `errno == ENOSYS' failed to hold. Failed in pidfd_getfd errno=EBADF Is there a reason not to continue here? Seems to just show up with "--fatal-errors --check-cached-mmaps".
1 parent 7936141 commit b2e9c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoRemoteSyscalls.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ template <typename Arch> ScopedFd AutoRemoteSyscalls::retrieve_fd_arch(int fd) {
655655
if (ret.is_open()) {
656656
return ret;
657657
}
658-
ASSERT(t, errno == ENOSYS) << "Failed in pidfd_getfd errno=" << errno_name(errno);
658+
ASSERT(t, errno == ENOSYS || errno == EBADF) << "Failed in pidfd_getfd errno=" << errno_name(errno);
659659
}
660660

661661
// Clear out any pending message in the socket.

0 commit comments

Comments
 (0)