orocoss-rtai fails check on rtai

orocoss-rtai fails check on rtai

On Fri, Nov 6, 2009 at 10:18, Enrico Piccinini
<enrico [dot] piccinini [..] ...>wrote:

> Hi,
>
> I successfully installed orocos-rtt for gnulinux and play with it with
> various examples.
>
> Now I would like to compile it for rtai.
>
> I installed RTAI and executed all the testsuite programs. Everithing has
> worked correctly (or it seemed to me, but I got 0 overruns in latency test).
>
> I finally successfully recompiled orocos for rtai and compilation was with
> no errror. But giving "make check" every test gives me "Segmentation Fault".
>
>
> Can anyone give me any advice to understand the problem?
>

You probably forgot to do
modprobe rtai_lxrt
modprobe rtai_sem

?

Which RTAI version ?

Peter

orocoss-rtai fails check on rtai

My rtai modules loading script was wrong. After corrections many tests
have passed, but unfortunately not all.

Below I report the failure:
> 4/ 10 Testing task-test
> Test command:
> /home/pic/Sviluppo/orocos-rtt-1.10.0/build-rtailinux/tests/task-test
> Test timeout computed to be: 9.99988e+06
> Running 21 test cases...
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(282): error
> in "testOverrun": Failed to detect step overrun in Thread
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(284): error
> in "testOverrun": Failed to execute finalize in emergencyStop
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(303): error
> in "testThread": Step not executed
> overfail is:1, underfail is:0 success is: 8
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(314): error
> in "testThread": Periodic Failure: period of step() too long !
> overfail is:1, underfail is:0 success is: 8
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(343): error
> in "testThreads": Periodic Failure: period of step() too long !
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(466): error
> in "testActivityPSelfRemove": check !t_task_per->isRunning() failed
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(467): error
> in "testActivityPSelfRemove": check t_run_int_per->fini failed
>
> *** 7 failures detected in test suite "Master Test Suite"
> -- Process completed
> ***Failed
[...]

> 90% tests passed, 1 tests failed out of 10
>
> The following tests FAILED:
> 4 - task-test (Failed)
> Errors while running CTest
> make[3]: *** [tests/CMakeFiles/check] Error 8
> make[2]: *** [tests/CMakeFiles/check.dir/all] Error 2
> make[1]: *** [tests/CMakeFiles/check.dir/rule] Error 2
> make: *** [check] Error 2
I've done latency test of rtai and averything seemed to go well (0
overruns).

Can anyone give me any advice to solve this problem?

Thank you a lot.
Enrico

Peter Soetens wrote:
> On Fri, Nov 6, 2009 at 10:18, Enrico Piccinini
> <enrico [dot] piccinini [..] ... <mailto:enrico [dot] piccinini [..] ...>> wrote:
>
> Hi,
>
> I successfully installed orocos-rtt for gnulinux and play with it
> with various examples.
>
> Now I would like to compile it for rtai.
>
> I installed RTAI and executed all the testsuite programs.
> Everithing has worked correctly (or it seemed to me, but I got 0
> overruns in latency test).
>
> I finally successfully recompiled orocos for rtai and compilation
> was with no errror. But giving "make check" every test gives me
> "Segmentation Fault".
>
> Can anyone give me any advice to understand the problem?
>
>
> You probably forgot to do
> modprobe rtai_lxrt
> modprobe rtai_sem
>
> ?
>
> Which RTAI version ?
>
> Peter
>

orocoss-rtai fails check on rtai

On Sat, Nov 7, 2009 at 08:43, Enrico Piccinini
<enrico [dot] piccinini [..] ...>wrote:

> My rtai modules loading script was wrong. After corrections many tests
> have passed, but unfortunately not all.
>
> Below I report the failure:
>
> 4/ 10 Testing task-test
> Test command:
> /home/pic/Sviluppo/orocos-rtt-1.10.0/build-rtailinux/tests/task-test
> Test timeout computed to be: 9.99988e+06
> Running 21 test cases...
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(282): error in
> "testOverrun": Failed to detect step overrun in Thread
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(284): error in
> "testOverrun": Failed to execute finalize in emergencyStop
>
> These two will be 'fixed' in 1.10.2. The LXRT layer in Orocos doesn't
support this, so the test always fails.

> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(303): error in
> "testThread": Step not executed
> overfail is:1, underfail is:0 success is: 8
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(314): error in
> "testThread": Periodic Failure: period of step() too long !
> overfail is:1, underfail is:0 success is: 8
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(343): error in
> "testThreads": Periodic Failure: period of step() too long !
>
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(466): error in
> "testActivityPSelfRemove": check !t_task_per->isRunning() failed
> /home/pic/Sviluppo/orocos-rtt-1.10.0/tests/tasks_test.cpp(467): error in
> "testActivityPSelfRemove": check t_run_int_per->fini failed
>
>
We don't have these with RTAI 3.6 on our systems. However, it is likely that
you need to enable the SMI workaround in RTAI to fix these.

>
> *** 7 failures detected in test suite "Master Test Suite"
> -- Process completed
> ***Failed
>
> [...]
>
> 90% tests passed, 1 tests failed out of 10
>
> The following tests FAILED:
> 4 - task-test (Failed)
> Errors while running CTest
> make[3]: *** [tests/CMakeFiles/check] Error 8
> make[2]: *** [tests/CMakeFiles/check.dir/all] Error 2
> make[1]: *** [tests/CMakeFiles/check.dir/rule] Error 2
> make: *** [check] Error 2
>
> I've done latency test of rtai and averything seemed to go well (0
> overruns).
>

But what is the worst case latency using the rtai tests ?

Peter