Bug #2116

FD passing on 64-bit is hosed

Added by pavalos about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


I first discovered this by running dovecot2 from pkgsrc, and got the
following errors:

dovecot: imap-login: Error: fd_send(imap, 20) failed: Invalid argument

After some discussion on IRC, we came to the conclusion that something
isn't right with the CMSG macros on 64-bit systems.

Venkatesh Srinivas wrote a test program that I've attached to this email
that prints "hello" on 32-bit, and loops forever on 64-bit.


sendhack.c Magnifier (1.48 KB) pavalos, 08/17/2011 08:58 AM


#1 Updated by vsrinivas about 5 years ago


Should be fixed by commit 5e820acadf5cc517902dd1f2f730b31660f7768c.

You will need a full buildworld on amd64.

-- vs

Also available in: Atom PDF