This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



> On Dec 10, 2013, at 11:18 AM, David Miller <davem@davemloft.net> wrote:
> 
> From: "Carlos O'Donell" <carlos@redhat.com>
> Date: Tue, 10 Dec 2013 13:28:09 -0500
> 
>> If it's actually looking into the jmpbuf we can claim undefined
>> behaviour and shutdown the bug as a ruby issue.
>> 
>> I haven't seen any bespoke per-target code in Ruby that actually
>> looks into the jmpbuf, have you?
> 
> There is a lot of tricky stuff that ruby does wrt. stack frames.
> 
> It copies thread stack blocks around, and even has specialized code
> to handle sparc register windows and IA64 register stacks.
> 
> Take a look at cont_save_machine_stack in cont.c for example.


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.

Thanks,
Andrew Pinski 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]