经过相当长的一段时间后,我想再次在我的MacBook上进行haxe开发。所以我继续haxe.org,下载mac安装程序并安装最新版本的haxe。
然后我打开终端并输入haxe
,只是为了遇到这个简短的错误消息:
Bus Error
嗯,我做错了什么?我正在使用OSX 10.4,这个操作系统不支持最新版本的haxe吗?
更新
查看系统日志,我发现在调用安装程序后,出现以下消息:
Nov 12 18:12:16 my-computer authexec: executing /Volumes/haXe Installer/haXe Installer.app/Contents/MacOS/hxinst-osx
Setting FD_CLOEXEC on all file descriptors
Initializing child but not closing any file descriptors...
Initializing child but not closing any file descriptors...
Nov 12 18:13:25 my-computer crashdump[1655]: haxe crashed
Nov 12 18:13:25 my-computer crashdump[1655]: crash report written to: /Users/myuser/Library/Logs/CrashReporter/haxe.crash.log
另外,在调查崩溃日志时,我得到了崩溃导致的异常的名称:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
有什么想法吗?我正在进一步研究这个问题。
答案 0 :(得分:0)
总线错误意味着程序本身已损坏(具体而言,这意味着程序使用了未对齐或完全垃圾指针)。要找出原因,您可以尝试附加gdb(gdb haxe)并进行探索
答案 1 :(得分:0)
安装程序很可能是针对OS X的更高版本(10.5或10.6)构建的。您可以在系统日志中找到更多信息(/Applications/Utilities/Console.app)。您可以在Haxe community中提问,或者,如果您有勇气,可以尝试building your own version from source。