cnvogelg / amitools

Various tools for using AmigaOS programs on other platforms
258 stars 72 forks source link

hang on dos.ReadArgs #124

Closed wepl closed 4 years ago

wepl commented 4 years ago

actual release (pip install) hangs on dos.ReadArgs, only ^C quits:

$ vamos -l dos:info,exec:info -- dir 22:47:24.574 exec: INFO: setup exec.library 22:47:24.582 dos: INFO: setup dos.library 22:47:24.588 dos: INFO: dos fs handler port: 0021f4 22:47:24.590 exec: INFO: OpenLibrary: 'dos.library' V36 -> 001ae8 22:47:24.590 exec: INFO: AllocVec: [@005248 +000800 005a48] 22:47:24.590 dos: INFO: ReadArgs: template='DIR,OPT/K,ALL/S,DIRS/S,FILES/S,INTER/S' array_ptr=00004e18 rdargs_ptr=00000000 22:47:24.590 dos: INFO: ReadArgs: tal=[#6:(#0:DIR,0,k=False,r=False,m=False),(#1:OPT,0,k=True,r=False,m=False),(#2:ALL,2,k=True,r=False,m=False),(#3:DIRS,2,k=True,r=False,m=False),(#4:FILES,2,k=True,r=False,m=False),(#5:INTER,2,k=True,r=False,m=False)]

here it hangs, after pressing ^C:

^C22:49:17.666 machine: ERROR: ----- ERROR in CPU Run #1 ----- 22:49:17.666 machine: ERROR: Run: 'dir': Initial PC=00228c, SP=004fe4 22:49:17.667 machine: ERROR: PC=00001c66 SR=--Z-- USP=00004cc0 ISP=00000700 MSP=00000780 22:49:17.667 machine: ERROR: D0=00005248 D1=000024fc D2=00004e18 D3=00000000 D4=00000000 D5=00000000 D6=00000000 D7=00000000 22:49:17.667 machine: ERROR: A0=000024fc A1=00004e18 A2=00001ae8 A3=0000133c A4=00000000 A5=00004fe0 A6=00001ae8 A7=00004cc0 22:49:17.667 machine: ERROR: SP-32=000000 SP-28=000000 SP-24=000000 SP-20=000000 SP-16=000000 SP-12=000000 SP-08=000000 SP-04=000000 22:49:17.667 machine: ERROR: SP+00=00230e SP+04=002000 SP+08=000000 SP+12=ff01dd05 SP+16=000000 SP+20=ff01dd05 SP+24=000000 SP+28=00133c 22:49:17.668 machine: ERROR: Traceback (most recent call last): 22:49:17.668 machine: ERROR: File "musashi/pytraps.pyx", line 19, in musashi.emu.trap_wrapper 22:49:17.668 machine: ERROR: File "/home/devel/.local/lib/python3.6/site-packages/amitools/vamos/libcore/stub.py", line 159, in base_func 22:49:17.668 machine: ERROR: res = impl_method(ctx) 22:49:17.668 machine: ERROR: File "/home/devel/.local/lib/python3.6/site-packages/amitools/vamos/lib/DosLibrary.py", line 1255, in ReadArgs 22:49:17.668 machine: ERROR: csrc.append_line() 22:49:17.668 machine: ERROR: File "/home/devel/.local/lib/python3.6/site-packages/amitools/vamos/lib/dos/CSource.py", line 72, in append_line 22:49:17.668 machine: ERROR: ch = self.fh.getc() 22:49:17.668 machine: ERROR: File "/home/devel/.local/lib/python3.6/site-packages/amitools/vamos/lib/dos/FileHandle.py", line 65, in getc 22:49:17.668 machine: ERROR: d = self.obj.read(1) 22:49:17.668 machine: ERROR: KeyboardInterrupt 22:49:17.668 main: ERROR: vamos failed! 22:49:17.669 libmgr:WARNING: can't expunge: 'dos.library' with open count 1 22:49:17.669 libmgr:WARNING: shutdown: can't expunge 1 vamos libs/devs!

cnvogelg commented 4 years ago

indeed was broken during py3 conversion... fixed in fa1f89c

wepl commented 4 years ago

Thanks works now :)