Ruby testsuite failures because of pointer mangling on 32-bit ARM?

Andrew Pinski pinskia@gmail.com
Wed Dec 11 02:02:00 GMT 2013


On Tue, Dec 10, 2013 at 2:36 PM, David Miller <davem@davemloft.net> wrote:
> From: pinskia@gmail.com
> Date: Tue, 10 Dec 2013 11:57:03 -0800
>
>> Hmm, shouldn't ruby be using makecontext/restore context instead of
>> setjmp/longjmp for this purpose?  I think we should declare this as
>> a bug in ruby.
>
> I honestly think that what Ruby is doing is quite reasonable.

How so, jmp_buf is supposed to be an opaque structure.  If a program
depends on the context of an opaque structure, then it is a bug in the
program rather than the library which changes what the opaque
structure contains.  This is the whole point of using
makecontext/restorecontext instead, those structures are not designed
to be opaque.

Thanks,
Andrew Pinski



More information about the Libc-alpha mailing list