[Mesa-dev] powerpc / gallium/drivers/llvmpipe segfaults running lp_test_* tests

Jose Fonseca jfonseca at vmware.com
Wed Jul 4 05:33:16 PDT 2012


----- Original Message -----
> On Tue, 2012-07-03 at 16:07 -0500, Will Schmidt wrote:
> > (gdb) info reg r3
> > r3             0xfffb7f60010	17590977429520
> > (gdb) info reg r10
> > r10            0x7c0802a6f8010010	8937396376665391120
> 
> BenH points out to me that r10 value looks like code.
>  ppcdis 0x7c0802a6
> mflr    r0
> 
>  ppcdis 0xf8010010
> std     r0,16(r1)
> 
> So we are getting a pointer to the actual code, rather than a OPD
> (function descriptor).
> 
> I'll dig into this more...
> 
> Thanks,
> -Will

I'm not familair with PowerPc architecture.

Does llvm/examples/HowToUseJIT/HowToUseJIT.cpp work well there?

If so then you can take a look at lib/ExecutionEngine/JIT/JIT.cpp 's JIT::runFunction method, and compare what's happening differently.

Jose


More information about the mesa-dev mailing list