https://bugs.kde.org/show_bug.cgi?id=381815

Tom Hughes <t...@compton.nu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t...@compton.nu

--- Comment #1 from Tom Hughes <t...@compton.nu> ---
Well as far as I can see this means that macOS has not processed our fcntl
correctly.

What that code does is basically this:

  newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit));
  ...
  vg_assert(newfd >= VG_(fd_hard_limit));

Now the first line explicitly asks it to duplicate to an FD that is greater
than or equal to our fake hard limit (ie in the valgrind reserved space) and if
the assertion fails then that means it must have given us an FD less than that.

The only other option I guess is that the fcntl errored as we haven't checked
for that other than when deciding if to close the old descriptor.

Probably worth getting a system call trace (does macOS have strace/truss or
equivalent?) so we can see what that call is actually returning.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to