Ruby 1.9 Ramaze 应用程序因“非法指令”而失败

发布于 2024-08-30 00:53:14 字数 152 浏览 4 评论 0原文

我有一个应用程序,在擦除系统并安装 Snow Leopard 后,我正尝试使其再次运行。我从 Macports(现在是更高版本)安装了 Ruby 1.9,开发服务器启动得很好,但在第一个请求时就死掉了,只告诉我“非法指令”。我不知道是什么原因造成的,甚至不知道如何调试它。有人有什么想法吗?

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 dev server starts up just fine, but then dies on the first request, only telling me "Illegal instruction". I have no idea what's causing this or even how to go about debugging it. Does anyone have any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不回头走下去 2024-09-06 00:53:14

“非法指令”通常是来自 CPU 的错误消息,意味着您尝试运行的某些二进制代码包含未在该特定 CPU 上实现的指令。

这可能有多种原因:

  • 二进制文件是使用错误的 CPU 优化设置进行编译的。 CPU 供应商一直在添加新指令,如果编译器针对比您现有的 CPU 更新的 CPU 进行优化,它可能会发出您的 CPU 无法理解的指令。
  • 编译器坏了。
  • 二进制文件已损坏。
  • 您正在编译的代码包含汇编代码或内部函数,其中包含您的 CPU 没有的指令。

"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.
葬心 2024-09-06 00:53:14

知道了!确切地说,该错误是由堆栈溢出引起的。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文