-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with using vamos as a shell #148
Comments
thanks for the bug report. can you share the compiled dice program so I can have a look? |
hello.zip |
Found this issue as well: console device '*' was not handled correctly... please test current master |
I have earlier been downloading ZIP packages from the amitools repository. For convenience I cloned the repository directly with git so I can get updates faster. I tried to run "assign", which should list all the assigns in the system, but once again, vamos crashed. Here is the output: The last line looks like it's trying to print out the assigns (typing "assign" without any parameters to a real AmigaOS shell lists all the assigns, starting with the volumes) but it fails to actually print them out. |
Assign output should now be fixed on master |
Assign works fine. |
vamos is unable to run shell scripts. |
I bought AmigaOS 3.1.4 from Hyperion Entertainment and installed the latest version of amitools. Typing "vamos -x Shell-Seg" where Shell-Seg is the file I got from AmigaOS 3.1.4 dropped me to an emulated AmigaOS shell. Only, not everything is working correctly.
Running "dir", "list", or "type textfile.txt" where textfile.txt is a file in the current directory is working perfectly. However, "echo foo" crashes vamos with the following error:
03:22:43.003 machine: ERROR: ----- ERROR in CPU Run #2 -----
03:22:43.004 machine: ERROR: Run: 'RunCommand': Initial PC=00958c, SP=00e6d8
03:22:43.004 machine: ERROR: PC=0000697c SR=----- USP=0000e690 ISP=00000700 MSP=00000780
03:22:43.004 machine: ERROR: D0=68656c6c D1=00000000 D2=0000e6c0 D3=00000000 D4=00000006 D5=00002562 D6=000008ad D7=00000000
03:22:43.004 machine: ERROR: A0=68656c6d A1=00006a40 A2=68656c6c A3=0000e6e4 A4=0000b9b4 A5=00001ae8 A6=00001ae8 A7=0000e690
03:22:43.004 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=006968
03:22:43.004 machine: ERROR: SP+00=002000 SP+04=00c320 SP+08=000006 SP+12=002562 SP+16=0008ad SP+20=0008a2 SP+24=ff01dd05 SP+28=00b8b8
03:22:43.004 machine: ERROR: InvalidMemoryAccessError: Invalid Memory Access R(1): 656c6c
03:22:43.004 machine: ERROR: ----- ERROR in CPU Run #1 -----
03:22:43.004 machine: ERROR: Run: 'Shell-Seg': Initial PC=002304, SP=00b754
03:22:43.004 machine: ERROR: PC=00001c04 SR=----- USP=0000b5e4 ISP=00000700 MSP=00000780
03:22:43.004 machine: ERROR: D0=0000c320 D1=00002562 D2=00002000 D3=0000c320 D4=00000006 D5=00002562 D6=000008ad D7=000008a2
03:22:43.004 machine: ERROR: A0=00000006 A1=00002264 A2=0000b7d9 A3=0000b8b8 A4=0000b9b4 A5=0000b64c A6=00001ae8 A7=0000b5e4
03:22:43.004 machine: ERROR: SP-32=000000 SP-28=000000 SP-24=000010 SP-20=002562 SP-16=0008ad SP-12=0008a2 SP-08=00b8b8 SP-04=00b64c
03:22:43.004 machine: ERROR: SP+00=004d1c SP+04=002000 SP+08=002556 SP+12=fffffffe SP+16=000010 SP+20=000000 SP+24=002562 SP+28=000004
03:22:43.005 machine: ERROR: Traceback (most recent call last):
03:22:43.005 machine: ERROR: File "musashi/pytraps.pyx", line 19, in musashi.emu.trap_wrapper
03:22:43.005 machine: ERROR: File "/usr/local/lib64/python3.8/site-packages/amitools/vamos/libcore/stub.py", line 165, in base_func
03:22:43.005 machine: ERROR: res = impl_method(ctx)
03:22:43.005 machine: ERROR: File "/usr/local/lib64/python3.8/site-packages/amitools/vamos/lib/DosLibrary.py", line 1651, in RunCommand
03:22:43.005 machine: ERROR: ret_code = run_command(
03:22:43.005 machine: ERROR: File "/usr/local/lib64/python3.8/site-packages/amitools/vamos/dos/run.py", line 55, in run_command
03:22:43.005 machine: ERROR: scheduler.run_sub_task(task)
03:22:43.005 machine: ERROR: File "/usr/local/lib64/python3.8/site-packages/amitools/vamos/schedule/scheduler.py", line 85, in run_sub_task
03:22:43.005 machine: ERROR: self._execute(sub_task, init_sp)
03:22:43.005 machine: ERROR: File "/usr/local/lib64/python3.8/site-packages/amitools/vamos/schedule/scheduler.py", line 92, in _execute
03:22:43.005 machine: ERROR: run_state = self.machine.run(
03:22:43.006 machine: ERROR: File "/usr/local/lib64/python3.8/site-packages/amitools/vamos/machine/machine.py", line 553, in run
03:22:43.006 machine: ERROR: raise NestedCPURunError(pc, run_state.error)
03:22:43.006 machine: ERROR: amitools.vamos.error.NestedCPURunError: Nested CPU Run Failed: pc=001c04: InvalidMemoryAccessError: Invalid Memory Access R(1): 656c6c
03:22:43.006 main: ERROR: vamos failed!
03:22:43.006 libmgr:WARNING: can't expunge: 'dos.library' with open count 2
03:22:43.006 libmgr:WARNING: can't expunge: 'utility.library' with open count 1
03:22:43.006 libmgr:WARNING: shutdown: can't expunge 2 vamos libs/devs!
Also, I compiled this simple program:
#include <stdio.h>
int main(void)
{
printf("Hello world!\n");
}
with dcc on the DICE compiler. Typing "hello" on the vamos shell printed out "Hello world!" as expected, but the shell just stuck there, not accepting any further input. I had to press ctrl-C to tell Linux to break the entire vamos process.
The same happens when I type "endcli" in the shell. The shell says "Process 0 exiting" but after that, vamos just sticks there.
The text was updated successfully, but these errors were encountered: