如何调试在Ubuntu中单分割故障没有任何调试? [英] How do I debug a segmentation fault in Mono on Ubuntu without any debugger?
问题描述
我有最近分裂,以经由本地套接字彼此连通单独进程中运行的应用程序。我在日趋稳定,为核心的守望者的过程可以检测故障并重新启动受灾子进程的希望拆分出来。
I have an application that I recently split to run in separate processes that communicate with each other via local sockets. I split it out in hopes of increasing stability, as the core "watcher" process can detect a failure and restart the afflicted sub-process.
不过,现在我的watcher进程经常与只有消息分段故障崩溃。我已经包围try / catch块的所有线程操作,以试图转储任何输出,但我仍然得到同样的结果。
However, now my watcher process frequently crashes with only the message "Segmentation Fault". I've surrounded all threaded operations in try/catch blocks to try to dump any output, but I still get the same results.
我一直无法获得调试在MonoDevelop中工作(这样的发展一直相当困难没有这些鬼问题)。
I have been unable to get the debugger to work in MonoDevelop (so development has been difficult enough without these ghost issues).
不是单应该是在托管环境中,以防止此类问题吗?
有什么办法,我可以缩小问题的根源?
Isn't Mono supposed to be in a managed environment to prevent issues like this? Is there any way I can narrow down the source of the issue?
推荐答案
那么,它一定有什么事情我的插座线程。我切换到使用开始/结束的功能,而不是处理线程自己和固定的问题。
Well, it must have been something with my threading of sockets. I switched to using the Begin/End functions instead of handling the threading myself and that fixed the issue.
这篇关于如何调试在Ubuntu中单分割故障没有任何调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!