[Openmcl-devel] Illegal Instruction in CCL 1.11.5 on Musl Libc

Waldek Hebisch hebisch at math.uni.wroc.pl
Sun Dec 15 07:17:31 PST 2019


Will Sinatra wrote:
> 
> I'm trying to get CCL packaged for Alpine Linux, and have had some
> success, but ended up hitting a bit of a wall.
> 
> I'm able to get an lx86cl64 image to compile, however when I go to run
> it I get an illegal instruction error, when I run the newly compiled
> binary through gdb it provides:
> 
> Program received signal SIGILL, Illegal instruction.
> remap_spjump () at ../pmcl-kernel.c:1568
> 1568      memmove(new, old, 0x1000);

Wild guess: you may have misaligned data.  IME (with other programs)
such error appear because C rules says that data is properly
ligned and gcc calls optimized routine using SSE or AVX instructions.

Easy to verify disassembling and looking at registers.

-- 
                              Waldek Hebisch



More information about the Openmcl-devel mailing list