From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a48a9facb2163dd5 X-Google-Attributes: gidfa528,public From: duane@magma.uucp (Andrew Duane USG) Subject: Re: sendmsg and recvmsg and binary compatibility from 3.2 to 5.0? Date: 2000/11/28 Message-ID: <900apg$5o78$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 698661613 References: X-Complaints-To: iass@ajo.zk3.dec.com X-Trace: lead.zk3.dec.com 975416944 188648 16.140.48.243 (28 Nov 2000 13:09:04 GMT) Organization: Digital Equipment Corporation NNTP-Posting-Date: 28 Nov 2000 13:09:04 GMT Newsgroups: comp.unix.tru64 In article jum@anubis.han.de (Jens-Uwe Mager) writes: >I am seeing strange errors (EINVAL) logged from binaries compiled under >DEC Unix 3.2D if run under True64 5.0 (but the same binary runs fine >under 4.0x). These errors pop up in recvmsg and sendmsg system calls. A >quick and dirty test with one of the many modules tells me that if I >recompile under 5.0 that the problem goes away. > >>From perusing the struct msghdr I would believe this could be due to the >change of of the type of msg_iovlen in one of the variants, but >shouldn't this change be invisible to old binaries? Or is binary >compatibility limited in this area and 3.2 stuff does not run on 5.0? It is a known and patched bug. When the iovlen field was changed from 32 to 64 bits, four system calls were missed: sendmsg, recvmsg, osendmsg, and orecvmsg. Recompiling under V5.0 will correct the problem, it is only older binaries that exhibit it (compiled under V3.x or V4.x). Another workaround is to explicitly zero the msghdr structures before passing them to the system calls - the problem is garbage in the upper 32 bits that used to be unused. -- Andrew L. Duane (JOT-7) duane@zk3.dec.com Compaq Computer Corporation (603)-884-1294 110 Spit Brook Road M/S ZKO3-3/U14 Nashua, NH 03062-2698