Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <900apg$5o78$1@lead.zk3.dec.com> (raw)
In-Reply-To: slrn925rar.o2.jum@anubis.han.de

In article <slrn925rar.o2.jum@anubis.han.de> 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




  reply	other threads:[~2000-11-28  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-27  5:00 sendmsg and recvmsg and binary compatibility from 3.2 to 5.0? Jens-Uwe Mager
2000-11-28  5:00 ` Andrew Duane USG [this message]
2000-11-28  5:00   ` Jens-Uwe Mager
2000-11-29  5:00     ` Andrew Duane USG
2000-12-01  5:00       ` Jens-Uwe Mager
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox