wxHaskell Mac OS X运行时错误

时间:2012-08-05 20:05:16

标签: macos haskell wxwidgets runtime-error wxhaskell

我按照these说明在OS X Lion上安装了wxWidgets(使用Homebrew)和wxHaskell。没有错误。

当我尝试示例here时,第一个Hello World示例运行正常。但是,当我尝试运行Bouncing Balls示例时,我得到:

  

Main(98350,0x7fff72edd960)malloc: * 对象0x10e121580错误:未释放指针

我正在建设

  

ghc - 制作Main.hs

当我只是运行可执行文件时,我收到了该错误。如果我使用macosx-app将其捆绑到应用程序中,它只会崩溃(可能是相同的错误)。 我已经尝试重新安装wxWidgets和Haskell软件包,但错误仍然存​​在。

使用gdb:

Main(10236,0x7fff72edd960) malloc: *** error for object 0x102b68580: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT, Aborted.
0x00007fff83cc7ce2 in __pthread_kill ()
(gdb) backtrace
#0  0x00007fff83cc7ce2 in __pthread_kill ()
#1  0x00007fff891077d2 in pthread_kill ()
#2  0x00007fff890f8a7a in abort ()
#3  0x00007fff8915784c in free ()
#4  0x00007fff866d0702 in std::string::_Rep::_M_dispose ()
#5  0x00007fff866d0740 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string ()
#6  0x00000001017e779a in wxString::~wxString ()
#7  0x00000001018957c8 in wxEventBasicPayloadMixin::~wxEventBasicPayloadMixin ()
#8  0x0000000101879da5 in wxCommandEvent::~wxCommandEvent ()
#9  0x0000000101894b42 in wxEvtHandler_GetClosure ()
#10 0x0000000100276f91 in s19gn_info ()

0 个答案:

没有答案