Ruby 1.9 Ramaze App Failing with “Illegal instruction”

前端 未结 2 809
后悔当初
后悔当初 2021-01-20 02:41

I\'ve got an app that I\'m trying to get working again after wiping my system and installing Snow Leopard. I installed Ruby 1.9 from Macports (now a later version) and the d

相关标签:
2条回答
  • 2021-01-20 03:41

    "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.
    0 讨论(0)
  • 2021-01-20 03:42

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

    0 讨论(0)
提交回复
热议问题