Bug ID: 227285
           Summary: File descriptor passing does not work reliably on SMP
                    system (cache coherency issue?)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
 Attachment #192211 text/plain
         mime type:

Created attachment 192211
test program

The attached program repeatedly spawns a child process that creates a
socketpair. One socket is passed back to the parent. One byte is written into
the other end. The parent should be able to read this byte, but sometimes 0
(EOF) is returned.

It seems that the parent reuses stale socket/sockbuf memory from prior

To simplify the fd passing I've used fd_send/fd_recv from libnv. Those use
SCM_RIGHTS under the hood. The program must be compiled with 'cc -O3 fdpass.c

You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to