VOGONS


First post, by cyberwalker

User metadata
Rank Newbie
Rank
Newbie

I got page faults while compiling C++ files in Borland BC4.52
and Microsoft VC1.52 on the latest CVS build. I have tested
the same files on DosBox 0.63 release and found no this issue.
I hope the next release will fix it.

Attachments

  • Filename
    Log_paging.zip
    File size
    7.34 KiB
    Downloads
    147 downloads
    File license
    Fair use/fair dealing exception
Last edited by cyberwalker on 2005-07-12, 00:21. Edited 1 time in total.

Reply 5 of 15, by cyberwalker

User metadata
Rank Newbie
Rank
Newbie
wd wrote:

Also could you post some debug logs?

Here is the image of debug session.

Attachments

  • Filename
    bcpagefault.PNG
    File size
    55.11 KiB
    Downloads
    135 downloads
    File license
    Fair use/fair dealing exception

Reply 6 of 15, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Does it behave if you set the memory to some large values
like 64 or so? And did exchanging the paging.cpp-file
(maybe cpu.cpp as well) work?

If you have a debugger-enabled compile (that is the dosbox
debugger) you can generate debug logs that contain some
information about the pagefaults (have a look at paging.cpp
to have it output even more infos like register values).

wd

Reply 7 of 15, by cyberwalker

User metadata
Rank Newbie
Rank
Newbie
wd wrote:
If you have a debugger-enabled compile (that is the dosbox debugger) you can generate debug logs that contain some information a […]
Show full quote

If you have a debugger-enabled compile (that is the dosbox
debugger) you can generate debug logs that contain some
information about the pagefaults (have a look at paging.cpp
to have it output even more infos like register values).
wd

To keep the exe file small, I build DOSBOX with required options only.
Even so, the release target produced by VS2005 is almost 900K. As I can debug it within IDE, I don't want to build it with debugger-enabled.

wd wrote:

Does it behave if you set the memory to some large values
like 64 or so? And did exchanging the paging.cpp-file
(maybe cpu.cpp as well) work?

No. I did the tests on default settings come with CVS builds.

Reply 8 of 15, by cyberwalker

User metadata
Rank Newbie
Rank
Newbie
HunterZ wrote:

It's worth a try. It may be useful to do a diff and see if anything sticks out.

wd wrote:

And did exchanging the paging.cpp-file
(maybe cpu.cpp as well) work?

Yes. You are right. I replaced paging.cpp with the one from 0.63 release and did a CVS build. It works.

Reply 9 of 15, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

> To keep the exe file small, I build DOSBOX with required options only.
> Even so, the release target produced by VS2005 is almost 900K. As I can
> debug it within IDE, I don't want to build it with debugger-enabled.

The VS-Debugger is no replacement for the dosbox debugger.
The latter is capable of debugging the dos-applications (in
your case BC4/VC1.5) and supplies additional information
like unemulated aspects.
If you can provide either debug logs of the dosbox debugger
running the program, or examples (like the executables needed
to reproduce the problem, but be aware of copyright issues)
it might be possible to fix it.

wd

Reply 11 of 15, by cyberwalker

User metadata
Rank Newbie
Rank
Newbie
HunterZ wrote:

cyberwalker: So the next thing I'd try is to see what changed in that file between 0.63 and CVS that might cause the behavior you're seeing.

I think you are right, but I don't understand paging of DOSBOX.

Reply 12 of 15, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I got bc5 and that one still works
maybe you can attach a sample sourcefile ?
as I did a mere hello world

Water flows down the stream
How to ask questions the smart way!

Reply 13 of 15, by cyberwalker

User metadata
Rank Newbie
Rank
Newbie
Qbix wrote:

I got bc5 and that one still works
maybe you can attach a sample sourcefile ?
as I did a mere hello world

The test source requires Borland Power Pack, it can not be built in BC5.x. I have got the log files by paging.cpp of CVS and 0.63 release(Thank wd). The log files are attached to the original post.