Question about SMP tests after shutdown

Alan Cudmore alan.cudmore at gmail.com
Wed Nov 16 16:55:44 UTC 2022


Hi,
I am running testsuite applications on a dual core RISC-V CPU. When I
run samples such as ticker.exe, the test ends without error messages.
On SMP tests, the tests seem to run correctly and end, but there is
always a fatal error from thread(s) on the other CPU.
(RTEMS_FATAL_SOURCE_SMP)
My guess is that the threads are being scheduled after the primary
test thread shut down the RTEMS executive, causing the error to be
caught. Is this expected behavior on a SMP system?
There are a couple of BSPs that implement a fatal error handler to
catch this error, and I would expect that on a real application, it
would be handled appropriately.
The error I get from smp08 is below.
Thanks,
Alan

*** END OF TEST SMP 8 ***

[ RTEMS shutdown ]
CPU: 1
RTEMS version: 6.0.0.1eae6f24fec6c3ab00d8f5d0152d2a5b57ea4589
RTEMS tools: 12.2.1 20221014 (RTEMS 6, RSB
e24641bda7412277c3e6490b663a12aceb093dec, Newlib 0b6342c)
executing thread ID: 0x0a010002
executing thread name: TA01

*** FATAL ***
fatal source: 10 (RTEMS_FATAL_SOURCE_SMP)
CPU: 0
fatal code: 5 (0x00000005)
RTEMS version: 6.0.0.1eae6f24fec6c3ab00d8f5d0152d2a5b57ea4589
RTEMS tools: 12.2.1 20221014 (RTEMS 6, RSB
e24641bda7412277c3e6490b663a12aceb093dec, Newlib 0b6342c)
executing thread ID: 0x09010001
executing thread name: IDLE


More information about the devel mailing list