Ticket #43743

fdisk.exe fails to run on 8086

Eröffnet am: 2022-01-31 02:17 Letztes Update: 2022-02-05 08:16

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

Details

pce-ibmpc logs "undefined operation [C1 e1]", when FDISK is executed like "fdisk /?".

It runs fine, when I change emulated CPU to 80186.

After running "upx -d fdisk.exe", "fdisk /?" gives me "Abnormal program termination" and "Null point}r assignment" on the (emulated) 8086. (Yes, with } instead of an "e".)

At the same time pce-ibmpc logs:

3317:0D0A: undefined operation [C8 02]
3317:0D10: undefined operation [6A 05]
3317:0CE8: undefined operation [6A 24]
3317:0CF6: undefined operation [68 c7]
3317:0D01: undefined operation [68 d0]
...

I guess, we need to rebuild FDISK.EXE before using UPX --8086 and updating the package, but maybe I can find a working binary elsewhere.

Ticket-Verlauf (3/11 Historien)

2022-01-31 02:17 Aktualisiert von: bttr
  • New Ticket "fdisk.exe fails to run on 8086" created
2022-01-31 02:30 Aktualisiert von: bttr
Kommentar

"undefined operation" will go away on the de-UPXed fdisk.exe, when using a 80186 CPU. -> Wrong compile-time options were used.

2022-01-31 03:25 Aktualisiert von: bttr
Kommentar

I created an 8086-compatible FDISK.EXE based on Tom Ehlert's http://www.drivesnapshot.de/freedos/fdisk134.zip (also mirrored at https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/fdisk/1.3.4/).

I removed the "-1" from CFLAGS at SOURCE\FDISK\MAKEFILE. Then I ran "upx --best --8086 FDISK.EXE -oFDISKUPX.EXE".

Both EXE file started fine on the emulated 8086. I also tried "--lzma", but (as expected) it starts quite slow on such a low-end CPU.

You can grab just FDISK.EXE and FDISKUPX.EXE from http://www.bttr-software.de/tmp/fdisk134_8086.zip

2022-01-31 03:27 Aktualisiert von: bttr
  • Verantwortlicher Update from (Keine) to mateuszviste
2022-01-31 04:09 Aktualisiert von: bttr
Kommentar
(Edited, 2022-01-31 04:14 Aktualisiert von: bttr)
2022-01-31 19:20 Aktualisiert von: mateuszviste
  • Status Update from Offen to Geschlossen
Kommentar

Package updated using your new upx binary. Thank you!

2022-02-01 04:42 Aktualisiert von: bttr
Kommentar

Thanks. :-)

But doesn't seem to be part of the updated image (31 Jan 2022).

Did a fresh install, but FDISK.EXE is still dated 3-18-2021.

2022-02-01 04:42 Aktualisiert von: bttr
  • Status Update from Geschlossen to Offen
2022-02-01 04:48 Aktualisiert von: mateuszviste
Kommentar

probably hadn't pushed the new ISO to website, I don't do it every time anything changes. did it now.

2022-02-01 05:03 Aktualisiert von: bttr
  • Status Update from Offen to Geschlossen
  • Lösung Update from Keine to Gefixt
Kommentar

Works as expected now with the updated ISO. :-)

2022-02-05 08:16 Aktualisiert von: bttr
  • Komponente Update from (Keine) to packages

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden