masayuki2009 commented on pull request #5731: URL: https://github.com/apache/incubator-nuttx/pull/5731#issuecomment-1066240709
@no1wudi I tried this PR with maix-bit:kostest on QEMU but the ASSERTION happened. ``` $ ~/opensource/QEMU/qemu-5.2/build/riscv64-softmmu/qemu-system-riscv64 -nographic -machine sifive_u -device loader,file=nuttx.bin,addr=0x80000000 -device loader,file=nuttx_user.bin,addr=0x80100000 ABCDstdio_test: write fd=1 stdio_test: Standard I/O Check: printf stdio_test: write fd=2 stdio_test: Standard I/O Check: fprintf to stderr ostest_main: putenv(Variable1=BadValue3) ostest_main: setenv(Variable1, GoodValue1, TRUE) ostest_main: setenv(Variable2, BadValue1, FALSE) ostest_main: setenv(Variable2, GoodValue2, TRUE) ostest_main: setenv(Variable3, Variable3, FALSE) ostest_main: setenv(Variable3, Variable3, FALSE) show_variable: Variable=Variable1 has value=GoodValue1 show_variable: Variable=Variable2 has value=GoodValue2 show_variable: Variable=Variable3 has value=GoodValue3 ostest_main: Started user_main at PID=2 ... user_main: waitpid test Test waitpid() waitpid_start_child: Started waitpid_main at PID=7 waitpid_start_child: Started waitpid_main at PID=11 waitpid_main: PID 7 Started waitpid_main: PID 11 Started waitpid_main: PID 12 Started up_assert: Assertion failed at file:stdio/lib_libfilesem.c line: 106 task: ostest riscv_registerdump: EPC: 00000000800062be riscv_registerdump: A0: 0000000000000000 A1: 0000000080404960 A2: 000000000000003f A3: 0000000000000002 riscv_registerdump: A4: 0000000010010000 A5: 0000000080404960 A6: 000000000000006c A7: 0000000000000068 riscv_registerdump: T0: 0000000000000030 T1: 0000000000000009 T2: 0000000000000020 T3: 000000000000002a riscv_registerdump: T4: 000000000000002e T5: 00000000000001ff T6: 000000000000002d riscv_registerdump: S0: 00000000800008fe S1: 0000000080404908 S2: 0000000080481930 S3: 0000000080401188 riscv_registerdump: S4: 0000000080102502 S5: 000000008010a210 S6: 0000000080404b48 S7: 000000008010a27b riscv_registerdump: S8: 0000000000000a00 S9: 0000000000001000 S10: 0000000000000800 S11: deadbeefdeadbeef riscv_registerdump: SP: 0000000080404908 FP: 00000000800008fe TP: deadbeefdeadbeef RA: 0000000080005fbe riscv_dumpstate: sp: 0000000080404908 riscv_dumpstate: IRQ stack: riscv_dumpstate: base: 00000000804000b0 riscv_dumpstate: size: 0000000000000800 riscv_dumpstate: User stack: riscv_dumpstate: base: 0000000080402df0 riscv_dumpstate: size: 0000000000001fb0 riscv_dumpstate: ERROR: Stack pointer is not within allocated stack riscv_stackdump: 0000000080402de0: 67724100 72410033 00003467 00000000 deadbeef deadbeef deadbeef deadbeef riscv_stackdump: 0000000080402e00: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef riscv_stackdump: 0000000080402e20: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef `` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org