Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created December 10, 2024 11:24
Show Gist options
  • Save lupyuen/6bd3b60a93ddac13e20c825f8a171ed6 to your computer and use it in GitHub Desktop.
Save lupyuen/6bd3b60a93ddac13e20c825f8a171ed6 to your computer and use it in GitHub Desktop.
run-job-macos.sh risc-v-05: rv-virt_20241210_190204.log
ABCCHelloWorld: Constructor: mSecret=42
NuttShell (NSH) NuttX-12.7.0
nsh> mount -t vfat /dev/virtblk0 /data
nsh: mount: mount failed: 22
nsh> echo cmocka_list_start
cmocka_list_start
nsh> cmocka --list
Cmocka Test Start.
nuttx_fs_test_suites
test_nuttx_fs_creat01
test_nuttx_fs_dup01
test_nuttx_fs_fcntl01
test_nuttx_fs_fcntl02
test_nuttx_fs_fcntl03
test_nuttx_fs_fstat01
test_nuttx_fs_fstat02
test_nuttx_fs_fstatfs01
test_nuttx_fs_fsync01
test_nuttx_fs_fsync02
test_nuttx_fs_getfilep01
test_nuttx_fs_mkdir01
test_nuttx_fs_open01
test_nuttx_fs_opendir01
test_nuttx_fs_opendir02
test_nuttx_fs_pread01
test_nuttx_fs_pwrite01
test_nuttx_fs_read01
test_nuttx_fs_readdir01
test_nuttx_fs_readlink01
test_nuttx_fs_rename01
test_nuttx_fs_rename02
test_nuttx_fs_rewinddir01
test_nuttx_fs_fmdir01
test_nuttx_fs_rmdir02
test_nuttx_fs_rmdir03
test_nuttx_fs_seek01
test_nuttx_fs_seek02
test_nuttx_fs_stat01
test_nuttx_fs_statfs01
test_nuttx_fs_symlink01
test_nuttx_fs_truncate01
test_nuttx_fs_unlink01
test_nuttx_fs_write01
test_nuttx_fs_write02
test_nuttx_fs_write03
test_nuttx_fs_append01
test_nuttx_fs_sendfile01
test_nuttx_fs_sendfile02
test_nuttx_fs_stream01
test_nuttx_fs_stream02
test_nuttx_fs_stream03
test_nuttx_fs_stream04
test_nuttx_fs_eventfd
test_nuttx_fs_poll01
nuttx_mm_test_suites
test_nuttx_mm01
test_nuttx_mm02
test_nuttx_mm03
test_nuttx_mm04
test_nuttx_mm05
test_nuttx_mm06
test_nuttx_mm07
test_nuttx_mm08
nuttx_pthread_test_suites
test_nuttx_pthread_test03
test_nuttx_pthread_test04
test_nuttx_pthread_test05
test_nuttx_pthread_test06
test_nuttx_pthread_test09
test_nuttx_pthread_test18
test_nuttx_pthread_test19
test_nuttx_pthread_test21
nuttx_sched_testsuites
test_nuttx_sched_pthread01
test_nuttx_sched_pthread02
test_nuttx_sched_pthread03
test_nuttx_sched_pthread04
test_nuttx_sched_pthread05
test_nuttx_sched_pthread06
test_nuttx_sched_pthread07
test_nuttx_sched_pthread08
test_nuttx_sched_pthread09
test_nuttx_sched_task01
test_nuttx_sched_task02
test_nuttx_sched_task03
test_nuttx_sched_task04
test_nuttx_sched_task05
test_nuttx_sched_task06
test_nuttx_sched_task07
nuttx_time_testsuites
test_nuttx_clock_test_smoke01
test_nuttx_clock_test_timer01
test_nuttx_clock_test_timer03
test_nuttx_clock_test_timer04
test_nuttx_clock_test_timer05
test_nuttx_clock_test_clock01
test_nuttx_clock_test_clock02
Cmocka Test Completed.
nsh> echo cmocka_list_end
cmocka_list_end
nsh> echo cmocka_test_start
cmocka_test_start
nsh> cmocka --skip test_case_posix_timer|test_case_oneshot|write_default|read_defaulCmocka Test Start.
[==========] nuttx_fs_test_suites: Running 45 test(s).
[ RUN ] test_nuttx_fs_creat01
ERROR: Failed to switch the mount dir
[==========] nuttx_mm_test_suites: Running 8 test(s).
[ RUN ] test_nuttx_mm01
[ OK ] test_nuttx_mm01
[ RUN ] test_nuttx_mm02
[ OK ] test_nuttx_mm02
[ RUN ] test_nuttx_mm03
[ OK ] test_nuttx_mm03
[ RUN ] test_nuttx_mm04
[ OK ] test_nuttx_mm04
[ RUN ] test_nuttx_mm05
[ OK ] test_nuttx_mm05
[ RUN ] test_nuttx_mm06
[ OK ] test_nuttx_mm06
[ RUN ] test_nuttx_mm07
[ OK ] test_nuttx_mm07
[ RUN ] test_nuttx_mm08
[ OK ] test_nuttx_mm08
[==========] nuttx_mm_test_suites: 8 test(s) run.
[ PASSED ] 8 test(s).
[==========] nuttx_pthread_test_suites: Running 8 test(s).
[ RUN ] test_nuttx_pthread_test03
ptid: 20
ret: 1
ret of getdetachstate: 0
ret of setdetachstate: 0
ret of pthread_join: 0
[ OK ] test_nuttx_pthread_test03
[ RUN ] test_nuttx_pthread_test04
ret: 0
temp: 2
[ OK ] test_nuttx_pthread_test04
[ RUN ] test_nuttx_pthread_test05
duration: 2.000000
ret: 0
temp: -1
[ OK ] test_nuttx_pthread_test05
[ RUN ] test_nuttx_pthread_test06
ret: 0
[ OK ] test_nuttx_pthread_test06
[ RUN ] test_nuttx_pthread_test09
ret: 0
g_testPthreadCount: 1
ret: 3
temp: 1
ret: 3
temp: 1
ret: 3
ret: 0
ret: 3
ret: 3
[ OK ] test_nuttx_pthread_test09
[ RUN ] test_nuttx_pthread_test18
ret: 0
ret: 0
ret: 0
g_testPthreadCount: 1
ret: 22
ret: 22
ret: 0
ret: 22
param2.sched_priority: 2
ret: 22
ret: 0
param2.sched_priority: 31
ret of sem_post: 0
ret: 0
temp: 9
ret: 3
ret: 3
ret: 0
ret: 0
[ OK ] test_nuttx_pthread_test18
[ RUN ] test_nuttx_pthread_test19
ret: 22
ret: 22
ret: 0
g_testPthreadCount: 1
ret: 0
g_testPthreadCount: 1
[ OK ] test_nuttx_pthread_test19
[ RUN ] test_nuttx_pthread_test21
ret: 22
ret: 22
ret: 0
ret: 0
oldstate: 0
ret: 22
ret: 22
ret: 0
ret: 0
oldstate: 1
[ OK ] test_nuttx_pthread_test21
[==========] nuttx_pthread_test_suites: 8 test(s) run.
[ PASSED ] 8 test(s).
[==========] nuttx_sched_testsuites: Running 16 test(s).
[ RUN ] test_nuttx_sched_pthread01
[ OK ] test_nuttx_sched_pthread01
[ RUN ] test_nuttx_sched_pthread02
[ OK ] test_nuttx_sched_pthread02
[ RUN ] test_nuttx_sched_pthread03
[ OK ] test_nuttx_sched_pthread03
[ RUN ] test_nuttx_sched_pthread04
[ OK ] test_nuttx_sched_pthread04
[ RUN ] test_nuttx_sched_pthread05
[ OK ] test_nuttx_sched_pthread05
[ RUN ] test_nuttx_sched_pthread06
[ OK ] test_nuttx_sched_pthread06
[ RUN ] test_nuttx_sched_pthread07
[ OK ] test_nuttx_sched_pthread07
[ RUN ] test_nuttx_sched_pthread08
[ OK ] test_nuttx_sched_pthread08
[ RUN ] test_nuttx_sched_pthread09
[ OK ] test_nuttx_sched_pthread09
[ RUN ] test_nuttx_sched_task01
[ OK ] test_nuttx_sched_task01
[ RUN ] test_nuttx_sched_task02
[ OK ] test_nuttx_sched_task02
[ RUN ] test_nuttx_sched_task03
[ OK ] test_nuttx_sched_task03
[ RUN ] test_nuttx_sched_task04
[test_nuttx_sched_task04]:scheduling policy is RR!
[ OK ] test_nuttx_sched_task04
[ RUN ] test_nuttx_sched_task05
[ OK ] test_nuttx_sched_task05
[ RUN ] test_nuttx_sched_task06
[ OK ] test_nuttx_sched_task06
[ RUN ] test_nuttx_sched_task07
[ OK ] test_nuttx_sched_task07
[==========] nuttx_sched_testsuites: 16 test(s) run.
[ PASSED ] 16 test(s).
[==========] nuttx_time_testsuites: Running 7 test(s).
[ RUN ] test_nuttx_clock_test_smoke01
the clock current time: 38 second, 873000000 nanosecond
the clock setting time: 39 second, 873000000 nanosecond
obtaining the current time after setting: 39 second, 873000000 nanosecond
[ OK ] test_nuttx_clock_test_smoke01
[ RUN ] test_nuttx_clock_test_timer01
sigaction 14: 0
sigprocmask setmask 14: 0
timer_create 0x80178b38: 0
timer_settime 0x80178b38: 0
timer_settime 0x80178ba8: 0
timer_settime 0x80178ba8: 0
sleep 3s
timer_gettime 0x80178b38: 0
unblock signal 14
signo = 14 test_timer01_g_sig_hdl_cnt = 1
sigprocmask unblock 14: 0
sleep another 1s
signo = 14 test_timer01_g_sig_hdl_cnt = 2
sleep time over, test_timer01_g_sig_hdl_cnt = 2
sleep another 1s
signo = 14 test_timer01_g_sig_hdl_cnt = 3
sleep time over, test_timer01_g_sig_hdl_cnt = 3
timer_delete 0x80178b38 0
timer_delete 0x80178ba8 0
[ OK ] test_nuttx_clock_test_timer01
[ RUN ] test_nuttx_clock_test_timer03
timer_create 0x80178b38: 0
expected = 30000000 escaped = 31000000 failed = 0
expected = 1000000000 escaped = 1002000000 failed = 0
expected = 1000005000 escaped = 1003000000 failed = 0
[ OK ] test_nuttx_clock_test_timer03
[ RUN ] test_nuttx_clock_test_timer04
sigaction 32: 0
sigaction 32: 0
timer_create 0x80178b58: 0
timer_create 0x80178b58: 0
sleep 3s
timer_gettime 0x80178b58: 0
sig 32, si 0x8014eb7c, uc 0
sig 32, si 0x8014eb04, uc 0
sig 32, si 0x8014eb2c, uc 0
sigprocmask unblock 32: 0
sleep another 3s
sig 32, si 0x8014eb54, uc 0
sleep time over, g_handlerFlag = 4
timer_delete 0x80178b58 0
[ OK ] test_nuttx_clock_test_timer04
[ RUN ] test_nuttx_clock_test_timer05
timer_settime 0x80178b58: 0
timer_create 0x80178b58: 0
timer_settime 0x80178bc8: 0
timer_settime 0x80178bc8: 0
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
This is temp_sig_handler ...
timer_delete 0x80178b58 0
timer_delete 0x80178bc8 0
[ OK ] test_nuttx_clock_test_timer05
[ RUN ] test_nuttx_clock_test_clock01
The current real time: sec is 75, nsec is 882000000
sleep 2 seconds
Setting time: sec is 77, nsec is 882000000
get real time clock again
Obtaining the current time after setting: sec = 77, nsec = 882000000
[ OK ] test_nuttx_clock_test_clock01
[ RUN ] test_nuttx_clock_test_clock02
[ OK ] test_nuttx_clock_test_clock02
[==========] nuttx_time_testsuites: 7 test(s) run.
[ PASSED ] 7 test(s).
Cmocka Test Completed.
nsh> t|burst_test|gpiotest01|test_playback.*|test_interaction.*|test_stress.*|test_cnsh: t|burst_test|gpiotest01|test_playback.*|test_interaction.*|test_stress.*|test_c: command not found
nsh> apture.*
nsh: apture.*: command not found
nsh> echo cmocka_test_end
cmocka_test_end
nsh> free
total used free maxused maxfree nused nfree name
32067100 51612 32015488 2170968 31993912 69 3 Umem
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0001952 0000828 42.4% Idle_Task
1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000524 27.6% hpwork 0x8014b258 0x8014b27c
2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000508 26.7% lpwork 0x8014b220 0x8014b244
3 3 100 RR Task - Running 0000000000000000 0001920 0001752 91.2%! nsh_main
nsh> ls /data
nsh: ls: stat failed: 2
nsh> hello
Hello, World!!
nsh> free
total used free maxused maxfree nused nfree name
32067100 51612 32015488 2170968 31993912 69 3 Umem
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0001952 0000828 42.4% Idle_Task
1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000524 27.6% hpwork 0x8014b258 0x8014b27c
2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000508 26.7% lpwork 0x8014b220 0x8014b244
riscv_exception: EXCEPTION: Load access fault. MCAUSE: 00000005, EPC: 80022d50, MTVAL: 00000048
riscv_exception: PANIC!!! Exception = 00000005
dump_assert_info: Current Version: NuttX 12.7.0 1c7d81881c Dec 10 2024 19:01:06 risc-v
dump_assert_info: Assertion failed panic: at file: common/riscv_exception.c:131 task: nsh_main process: nsh_main 0x8000a7a0
up_dump_register: EPC: 80022d50
up_dump_register: A0: 00000000 A1: 8016d1c4 A2: 00000401 A3: 8016d268
up_dump_register: A4: 8016cf30 A5: 8016cf30 A6: 80169a2c A7: 30000000
up_dump_register: T0: 00000000 T1: 00000020 T2: 00000000 T3: 0000031f
up_dump_register: T4: 0000002d T5: 00000000 T6: 00000000
up_dump_register: S0: 8016ff48 S1: 8016c980 S2: 80177010 S3: 80177040
up_dump_register: S4: 00000200 S5: 00000003 S6: 800edbec S7: 800ed35c
up_dump_register: S8: 8014b000 S9: 00000000 S10: 00000000 S11: 00000000
up_dump_register: SP: 8016d1f0 FP: 8016ff48 TP: 00000000 RA: 8001417e
dump_stackinfo: User Stack:
dump_stackinfo: base: 0x8016cfb0
dump_stackinfo: size: 00001920
dump_stackinfo: sp: 0x8016d1f0
stack_dump: 0x8016d1d0: 00000018 8016b1e0 0000000f 80008c72 00000000 00000000 8014b000 80022d4e
stack_dump: 0x8016d1f0: 800ed4a4 00000003 80177040 8001417e 8016d2bc 8016d268 00000401 8016ff48
stack_dump: 0x8016d210: 8016b1e0 00000780 8016cf30 8016cfb0 00000000 00000000 0000000e 80007760
stack_dump: 0x8016d230: 80008a58 00000401 8016ff48 80014250 800089c4 80008ac0 8016ff48 8016d268
stack_dump: 0x8016d250: 30303020 80177010 0000000e 8000b734 80177010 8016d320 8016ff48 80177040
stack_dump: 0x8016d270: 00000200 00000000 80169a2c 30000000 34326234 00000000 8014b000 800ed35c
stack_dump: 0x8016d290: 800ed4a4 00000003 80177040 800ee000 80177010 8016d320 0000000e 8001050c
stack_dump: 0x8016d2b0: 8016fea4 00000000 00000000 8016ff48 80177133 00000002 80177040 800edbec
stack_dump: 0x8016d2d0: 8016fea4 80177010 80177010 800105c4 00000001 00000022 8014b3e8 00000000
stack_dump: 0x8016d2f0: 8016ce9c 8016fed0 8016fea4 80014f84 8016d378 8016ce9c 00000000 80014604
stack_dump: 0x8016d310: 800ed4a4 800ed42c 00000022 800ed42c 801015a0 801015a0 801015a0 801015a0
stack_dump: 0x8016d330: 801015a0 801015a0 801015a0 801015a0 801015a0 00000003 00000000 00000000
stack_dump: 0x8016d350: 00000000 80177040 00000200 00000000 20544e45 800ed42c 8016fea4 00000000
stack_dump: 0x8016d370: 00000000 00000000 8014b000 800ed35c 800ed4a4 8016d3eb 80010528 800edbec
stack_dump: 0x8016d390: 8016fea0 800ed42c 80177010 8000b88e 00002080 00000000 00000001 8016d55c
stack_dump: 0x8016d3b0: 00000001 80139700 80177010 800109b8 800ee18c 800ee184 800ee17c 800ee174
stack_dump: 0x8016d3d0: 8010ae84 800ee16c 800ee164 8000bf8c 8016b1e0 8016d5ec 0014af88 801772c8
stack_dump: 0x8016d3f0: 80177530 801772c8 80177010 8016d544 801772c8 ffffffff 80177010 8000d41e
stack_dump: 0x8016d410: 800ed4a4 00000000 00000001 8016d55c 00000001 80139700 80177010 8000da30
stack_dump: 0x8016d430: 8016fe68 0000000f 00000003 801772c8 8016c980 800059b0 800059ac 00000001
stack_dump: 0x8016d450: 8016d55c 8016d544 80177010 8000bcb0 00000000 8014b290 00002088 00000000
stack_dump: 0x8016d470: 8016d5bc 00000004 0000007e 00000002 00000001 00000000 0000003d 00000005
stack_dump: 0x8016d490: 00000001 8014b371 00000000 8014b2c8 0000000d 0000000a 8016ce60 8014b290
stack_dump: 0x8016d4b0: 8014b290 00002080 00000078 80006c16 00000000 00003880 00000004 00000000
stack_dump: 0x8016d4d0: 00000000 00000000 8014b000 800ed35c 800ed4a4 00000000 00000000 00000001
stack_dump: 0x8016d4f0: 00000004 801772c8 80177010 8000ccf8 00000000 8014b2e4 8014b2ac 00000001
stack_dump: 0x8016d510: 00000003 00002088 8014b290 801772cb 00000000 ffffffff ffffffff 00000000
stack_dump: 0x8016d530: 00000000 00000001 8016b468 00000000 8016d5b8 ffffffff ffffffff 00000000
stack_dump: 0x8016d550: 00000000 00000000 00000000 801772c8 00000000 00000000 00000000 00000000
stack_dump: 0x8016d570: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d590: 00000000 00000000 00000000 80013c82 8016d63c 801772c8 8016d63c 00000001
stack_dump: 0x8016d5b0: 00000050 00000101 00000000 80013e2a 00000005 00000005 8016ce60 8016d5e8
stack_dump: 0x8016d5d0: 00000005 00000003 00000000 00000001 00000050 00000102 00000000 00000000
stack_dump: 0x8016d5f0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d610: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d630: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d650: 00000100 00000005 00000001 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x8016d670: 00000000 00000000 00000000 00000001 ffffffff 801772c8 80177010 8000aba4
stack_dump: 0x8016d690: 801772c8 00000000 00000001 8014b36c ffffff83 8016b1e0 00000001 00000000
stack_dump: 0x8016d6b0: 00000000 8016cf90 80177010 8000a81a 8016b1e0 8016cf90 8016cf90 00000001
stack_dump: 0x8016d6d0: 00000000 8016cf90 00000001 8000a7d0 8016a000 800eb744 800eb740 00000064
stack_dump: 0x8016d6f0: 00000000 8016c980 8000a7a0 800078a6 00000000 00000000 00000001 8016cf90
stack_dump: 0x8016d710: 00000000 8016c980 00000000 8000277c 00000000 00000000 00000000 00000000
stack_dump: 0x8016d730: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
dump_tasks: ---- --- --- -------- ------- --- ------- ---------- ---------------- 0x8014db70 2048 748 36.5% irq
dump_task: 0 0 0 FIFO Kthread - Ready 0000000000000000 0x8016aa40 1952 828 42.4% Idle_Task
dump_task: 1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0x8016b6d8 1896 524 27.6% hpwork 0x8014b258 0x8014b27c
dump_task: 2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0x8016bfa8 1896 508 26.7% lpwork 0x8014b220 0x8014b244
dump_task: 3 3 100 RR Task - Running 0000000000000000 0x8016cfb0 1920 1920 100.0%! nsh_main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment