gdb调试段错误出现问题了。
(gdb)runStartingprogram:/home/master/代码/C++编程思想/2章防御性编程/SimpleDateTestinitialinitiald...
(gdb) run
Starting program: /home/master/代码/C++编程思想/2章防御性编程/SimpleDateTest
initial
initial done
test year done
test month done
test day done
nPass:3
nFail:0
all done
Program received signal SIGSEGV, Segmentation fault.
0x0000000a in ?? ()
(gdb) bt
#0 0x0000000a in ?? ()
#1 0x0000001e in ?? ()
#2 0xbffff414 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
这个就比较好玩了,以前连错误在哪一行都告诉我,这次直接3个问号,gdb都问号了,那我去问谁啊…… 展开
Starting program: /home/master/代码/C++编程思想/2章防御性编程/SimpleDateTest
initial
initial done
test year done
test month done
test day done
nPass:3
nFail:0
all done
Program received signal SIGSEGV, Segmentation fault.
0x0000000a in ?? ()
(gdb) bt
#0 0x0000000a in ?? ()
#1 0x0000001e in ?? ()
#2 0xbffff414 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
这个就比较好玩了,以前连错误在哪一行都告诉我,这次直接3个问号,gdb都问号了,那我去问谁啊…… 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询