精華區beta EE_DSnP 關於我們 聯絡資訊
終於要開始寫parser 可是一開始就碰到問題... 我在.h檔宣告以後想說先寫個breset來看看 CmdExecStatus BRESETCmd::exec(const string& option) { vector<string> options; if(!CmdExec::lexOptions(option, options)) return CMD_EXEC_ERROR; if(options.size()<3) return CmdExec::errorOption(CMD_OPT_MISSING, ""); return CMD_EXEC_DONE; } 結果我在終端機輸入 bdd> breset Missing option!! bdd> breset s Missing option!! *** glibc detected *** free(): invalid pointer: 0x08083a98 *** 已經終止 打breset是正確...但後面只要有東西就不行... 請問這是怎麼一回事咧?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.229.229.142
ric2k1:用 debugger 看到底是 crash 在哪裡吧... 01/18 14:47
ric2k1:建議的 debugger commands: up/down/where 01/18 14:48
timrau:change another set of library files. 01/18 21:55