Re: (no subject)

Peter Soetens <[email protected]>
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <CAMYDobW1tcoZSCX349Ci=kf9tsbr9KQDDGr5rRZX5a1h-CpA+g@mail.gmail.com>
On Thu, Jan 10, 2013 at 2:04 PM, <[email protected]> wrote:

> [quote=peter]On Wed, Jan 9, 2013 at 9:43 AM,  wrote:
>
>  > I use Orocos toolchain 2.6 under ubuntu 10.04 with RTAI 3.9. The system
>  > hangs
>  > when an activity is created and only if the module "rtai_sem" is loaded.
>  >
>
> The rtai_sem module must be loaded. It has been many years since I tested
> Orocos against RTAI/LXRT. Solving this will require typical debugging
> skills such as analysing the last lines of 'dmesg', turning on the debug
> features of the RTAI kernel modules, checking if the API of RTAI 3.5 -> 3.9
> didn't change semantics (ie we check for a return value which was different
> in 3.5 or 3.9)
>
> Another thing you should do in RTT is :
> cd build
> cmake .. -DENABLE_TESTS=ON
> make check
>
> and report on which unit tests work and which don't.
>
> Good luck,
> Peter[/quote]
>
> this is the output of make check :
> [..][100%] Built target typekit_test
> UpdateCTestConfiguration  from
>
> :/home/laboratorio/orocos/orocos-toolchain/rtt/build/tests/DartConfiguration.tcl
> Parse Config
>
> file:/home/laboratorio/orocos/orocos-toolchain/rtt/build/tests/DartConfiguration.tcl
> UpdateCTestConfiguration  from
> :/home/laboratorio/orocos/orocos-toolchain/rtt/build/DartConfiguration.tcl
> Parse Config
>
> file:/home/laboratorio/orocos/orocos-toolchain/rtt/build/DartConfiguration.tcl
> Test project /home/laboratorio/orocos/orocos-toolchain/rtt/build
> Constructing a list of tests
> Done constructing a list of tests
> Checking test dependency graph...
> test 1
>        Start  1: main-test
>
> 1: Test command:
> /home/laboratorio/orocos/orocos-toolchain/rtt/build/tests/main-test
> 1: Test timeout computed to be: 1500
>   1/38 Test  #1: main-test ........................***Exception: SegFault
> 0.07 sec
> test 2
>        Start  2: list-test
>
> 2: Test command:
> /home/laboratorio/orocos/orocos-toolchain/rtt/build/tests/list-test
> 2: Test timeout computed to be: 1500
> 2: Running 2 test cases...
> 2:
> 2: *** No errors detected
>   2/38 Test  #2: list-test ........................***Exception: SegFault
> 0.08 sec
> test 3
>        Start  3: core-test
>
> 3: Test command:
> /home/laboratorio/orocos/orocos-toolchain/rtt/build/tests/core-test
> 3: Test timeout computed to be: 1500
> (the system hangs)


Ok. We first need to solve why main-test did SegFault. I see in the trace
that the kernel got a NULL pointer in the rtai_lxrt module, so that
triggered this case.
You can try to build rtt with this extra option:

cd rtt/build
cmake .. -DOROSEM_OS_LXRT_CHECK=ON
make
cd tests
gdb ./main-test
run
... crash ...
bt

In case this does not work, try to run without gdb too.

Peter

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.