lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.94k stars 548 forks source link

Crashes on startup with SIGILL #61

Closed torhve closed 10 years ago

torhve commented 10 years ago

This happens in a KVM Virtual Machine:

Program received signal SIGILL, Illegal instruction.
0x000000000040c854 in hash_crc32.lto_priv ()
(gdb) bt
#0  0x000000000040c854 in hash_crc32.lto_priv ()
#1  0x000000000040ce99 in hash_add ()
#2  0x0000000000406517 in lwan_tpl_compile_string ()
#3  0x0000000000405652 in lwan_init ()

4 0x000000000040474c in main ()

lpereira commented 10 years ago

This is known on CPUs without CRC32C instructions. No runtime checks are performed yet, but this will be fixed soon. In the meantime, try using a debug build, which uses a different code path.

torhve commented 10 years ago

Which CPU-flag is it? I might be able to configure my hypervisor to provide it. SSE4.2 ?

lpereira commented 10 years ago

Yes, SSE4.2.

torhve commented 10 years ago

Thank you, it works now. You can close this issue, unless you want to keep it open as a reminder until it is fixed.