当我点击关闭窗口返回时,我的 Qt5 应用程序崩溃了:
MyApp(28741,0x7fff7aa73000) malloc: *** error for object 0x7fc40bc8e300: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
The program has unexpectedly finished.
如何在 Qt Creator 4 (Mac OS) 中“在 malloc_error_break 中设置断点进行调试”?
应该更好地通过 lldb/gdb 中的终端来完成,怎么样?
参考:如何查找应用程序关闭时崩溃的原因? https://stackoverflow.com/questions/38170727/how-to-find-reason-for-app-crash-on-close
In Breakpoints window, right click->Add Breakpoint... change Breakpoint type to Function name and type malloc_error_break
in Funcion:. Another way is to open Debugger Console (Cmd+5) and type b malloc_error_break
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)