Skip to content
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

ubuntu 22 make Error #180

Open
lengrongfu opened this issue Apr 22, 2023 · 0 comments
Open

ubuntu 22 make Error #180

lengrongfu opened this issue Apr 22, 2023 · 0 comments

Comments

@lengrongfu
Copy link

  • qemu-system-riscv64 --version
QEMU emulator version 7.0.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
    Finished release [optimized] target(s) in 2.05s
timeout --foreground 300s qemu-system-riscv64 \
	-machine virt \
	-nographic \
	-bios ../bootloader/rustsbi-qemu.bin \
	-kernel target/riscv64gc-unknown-none-elf/release/os
[rustsbi] RustSBI version 0.3.0-alpha.2, adapting to RISC-V SBI v1.0.0
.______       __    __      _______.___________.  _______..______   __
|   _  \     |  |  |  |    /       |           | /       ||   _  \ |  |
|  |_)  |    |  |  |  |   |   (----`---|  |----`|   (----`|  |_)  ||  |
|      /     |  |  |  |    \   \       |  |      \   \    |   _  < |  |
|  |\  \----.|  `--'  |.----)   |      |  |  .----)   |   |  |_)  ||  |
| _| `._____| \______/ |_______/       |__|  |_______/    |______/ |__|
[rustsbi] Implementation     : RustSBI-QEMU Version 0.2.0-alpha.2
[rustsbi] Platform Name      : riscv-virtio,qemu
[rustsbi] Platform SMP       : 1
[rustsbi] Platform Memory    : 0x80000000..0x88000000
[rustsbi] Boot HART          : 0
[rustsbi] Device Tree Region : 0x87000000..0x87000ef2
[rustsbi] Firmware Address   : 0x80000000
[rustsbi] Supervisor Address : 0x80200000
[rustsbi] pmp01: 0x00000000..0x80000000 (-wr)
[rustsbi] pmp02: 0x80000000..0x80200000 (---)
[rustsbi] pmp03: 0x80200000..0x88000000 (xwr)
[rustsbi] pmp04: 0x88000000..0x00000000 (-wr)
[kernel] Hello, world!
[DEBUG] [kernel] .rodata [0x80205000, 0x80238000)
[ INFO] [kernel] .data [0x80238000, 0x80287000)
[ WARN] [kernel] boot_stack top=bottom=0x80297000, lower_bound=0x80287000
[ERROR] [kernel] .bss [0x80297000, 0x802c0000)
[kernel] PageFault in application, bad addr = 0x0, bad instruction = 0x80400414, kernel killed it.
[kernel] IllegalInstruction in application, kernel killed it.
Hello, world from user mode program!
power_3 [10000/200000]
power_5 [10000/140000]
power_5 [20000/140000]
power_5 [30000/140000]
Panicked at src/bin/ch3_sleep.rs:16, assertion failed: current_time > 0
current time_msec = 0
BBBBBBBBBB [1/5]
CCCCCCCCCC [1/5]
[kernel] IllegalInstruction in application, kernel killed it.
power_5 [40000/140000]
power_5 [50000/140000]
power_5 [60000/140000]
power_5 [70000/140000]
power_7 [10000/160000]
power_7 [20000/160000]
power_7 [30000/160000]
AAAAAAAAAA [1/5]
BBBBBBBBBB [2/5]
CCCCCCCCCC [2/5]
power_3 [20000/200000]
power_3 [30000/200000]
power_5 [80000/140000]
power_5 [90000/140000]
power_5 [100000/140000]
power_5 [110000/140000]
power_7 [40000/160000]
power_7 [50000/160000]
power_7 [60000/160000]
power_7 [70000/160000]
AAAAAAAAAA [2/5]
BBBBBBBBBB [3/5]
CCCCCCCCCC [3/5]
power_3 [40000/200000]
power_3 [50000/200000]
power_3 [60000/200000]
power_5 [120000/140000]
power_5 [130000/140000]
power_5 [140000/140000]
5^140000 = 386471875(MOD 998244353)
power_7 [80000/160000]
power_7 [90000/160000]
power_7 [100000/160000]
power_7 [110000/160000]
power_7 [120000/160000]
AAAAAAAAAA [3/5]
BBBBBBBBBB [4/5]
CCCCCCCCCC [4/5]
power_3 [70000/200000]
power_3 [80000/200000]
Test power_5 OK142124598113519180471074437393128955924446039250364018627930104971058!
power_7 [130000/160000]
AAAAAAAAAA [4/5]
BBBBBBBBBB [5/5]
CCCCCCCCCC [5/5]
power_3 [90000/200000]
power_3 [100000/200000]
power_3 [110000/200000]
power_7 [140000/160000]
power_7 [150000/160000]
power_7 [160000/160000]
7^160000 = 667897727(MOD 998244353)
Test power_7 OK142124598113519180471074437393128955924446039250364018627930104971058!
AAAAAAAAAA [5/5]
Test write B OK142124598113519180471074437393128955924446039250364018627930104971058!
Test write C OK142124598113519180471074437393128955924446039250364018627930104971058!
Test write A OK142124598113519180471074437393128955924446039250364018627930104971058!
power_3 [120000/200000]
power_3 [130000/200000]
power_3 [140000/200000]
power_3 [150000/200000]
power_3 [160000/200000]
power_3 [170000/200000]
power_3 [180000/200000]
power_3 [190000/200000]
power_3 [200000/200000]
3^200000 = 871008973(MOD 998244353)
Test power_3 OK142124598113519180471074437393128955924446039250364018627930104971058!
qemu-system-riscv64: terminating on signal 15 from pid 98413 (timeout)
make[1]: *** [Makefile:18: run] Error 124
make[1]: Leaving directory '/home/ubuntu/rust_workspace/github.com/lengrongfu/2023s-rcore-lengrongfu/rCore-Tutorial-Code-2023S/os'
python3 check/ch3.py < stdout-ch3
['get_time OK142124598113519180471074437393128955924446039250364018627930104971058! (\\d+)', 'Test sleep OK142124598113519180471074437393128955924446039250364018627930104971058!', 'current time_msec = (\\d+)', 'time_msec = (\\d+) after sleeping (\\d+) ticks, delta = (\\d+)ms!', 'Test sleep1 passed142124598113519180471074437393128955924446039250364018627930104971058!', 'string from task info test', 'Test task info OK142124598113519180471074437393128955924446039250364018627930104971058!'] []
[FAIL] not found <get_time OK142124598113519180471074437393128955924446039250364018627930104971058! (\d+)>
[FAIL] not found <Test sleep OK142124598113519180471074437393128955924446039250364018627930104971058!>
[PASS] found <current time_msec = (\d+)>
[FAIL] not found <time_msec = (\d+) after sleeping (\d+) ticks, delta = (\d+)ms!>
[FAIL] not found <Test sleep1 passed142124598113519180471074437393128955924446039250364018627930104971058!>
[FAIL] not found <string from task info test>
[FAIL] not found <Test task info OK142124598113519180471074437393128955924446039250364018627930104971058!>

Test passed142124598113519180471074437393128955924446039250364018627930104971058: 1/7
Traceback (most recent call last):
  File "/home/ubuntu/rust_workspace/github.com/lengrongfu/2023s-rcore-lengrongfu/rCore-Tutorial-Code-2023S/ci-user/check/ch3.py", line 19, in <module>
    base.test(EXPECTED_3)
  File "/home/ubuntu/rust_workspace/github.com/lengrongfu/2023s-rcore-lengrongfu/rCore-Tutorial-Code-2023S/ci-user/check/base.py", line 27, in test
    assert count == total
AssertionError
make: *** [Makefile:48: test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant