[問題] gdb error看不懂

作者: thestitch (奇寶寶)   2012-12-18 20:24:19
如題....請大家幫幫忙> ~ <以下gdb到底是在抱怨什麼...
0xb7d93a0e in ?? () from /lib/i386-linux-gnu/libc.so.6
(gdb) up
#1 0xb7f8f51f in operator delete(void*) ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) up
#2 0xb7f8f57b in operator delete[](void*) ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) up
#3 0xb7f47c7f in std::basic_filebuf<char, std::char_traits<char> >::_M_destroy_internal_buffer() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) up
#4 0xb7f489c7 in std::basic_filebuf<char, std::char_traits<char> >::close() ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) up
#5 0xb7f48eff in std::basic_fstream<char, std::char_traits<char> >::~basic_fstream() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) up
#6 0x08056b26 in CirMgr::readCircuit (this=0x8073748, fileName=...)
at cirMgr.cpp:186
186 return true;
(gdb) up
#7 0x08053542 in CirReadCmd::exec (this=0x80732b0, option=...)
at cirCmd.cpp:93
93 if (!cirMgr->readCircuit(fileName)) {
(gdb) up
#8 0x0804f419 in CmdParser::execOneCmd() ()
(gdb) up
#9 0x0804a525 in main (argc=1, argv=0xbffff364) at main.cpp:65
65 status = cmdMgr->execOneCmd();
(gdb) up
Initial frame selected; you cannot go up.
========================================================
作者: ypf791 (路人1號)   2012-02-18 21:23:00
file.close() ? (瞎猜)
作者: thestitch (奇寶寶)   2012-02-18 21:49:00
沒用QAQ~
作者: steve1012 (steve)   2012-02-18 22:26:00
你已經跑到她頂端啦不能在上去了up是有極限的這不是程式的錯誤的樣子
作者: ric2k1 (Ric)   2012-02-18 23:11:00
感覺是你 readCircuit 在 return 的時候呼叫了某個 localvariable (應該是 string type) 的 destructor, 但是它的memory 是有問題的...
作者: thestitch (奇寶寶)   2012-02-18 23:16:00
修改修改之後...目前(疑似)可以work了先感謝大家>~<...有問題會在PO

Links booklink

Contact Us: admin [ a t ] ucptt.com