Re: [hatari-users] AssemPro Debugger Hang

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-users Archives ]


Hiya
Thanks for your detailled info about GEMDOS HD.

> Please provide "--trace gemdos" Hatari output from
> successful and failing runs, so that I can see
> what fails (but shouldn't).

I have attached a log file and a trace file of the procedure failing.
I have edited them slightly to delete the many repetitions of a particular warning message,
and to annotate at the beginning the intent.

I tried to generate the same files for the procedure succeeding, but was not able to for the following reason:
-when using the --trace gemdos switch, a cartridge image appears on the ATARI desktop, which has the hatari.tos application in it.
-when the cartridge image is present, the original 'AssemPro Debugger Hang' symptom occurs.
-I have not found a way around this yet, (when I 'uninstall' this cartridge from the Atari desktop, the symptom reoccurs.

Many thanks for your attention in this problem. In generating these files, I'm seeing more of Hatari's facilities, and how they can be useful in my programming and learning about assembly language. It's good stuff!

Mike






> On 14 May 2020 at 11:21 Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
> 
> 
> Hi,
> 
> On 5/14/20 9:47 AM, Mike Harbour wrote:
> > Just a quick update
> > The issue seems to involve the presence of the GEMDOS drive. When its ejected, the debugger in AssemPro works fine. To be honest, from the beginning, when I first tried GEMDOS drives, it worked so well I didnt read the docs. I will re-read to see if I've got something wrong.
> 
> There are some cases where GEMDOS HD cannot work:
> 
> * Program is hard-coded to use only floppy disk,
>    i.e. it wouldn't work with hard disk images
>    either.  Some older games have this issue
> 
> * (Commercial) SW which which refuses to run when
>    it detects HW cartridge being present (GEMDOS HD
>    emu needs cartridge code to work). This is
>    *very* rare
> 
> Please provide "--trace gemdos" Hatari output from
> successful and failing runs, so that I can see
> what fails (but shouldn't).
> 
> 
> Since Hatari 2.2.1 release, few minor corner case
> issues have been fixed in GEMDOS HD emulation.
> 
> It's very unlikely they would affect programs, but
> one never knows.  Have you tried latest Hatari
> snapshot builds, or are you building your own
> Hatari binaries?
> 
> 
> There may also be some as of yet unknown Hatari
> GEMDOS HD emulation incompatibility.
> 
> One possible issue would be bug in Fforce / Fdup
> file redirection handling over helper program executions.  Debuggers had 
> issues with it, and
> that was fixed (maybe decade ago), but that part
> of GEMDOS emulation isn't yet fool-proof.
> 
> 
> 	- Eero
> 
>
start up Hatari with config that has GEMDOS HD......
(AssemPro debugger fails....)


INFO : Hatari v2.2.1, compiled on:  Feb  8 2019, 09:59:54
DEBUG: Video_SetSystemTimings 0 3 -> 2 (WS3) 503 503 64
DEBUG: Configured max Hatari resolution = 832x588, optimal for ST = 832x588
DEBUG: STMemory_RAM_SetBankSize total=1024 KB bank0=512 KB bank1=512 KB MMU=5
INFO : Inserted disk 'C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\disks\AssemPro86.st' to drive A:.
INFO : Inserted disk 'C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\disk_b.st' to drive B:.
DEBUG: update cyc speed 0 throttle 0.000000 clock_mult 512
DEBUG: CPU cycleunit: 256 (0.500)
DEBUG: CPU cycleunit: 256 (0.500)
DEBUG: 1870 CPU functions
DEBUG: scandir : findIn orign='C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE'
DEBUG: scandir : findIn processed='C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE\*'
DEBUG: Checking GEMDOS C: HDD: C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE
INFO : GEMDOS HDD emulation, C: <-> C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE.
DEBUG: memory_map_Standard_RAM total=1048576 ram0=524288 ram1=524288 mmu0=131072 mmu1=131072
DEBUG: memory_map_Standard_RAM - enable MMU 1048576 131072 131072
DEBUG: Loaded TOS version 1.04, starting at $fc0000, country code = 3, PAL
DEBUG: Skipped patch 'boot from DMA bus'.
DEBUG: Applied 0 TOS patches, 0 patches failed.
DEBUG: Video_SetSystemTimings 0 3 -> 2 (WS3) 503 503 64
DEBUG: Video_SetSystemTimings 0 3 -> 2 (WS3) 503 503 64
DEBUG: Host system has accurate delays. (1)
DEBUG: update cyc speed 0 throttle 0.000000 clock_mult 512
DEBUG: CPU cycleunit: 256 (0.500)
DEBUG: CPU cycleunit: 256 (0.500)
DEBUG: Building CPU, 44274 opcodes (0 -2 1)
DEBUG: CPU=68000, FPU=0, MMU=0, JIT=0.
DEBUG:  prefetch and cycle-exact
DEBUG:  24-bit
DEBUG: 
DEBUG: hardreset, memory cleared
DEBUG: m68k_run_1_ce
DEBUG: CPU reset PC=fc0034 (ROM memory)..
DEBUG: memory_map_Standard_RAM total=1048576 ram0=524288 ram1=524288 mmu0=2097152 mmu1=2097152
DEBUG: memory_map_Standard_RAM - enable MMU 1048576 2097152 2097152
DEBUG: memory_map_Standard_RAM total=1048576 ram0=524288 ram1=524288 mmu0=524288 mmu1=524288
DEBUG: scandir : findIn orign='C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE'
DEBUG: scandir : findIn processed='C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE\*'
DEBUG: Illegal ROMmem wput at 00fc92d6
WARN : Bus Error writing at address $fc92d6, PC=$fc9396 addr_e3=fc939a op_e3=211f
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75

...this line repeated about 200 times.... (deleted)

WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $fffffa01, PC=$fc3afe addr_e3=fc3b02 op_e3=82d
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75

...this line repeated about 400 times.... (deleted)

WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
DEBUG: Bus error wget at dbd40000
WARN : Bus Error reading at address $dbd40000, PC=$dbd40000 addr_e3=dbd40002 op_e3=4e75
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75

...this line repeated a hundred times, deleted here.....

WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $fffffa01, PC=$fc3afe addr_e3=fc3b02 op_e3=82d
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
...this line repeats hundreds of times a second, deleted here.....

WARN : Bus Error reading at address $0, PC=$0 addr_e3=2 op_e3=4e75
DEBUG: exit m68k_run
INFO : Floppy A: has been removed from drive.
INFO : Floppy B: has been removed from drive.
start up Hatari with config that has GEMDOS HD......
(AssemPro debugger fails....)

Gemdos_Boot() at PC 0x8FA02E2
GEMDOS 0x9 Cconws(0x190C) at PC 0x18FC
GEMDOS 0x9 Cconws(0x192E) at PC 0x18FC
GEMDOS 0x4B Pexec(5, 0xfc052b, 0xfc052b, 0xfc052b) at PC 0xFC0C2E
GEMDOS 0x4B Pexec(4, 0xfc369c, 0xa852, 0xfc369c) at PC 0xFC0C4C
GEMDOS 0x20 Super(0x0) at PC 0xFC0C60
GEMDOS 0x4A Mshrink(0xA852, 0x100) at PC 0xFC0C7C
GEMDOS 0x1A Fsetdta(0x98C) at PC 0xFC0C9E
GEMDOS 0x4E Fsfirst("\AUTO\*.PRG", 0x7) at PC 0xFC0CA2
GEMDOS 0x4B Pexec(5, 0xfc052b, 0xfc052b, 0x840) at PC 0xFC04DE
GEMDOS 0x4B Pexec(4, 0xfc052b, 0xa960, 0x840) at PC 0xFC0502
GEMDOS 0x4A Mshrink(0xA960, 0x100) at PC 0xFD3B5E
GEMDOS 0x20 Super(0x61A6) at PC 0xFD3B6C
GEMDOS 0x48 Malloc(0x64) at PC 0xFD3BE6
GEMDOS 0x48 Malloc(0x400) at PC 0xFDD0FE
GEMDOS 0x48 Malloc(0x41C4) at PC 0xFDD0FE
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x1A Fsetdta(0x7B40) at PC 0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS: \ -> host: C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE
GEMDOS 0x4E Fsfirst("\*.ACC", 0x0) at PC 0xFDD176
GEMDOS: \*.ACC -> host: C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE\*.ACC
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x4E Fsfirst("\*.ACC", 0x0) at PC 0xFDD176
GEMDOS 0x48 Malloc(0x1060) at PC 0xFDD0FE
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x3D Fopen("DESKTOP.INF", read-only) at PC=0xFDD176
-> to TOS
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS: \ -> host: C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE
GEMDOS 0x3D Fopen("DESKTOP.INF", read-only) at PC=0xFDD176
GEMDOS didn't find filename C:\Users\mike.harbour\Desktop\hatari-2.2.1_windows64\CODEBASE\DESKTOP.INF
-> ERROR -33 (errno = 2)
GEMDOS 0x49 Mfree(0xF088) at PC 0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x48 Malloc(0x3400) at PC 0xFDD0FE
GEMDOS 0x48 Malloc(0x776C) at PC 0xFDD0FE
GEMDOS 0x48 Malloc(0x200) at PC 0xFDD0FE
GEMDOS 0x48 Malloc(0x3B8) at PC 0xFDD0FE
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x2) at PC=0xFDD176
GEMDOS 0x1A Fsetdta(0x155A6) at PC 0xFDD176
GEMDOS 0x4E Fsfirst("A:\*.*", 0x16) at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x1A Fsetdta(0x12750) at PC 0xFDD176
GEMDOS 0x4E Fsfirst("A:\*.*", 0x10) at PC 0xFDD176
GEMDOS 0x48 Malloc(0xFFFFFFFF) at PC 0xFDD122
GEMDOS 0x48 Malloc(0xDDE54) at PC 0xFDD0FE
GEMDOS 0x4F Fsnext() at PC 0xFDD176
GEMDOS 0x4F Fsnext() at PC 0xFDD176
GEMDOS 0x4F Fsnext() at PC 0xFDD176
GEMDOS 0x4F Fsnext() at PC 0xFDD176
GEMDOS 0x4A Mshrink(0x1A1AC, 0xA0) at PC 0xFD3C72
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x0E Dsetdrv(0x0) at PC=0xFDD176
GEMDOS 0x3B Dsetpath("\") at PC 0xFDD176
GEMDOS 0x49 Mfree(0x1A1AC) at PC 0xFDD176
GEMDOS 0x49 Mfree(0x19BF4) at PC 0xFDD176
GEMDOS 0x49 Mfree(0x12488) at PC 0xFDD176
GEMDOS 0x49 Mfree(0x19DF4) at PC 0xFDD176
GEMDOS 0x4B Pexec(0, "A:\ASSEMPRO.PRG", [0]"", 0x0) at PC 0xFDD2DA
GEMDOS 0x4A Mshrink(0x12496, 0x1FB5A) at PC 0x12988
GEMDOS 0x48 Malloc(0x134) at PC 0xFD0622
GEMDOS 0x20 Super(0x0) at PC 0x12B24
GEMDOS 0x20 Super(0x378A) at PC 0x12B38
GEMDOS 0x47 Dgetpath(0x2b09c, 0) at PC 0x12BE6
GEMDOS 0x3D Fopen("ASSEMPRO.INF", read-only) at PC=0x12C02
-> to TOS
GEMDOS 0x3F Fread(6, 1726, 0x2b13e) at PC 0x12C1E
GEMDOS 0x3E Fclose(6) at PC 0x12C2A
GEMDOS 0x48 Malloc(0xEA60) at PC 0x12C40
GEMDOS 0x48 Malloc(0xC350) at PC 0x12C9A
GEMDOS 0x20 Super(0x0) at PC 0x12D54
GEMDOS 0x20 Super(0x378A) at PC 0x12D90
GEMDOS 0x1A Fsetdta(0x2EB02) at PC 0x12D9E
GEMDOS 0x4E Fsfirst("ASSEMPRO.TAB", 0x0) at PC 0x12DBA
GEMDOS 0x48 Malloc(0xFFFFFFFF) at PC 0x12DCE
GEMDOS 0x48 Malloc(0x4206) at PC 0x12DEC
GEMDOS 0x3D Fopen("ASSEMPRO.TAB", read-only) at PC=0x12E10
-> to TOS
GEMDOS 0x3F Fread(6, 16902, 0x4ced4) at PC 0x12E28
GEMDOS 0x3E Fclose(6) at PC 0x12E3C
GEMDOS 0x2F Fgetdta() at PC 0xFD3C72
GEMDOS 0x1A Fsetdta(0x90A0) at PC 0xFDD176
GEMDOS 0x4E Fsfirst("A:\ASSEMPRO.RSC", 0x7) at PC 0xFDD176
GEMDOS 0x1A Fsetdta(0x2EB02) at PC 0xFDD176
GEMDOS 0x3D Fopen("A:\ASSEMPRO.RSC", read-only) at PC=0xFDD176
-> to TOS
GEMDOS 0x3F Fread(6, 36, 0x6de2) at PC 0xFDD176
GEMDOS 0x48 Malloc(0x7056) at PC 0xFDD0FE
GEMDOS 0x42 Fseek(0, 6, 0) at PC 0xFDD176
GEMDOS 0x3F Fread(6, 28758, 0x510da) at PC 0xFDD176
GEMDOS 0x3E Fclose(6) at PC 0xFDD176
GEMDOS 0x19 Dgetdrv() at PC 0x131BE
GEMDOS 0x48 Malloc(0xFFFFFFFF) at PC 0x1353C
GEMDOS 0x48 Malloc(0xFFFFFFFF) at PC 0x137D2
GEMDOS 0x20 Super(0x0) at PC 0x28672
GEMDOS 0x20 Super(0x0) at PC 0x286E4


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/