runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[ARM/Linux] JIT32_GCENCODER is not switched for _TARGET_ARM_

Open papaslavik opened this issue 10 years ago • 7 comments

There's a naming related question of whether it's good that JIT32_GCENCODER is only defined (and actually supported) for TARGET_X86 which, for instance, leads to a call of CodeGen::genCreateAndStoreGCInfoX64 for TARGET_ARM when we try to crossgen-build mscorlib.ni.dll for ARM on Linux.

crossgen mscorlib.ni.dll for ARM eventually crashes with an illegal opcode Program received signal SIGILL, Illegal instruction. 0xb6d2abe4 in main_arena () from /lib/arm-linux-gnueabihf/libc.so.6

papaslavik avatar May 06 '16 13:05 papaslavik

/cc @pgavlin

papaslavik avatar May 06 '16 13:05 papaslavik

/cc @leemgs @myungjoo

papaslavik avatar May 11 '16 13:05 papaslavik

The code of crossgen/jit32_gcencoder looks as if ARM-support was dropped in the middle of development (other archs don't look too different as well). What's the "policy" or "direction" on the development of crossgen? Is it going to be discontinued? (and merged into corert?)

myungjoo avatar Jun 03 '16 05:06 myungjoo

From some comments in code I got that someone already wondered about CodeGen::genCreateAndStoreGCInfoX64 defined for ARM architecture.

It sounds like it's the portable way.

Also I specially looked through all of the uses of JIT32_GCENCODER and didn't see any 64-bit specific stuff there.

papaslavik avatar Jun 03 '16 11:06 papaslavik

@myungjoo is there any progress on the mscorlib.ni.dll building for ARM?

According to the crash I saw the last time, it was some stack corruption. I think that it was a stack corruption since in the crash place it wouldn't show the whole backtrace, but you could walk into the crash place from outside...

papaslavik avatar Jun 03 '16 11:06 papaslavik

@papaslavik Nope. I have tried juggling around for crossgen and mscorlib.ni.dll. But I do not have any clue yet and I think I'd better get back to coreclr and corefx unit test fail cases.

myungjoo avatar Jun 05 '16 13:06 myungjoo

I don't think this issue is relevant any more.

AndyAyersMS avatar Feb 19 '19 08:02 AndyAyersMS