[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenBSD: Services problems
From: |
David Chisnall |
Subject: |
Re: OpenBSD: Services problems |
Date: |
Wed, 7 Sep 2011 11:15:09 +0100 |
On 7 Sep 2011, at 10:53, Richard Frith-Macdonald wrote:
> This will probably make things work, but the problem is, this means we always
> trust the method signature in the invocation (which might not actually
> contain the same type info that the remote system would give us).
This is usually the right thing to do. We need the type information for two
things:
1) Deconstructing the stack frame that the sender created
2) Constructing the stack frame that the receiver wanted
Modulo compiler bugs, the types of the sending selector will always correspond
to the structure of the associated stack frame. If there is a type mismatch
between the sender and receiver, then we have a problem and there's no general
way that we can recover from it, although we can in some simple cases (e.g.
sign-extending I/i to Q/q).
If the sender does not have correct type information, then it will generate a
call frame that is almost certainly nonsense. In this case, Apple will happily
corrupt your stack for you, but it would be more helpful to print a back trace
and abort.
David
-- Sent from my Difference Engine
- OpenBSD: Services problems, Riccardo Mottola, 2011/09/06
- Re: OpenBSD: Services problems, Fred Kiefer, 2011/09/07
- Re: OpenBSD: Services problems, Richard Frith-Macdonald, 2011/09/07
- Re: OpenBSD: Services problems,
David Chisnall <=
- Re: OpenBSD: Services problems, Fred Kiefer, 2011/09/08
- Re: OpenBSD: Services problems, Riccardo Mottola, 2011/09/08
- Re: OpenBSD: Services problems, Riccardo Mottola, 2011/09/09
- Re: OpenBSD: Services problems, Riccardo Mottola, 2011/09/11
- Re: OpenBSD: Services problems, Fred Kiefer, 2011/09/12
- Re: OpenBSD: Services problems, Riccardo Mottola, 2011/09/12
- Re: OpenBSD: Services problems, Riccardo Mottola, 2011/09/12
- Re: OpenBSD: Services problems, Fred Kiefer, 2011/09/12
- Re: OpenBSD: Services problems, Richard Frith-Macdonald, 2011/09/12
- Re: OpenBSD: Services problems, Fred Kiefer, 2011/09/12