Ruby 1.9 Ramaze App Failing with "Illegal Instruction"

Ruby 1.9 Ramaze App Failing with Illegal instruction

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

Authlogic save causing 502 Bad Gateway error, Illegal Instruction in Rails console

This sounds like it's related to Ruby 1.9 Ramaze App Failing with “Illegal instruction”.

Jörg W Mittag said:

"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.

The original question submitter Phil Kulak replied that he had found a stack overflow causing the error.

Windows 8 says database.db doesn't exist, but my ramaze app says it does 8 (works on Windows 7)

I fixed the problem by setting the compatibility mode for bin/ruby.exe to Windows 7.



Related Topics



Leave a reply



Submit