That is because x64 doesn't use table in its VM.


From: Zhongwei Yao
Sent: Sunday, August 28, 2:28 AM
Subject: Re: VM error while trying to dump emitted machine code in tnew.lua
To: Dikshit, Abhishek
Cc: luajit@lists.linaro.org

Thanks for your update. But why this doesn't fail on x64?

On 27 August 2016 at 07:36, Dikshit, Abhishek <Abhishek.Dikshit@cavium.com> wrote:

Ok. Got the response on another list.

The name “table” in the test case is causing problem.

 

The test case needs to be updated to not use keyword “table” as a name for table.

Abhishek Dikshit

 

From: luajit [mailto:luajit-bounces@lists.linaro.org] On Behalf Of Dikshit, Abhishek
Sent: Friday, August 26, 2016 2:53 PM
To: luajit@lists.linaro.org
Subject: VM error while trying to dump emitted machine code in tnew.lua

 

Hi All

I am getting following error when I try to dump the machine code for test/tnew.lua

 

$ ./luajit -jon -jdump=m ../test/tnew.lua

---- TRACE 1 start tnew.lua:1

---- TRACE 1 mcode 316

VM handler failed: ./jit/dis_arm.lua:439: attempt to call upvalue 'concat' (a nil value)

 

 

$ ./luajit -jon -jdump=m ../test/tnew.lua

---- TRACE 1 start tnew.lua:1

---- TRACE 1 mcode 384

VM handler failed: ./jit/dis_arm64.lua:755: attempt to call upvalue 'concat' (a nil value)

 

 

The error is seen on ARM64 and ARM32 but not on x64.

I am having tough time to debug the asm_tbar function for failure of test_tnew. Any suggestion is welcome.

 

Abhishek Dikshit

_______________________________________________
luajit mailing list
luajit@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/luajit



--

Best regards,

Zhongwei