A memory debugging tool like Valgrind is well suited to this, though it's a fair amount of work to get this up and running. You might just run it through gdb and see where you are when it crashes.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果