Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* sendmsg and recvmsg and binary compatibility from 3.2 to 5.0?
@ 2000-11-27  5:00 Jens-Uwe Mager
  2000-11-28  5:00 ` Andrew Duane USG
  0 siblings, 1 reply; 5+ messages in thread
From: Jens-Uwe Mager @ 2000-11-27  5:00 UTC (permalink / raw)


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?

-- 
Jens-Uwe Mager	<pgp-mailto:62CFDB25>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sendmsg and recvmsg and binary compatibility from 3.2 to 5.0?
  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
  2000-11-28  5:00   ` Jens-Uwe Mager
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Duane USG @ 2000-11-28  5:00 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sendmsg and recvmsg and binary compatibility from 3.2 to 5.0?
  2000-11-28  5:00 ` Andrew Duane USG
@ 2000-11-28  5:00   ` Jens-Uwe Mager
  2000-11-29  5:00     ` Andrew Duane USG
  0 siblings, 1 reply; 5+ messages in thread
From: Jens-Uwe Mager @ 2000-11-28  5:00 UTC (permalink / raw)


On 28 Nov 2000 13:09:04 GMT, Andrew Duane USG <duane@magma.uucp> wrote:

>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.

Thanks for confirming that. At what level was that patched, e.g. 5.0A or
5.1?

-- 
Jens-Uwe Mager	<pgp-mailto:62CFDB25>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sendmsg and recvmsg and binary compatibility from 3.2 to 5.0?
  2000-11-28  5:00   ` Jens-Uwe Mager
@ 2000-11-29  5:00     ` Andrew Duane USG
  2000-12-01  5:00       ` Jens-Uwe Mager
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Duane USG @ 2000-11-29  5:00 UTC (permalink / raw)


In article <slrn928c4i.n6.jum@anubis.han.de> jum@anubis.han.de (Jens-Uwe Mager) writes:
>Thanks for confirming that. At what level was that patched, e.g. 5.0A or
>5.1?

It is in the release of V5.1, and in the latest patch kits
for both V5.0 and V5.0A

--

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sendmsg and recvmsg and binary compatibility from 3.2 to 5.0?
  2000-11-29  5:00     ` Andrew Duane USG
@ 2000-12-01  5:00       ` Jens-Uwe Mager
  0 siblings, 0 replies; 5+ messages in thread
From: Jens-Uwe Mager @ 2000-12-01  5:00 UTC (permalink / raw)


Andrew Duane USG <duane@magma.uucp> wrote:
> In article <slrn928c4i.n6.jum@anubis.han.de> jum@anubis.han.de (Jens-Uwe Mager) writes:
>>Thanks for confirming that. At what level was that patched, e.g. 5.0A or
>>5.1?

> It is in the release of V5.1, and in the latest patch kits
> for both V5.0 and V5.0A

Hmm, I just installed the latest patch kit for 5.0 from the service web
server (t64v50as0002-20000324.tar) and the problem is still there.
Anything else I can try?

-- 
Jens-Uwe Mager	<pgp-mailto:62CFDB25>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-12-01  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2000-11-28  5:00   ` Jens-Uwe Mager
2000-11-29  5:00     ` Andrew Duane USG
2000-12-01  5:00       ` Jens-Uwe Mager

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