Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread -1218520144 (LWP 5602)]
0x003656f1 in __nptl_create_event () from /lib/tls/libpthread.so.0
但如果我设置同样的断点,然后,按c。就不会出现这个信息。
结论:
上网查了下,说是Sometimes this happens when the instruction you are trying to execute is a breakpoint. 我觉得我遇到的情况属于这种。(我换了机器实验,也发现同样的问题,因此可以排除是硬件出现了问题。)