当我尝试运行我的exe时,我得到了Trace / BPT陷阱核心转储。请让我知道你的建议。
time /backup/SStore/CODE/Smain.exe 00257947
SROMain running with trace level. 0
InitEstimateServer
About to SetUpStockBuildMonitorSet up StockBuildMonitorProcessed 2 records
Trace/BPT trap(coredump)
real 0m14.17s
user 0m9.88s
sys 0m0.08s
在尝试通过下面的dbx(核心文件)调试之后输出:
/usr/bin/dbx32 /backup/SStore/CODE/Smain.exe core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...
Trace/BPT trap in SalcDayList::GetNumberOfDeliveries() at line 92 in file "/backup/SStore/CODE/salclist.C" ($t1)
92 return m_numberOfDels;
请提出补救措施....
答案 0 :(得分:0)
你可能已经在编译阶段打开了数组边界检查(或类似的东西)。这会产生一个产生该消息的陷阱。
修复你的数组绑定错误 - 我想它可能已经在线上了。