leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
793 stars 81 forks source link

Running UPX/RAR failed #56

Closed peter8777555 closed 4 years ago

peter8777555 commented 5 years ago

I can NOT run any UPX programs. I can NOT run RAR program.

leecher1337 commented 4 years ago

Should work now, please confirm

peter8777555 commented 4 years ago

I have try NEW 4/30/2020 build. No.

leecher1337 commented 4 years ago

I now recompiled the whole minnt to verify and it works fine here. Note that UPX takes approx. 10 seconds to start up. And the rar exe in your .zip doesn't work without the other files contained in the RAR SFX, I attached proper RAR sfx for you

rarx393.zip

peter8777555 commented 4 years ago

No work here.

leecher1337 commented 4 years ago

These errors look familiar for build without https://github.com/leecher1337/ntvdmx64/commit/25e9b9b18f615346f8a313e84c354d3e145c50c2 Can you manually verify that your source got patched correctly and object files contain the latest patches? Maybe you have leftover object files from older builds..?

peter8777555 commented 4 years ago

ntvdmx64-master.zip

C:\work\ntvdmpatch\patches\common\dpmi.patch dpmi.zip

leecher1337 commented 4 years ago

No, I mean, if your mvdm\softpc.new\base\ccpu386\c_main.c contains mentioned patch after you run patch.cmd and that you ensured to started off with a clean minnt\base directory and thus you don't have any old mvdm\softpc.new\base\ccpu386\objchk files (obviously you shouldn't when you started off with a clean mvdm directory)

peter8777555 commented 4 years ago

I usually remove ALL files in C:\work. So it should be no OLD files in C:\work.

You Updated 37 minutes ago I will try again with NEW version.

peter8777555 commented 4 years ago

I usually remove ALL files in C:\work. So it should be no OLD files in C:\work.

Failed again. It still not work here.

leecher1337 commented 4 years ago

Patch seems ok, weird.. Maybe it's related to host OS or something? I tested on Windows 10.

peter8777555 commented 4 years ago

I tested on Windows 7 X64.

leecher1337 commented 4 years ago

Just tested my build under Win7 x64, also worked there. What's the size of your ntvdm.exe build? I have 1.416.704 bytes. Dumb question but did you also verify that ntvdm.exe got replaced properly in your windows\syswow64 directory, in case you had an old verison installed?

peter8777555 commented 4 years ago

in case you had an old verison installed? Yes. Install Overwrite.

leecher1337 commented 4 years ago

Doesn't surprise me that it crashes if you singlestep in a DOS Debugger over lmsw. If you want to debug DOS applications running in NTVDM, use Master YODA. i.e. to do instruction tracing, setup YODA environment variables as described in readme, then set a REG_SZ with name YODA and value 1 so that YODA calls you right on startup of NTVDM, then you can i.e. do a run trace:

tf c:\temp\trace.txt
s
t
c

But I'm running out of ideas why it doesn't work for you.

Maybe we should wait for a new build on the emendelson site, so that we at least have the same ntvdm.exe files to compare?

peter8777555 commented 4 years ago

Emendelson site usually has NO latest updated. So i build DIY for latest updated.

leecher1337 commented 4 years ago

I guess you also verified that ntvdm.exe in System32 Directory is a hard link to Syswow64 ntvdm.exe . This also sometimes is a problem, because when you once overwrite the ntvdm.exe in system32 directory, it gets unlinked and then you can theoretically have 2 different versions.

Generally a good idea to build yourself, but we just need something to compare if it boils down to build process or other issues.

peter8777555 commented 4 years ago

Yes,you are right. C:\Windows\System32 is OLD version. I copy New version to C:\Windows\System32 and it works. (I copy ntvdm.exe and ntvdmd.dll ONLY,Is this correct or need copy ALL files ?)

Suggestion: install.bat always copy(Overwrite) files to C:\Windows\System32 AND C:\Windows\SysWOW64 To avoid some weired problems.

By the way, It is weired, First time run RAR32.exe is OK. Run RAR32.exe again is NG ?

leecher1337 commented 4 years ago

Latest DPMI fix requires you to update dosx.exe

peter8777555 commented 4 years ago

Nice work and Thank you.