作者victoret (戏言~)
看板EE_DSnP
标题[问题] Dofile 的问题
时间Thu Oct 27 20:49:22 2011
在还没修改过 openDofile 和 closeDofile 之前
直接去 make 之後
输入 do ./dofiles/do1
会显示出如下的状况
mcalc> do ./dofiles/do1
mcalc> help
DOfile: execute the commands in the dofile
HELp: print this help message
HIStory: print command history
MADD: perform modular number addition
MCOMPare: compare if two variables or values are equal
MMULTiply: perform modular number multiplication
MPrint: print the variables of the modular number calculator
MSET: set the modulus of the modular number calculator
MSUBtract: perform modular number subtraction
MVARiable: set the variable value of the modular number calculator
Quit: quit the execution
mcalc>
程式记忆体区段错误
想请问一下,这个 " 程式记忆体区段错误 " 是来自於哪里???
--
理所当然的某项事物,却会以某天为区隔,从此变得不再理所当然。
恩田陆 夜间远足
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.25.108
1F:推 ric2k1:你这个情况还算是单纯的,用ddd/gdb trace一下就知道原因啦 10/27 21:05
2F:→ djshen:close的时候_dofile没有=0? 10/27 22:28
3F:→ victoret:感谢教授和楼上的回答... 10/27 23:51
4F:→ victoret:结果因为 TODO 写在 delete 的上面...就傻傻的以为只能在 10/27 23:52
5F:→ victoret:delete 之前修改了...囧ˊˋ 10/27 23:52
6F:→ victoret:不过随便加一些东西到 openDofile 或是 closeDofile 都很 10/27 23:58
7F:→ victoret:容易造成整个 ubuntu 当在那里不能动... 10/27 23:59
8F:→ victoret:用 ddd 比较保险一点@@ 10/27 23:59
9F:推 vuluy:我就当掉好几次XD 10/28 00:52
10F:→ victoret:用 ddd + xkill 可以省下不少麻烦 10/28 01:05