Discussion:
Bochs Strangeness
(too old to reply)
Justin Berman
2005-04-29 02:44:23 UTC
Permalink
I have implemented most everythign except single and double indirection.
I can run p5test once and follow that with write and cat or vice
versa, but for some reason if I try to run p5test again it hangs
Creating a file in a recursive directory every time. It also hangs the
same way when I shutdown bochs and then restart it and attempt to run
p5test again. Only a gmake clean fixes the issue.

Can I request that the TAs gmake clean on my project before running it a
second time?

-Justin
Iulian Neamtiu
2005-04-29 03:45:34 UTC
Permalink
Post by Justin Berman
I have implemented most everythign except single and double indirection.
I can run p5test once and follow that with write and cat or vice
versa, but for some reason if I try to run p5test again it hangs
Creating a file in a recursive directory every time. It also hangs the
same way when I shutdown bochs and then restart it and attempt to run
p5test again. Only a gmake clean fixes the issue.
Can I request that the TAs gmake clean on my project before running it a
second time?
Nope. You probably have a problem in Delete or CreateDirectory (do you
wipe out the new directory upon creation ?).

Iulian
Justin Berman
2005-04-29 05:26:03 UTC
Permalink
Oddly Enough, now the problem only happens when I close bochs after
running p5 and attempt to run p5 again. If I run p5test immediately
after running it in the same bochs session, it causes lots of tests to
fail, but I cant find a reason why yet.

If the graders run p5test multiple times and find that I get a high
score the first time, and a significantly reduced score the second, will
I get the average of the two scores, or the higher score, or something else?

thanks
Justin
Justin Berman
2005-04-29 05:46:11 UTC
Permalink
Sorry to reply to my own post, I realise why the p5test cant be run
multiple times in a single bochs session, but I have now made sure I
release ALL FS_Buffers except the superblock and the root directory by
the end of create dir and delete.

This does not make sense to me though, I thought that memory should
*not* be persistent over multiple bochs incarnations, but it seems as
though memory is persistent or else all the FS_Buffers would be erased
anyway.

This error is really throwing me for a loop.

Thanks,
Justin

Loading...