Ruby 1.9 Ramaze App Failing with “Illegal instruction”

爷,独闯天下 提交于 2019-12-01 21:01:56

"Illegal instruction" is usually an error message from the CPU meaning some piece of binary code you tried to run contained an instruction that is not implemented on that particular CPU.

This can have multiple reasons:

  • The binary was compiled with optimization settings for the wrong CPU. The CPU vendors add new instructions all the time, if the compiler optimizes for a CPU that is newer than the one you have, it might have emitted an instruction that your CPU doesn't understand.
  • The compiler is broken.
  • The binary is corrupted.
  • The code you are compiling contains assembly code or intrinsics containing instructions that your CPU doesn't have.

Got it! Appropriately enough, the error was caused by a stack overflow.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!