rtt-1.12 deployer-xenomai segmentation fault

rtt-1.12 deployer-xenomai segmentation fault

On Tuesday 16 November 2010 11:13:47 jpmzometa [..] ... wrote:
> Hello.
>
> I am getting a segmentation fault after starting deployer-xenomai or
> deployer-corba-xenomai.
>
> Strangely, if I run an application like
> deployer-corba-xenomai -s assignment-trajtest.xml
> the first time I get segmentation fault, but if I inmediately after run
> again the same command, the application runs normally (except that I
> cannot see what I type in). If I quit the deployer, and reset my console,
> the cycle starts again (e.g. the first time I run the deployer I get seg
> fault, the following times the application runs).
>
> If I run the deployer without the -s argument, I always get segmentation
> fault.

Can you recompile OCL with the NO_GPL flag turned on in cmake ?

cmake .. -DNO_GPL=ON

And then re-test ? This to exclude interaction with libreadline, which shares
a signal handler with Xenomai.

Peter

Hi Peter.It works indeed. I

Hi Peter.

It works indeed. I reported this same issue in OCL-1.10, and according to this link
http://www.orocos.org/orocos/rtt-1101-and-ocl-1101-released

"Fix line reading of TaskBrowser in NO_GPL mode" OCL-1.10.1. I am a bit confused, did you mean

"Fix line reading of TaskBrowser in NO_GPL=OFF mode" or "Fix line reading of TaskBrowser in NO_GPL=ON mode"?

Regards,

Hi Peter.It works indeed. I

Hi Peter.

It works indeed. I reported this same issue in OCL-1.10, and according to this link http://www.orocos.org/orocos/rtt-1101-and-ocl-1101-released

"Fix line reading of TaskBrowser in NO_GPL mode" OCL-1.10.1. I am a bit confused, did you mean

"Fix line reading of TaskBrowser in NO_GPL=OFF mode" or "Fix line reading of TaskBrowser in NO_GPL=ON mode"?

Regards,

Hi Peter.It works indeed. I

On Tuesday 16 November 2010 13:45:31 jpmzometa [..] ... wrote:
> Hi Peter.
>
> It works indeed. I reported this same issue in OCL-1.10, and according to
> this link http://www.orocos.org/orocos/rtt-1101-and-ocl-1101-released
>
> "Fix line reading of TaskBrowser in NO_GPL mode" OCL-1.10.1. I am a bit
> confused, did you mean
>
> "Fix line reading of TaskBrowser in NO_GPL=OFF mode" or "Fix line reading
> of TaskBrowser in NO_GPL=ON mode"?

Both cases should have worked :-(.

I had a patch for fixing this Xenomai bug, which got lost. It's in no release,
so I'll have to dig it up and apply it.

Peter

rtt-1.12 deployer-xenomai segmentation fault

Hello.

I am getting a segmentation fault after starting deployer-xenomai or deployer-corba-xenomai.

Strangely, if I run an application like
deployer-corba-xenomai -s assignment-trajtest.xml
the first time I get segmentation fault, but if I inmediately after run again the same command, the application runs normally (except that I cannot see what I type in). If I quit the deployer, and reset my console, the cycle starts again (e.g. the first time I run the deployer I get seg fault, the following times the application runs).

If I run the deployer without the -s argument, I always get segmentation fault.

My system:
Orocos rtt/ocl 1.12
Linux kernel 2.6.35.7
Xenomai 2.5.5.2
Ubuntu 9.10

What info do you need from us to track this bug?

For example:

$ cat /var/log/messages
Nov 16 11:18:20 robot02 kernel: [ 1411.715206] TaskBrowser[2844]: segfault at 8 ip 00007f90f1175061 sp 00007f90f19c38b0 error 4 in libxenomai.so.0.0.0[7f90f1173000+4000]

$ sudo /usr/local/bin/deployer-corba-xenomai -l Debug
0.004 [ Debug ][ExecutionEngine] Creating ExecutionEngine for Deployer
0.004 [ Info ][Thread] Creating Thread for scheduler: 1
0.004 [ Info ][Deployer] Thread created with scheduler type '1', priority -1 and period 0.
0.005 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] No RTT_COMPONENT_PATH set. Using default.
0.005 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] RTT_COMPONENT_PATH was set to /usr/local/lib/orocos
0.005 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Re-scanning for plugins and components...
0.005 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] No such directory: /usr/local/lib/orocos/types
0.005 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] No such directory: /usr/local/lib/orocos/types/xenomai
0.005 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] No such directory: /usr/local/lib/orocos/plugins
0.005 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] No such directory: /usr/local/lib/orocos/plugins/xenomai
0.005 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Importing component libraries from directory /usr/local/lib/orocos ...
0.006 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-naxes-xenomai.so.1.12 ...not a .so library: ignored.
0.006 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-cartesian-xenomai.so.1.12.0 ...not a .so library: ignored.
0.006 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-ocl-common-xenomai.so.1.12.0 ...not a .so library: ignored.
0.006 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-ocl-common-xenomai.so ...Succesfully loaded orocos-ocl-common-xenomai
0.006 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Loaded multi component library '/usr/local/lib/orocos/liborocos-ocl-common-xenomai.so'
0.006 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Components: OCL::HMIConsoleOutput
0.006 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-ocl-common-xenomai.so.1.12 ...not a .so library: ignored.
0.011 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-naxes-xenomai.so ...Succesfully loaded orocos-naxes-xenomai
0.011 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Loaded multi component library '/usr/local/lib/orocos/liborocos-naxes-xenomai.so'
0.011 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Components: OCL::nAxesControllerPos OCL::nAxesControllerPosVel OCL::nAxesControllerPosVelAcc OCL::nAxesControllerVel OCL::nAxesGeneratorPos OCL::nAxesGeneratorVel
0.011 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-helloworld-xenomai.so.1.12.0 ...not a .so library: ignored.
0.011 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-helloworld-xenomai.so.1.12 ...not a .so library: ignored.
0.014 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-helloworld-xenomai.so ...Succesfully loaded orocos-helloworld-xenomai
0.014 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Loaded component type 'OCL::HelloWorld'
0.017 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-timer-xenomai.so ...Succesfully loaded orocos-timer-xenomai
0.017 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Loaded multi component library '/usr/local/lib/orocos/liborocos-timer-xenomai.so'
0.017 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Components: OCL::TimerComponent
0.017 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-reporting-xenomai.so.1.12 ...not a .so library: ignored.
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-reporting-xenomai.so ...Succesfully loaded orocos-reporting-xenomai
0.019 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Loaded multi component library '/usr/local/lib/orocos/liborocos-reporting-xenomai.so'
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Components: OCL::ConsoleReporting OCL::FileReporting OCL::TcpReporting
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-naxes-xenomai.so.1.12.0 ...not a .so library: ignored.
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-timer-xenomai.so.1.12.0 ...not a .so library: ignored.
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-reporting-xenomai.so.1.12.0 ...not a .so library: ignored.
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-timer-xenomai.so.1.12 ...not a .so library: ignored.
0.019 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-cartesian-xenomai.so.1.12 ...not a .so library: ignored.
0.023 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Scanning file /usr/local/lib/orocos/liborocos-cartesian-xenomai.so ...Succesfully loaded orocos-cartesian-xenomai
0.023 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Loaded multi component library '/usr/local/lib/orocos/liborocos-cartesian-xenomai.so'
0.023 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Components: OCL::CartesianControllerPos OCL::CartesianControllerPosVel OCL::CartesianControllerVel OCL::CartesianGeneratorPos OCL::CartesianVelocityController
0.023 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] No such directory: /usr/local/lib/orocos/xenomai
0.023 [ Debug ][/usr/local/bin/deployer-corba-xenomai::main()] Not using site file.
0.023 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Registering ControlTaskProxy factory.
0.023 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] Creating new ControlTaskServer for Deployer
0.026 [ Info ][/usr/local/bin/deployer-corba-xenomai::main()] ControlTask 'Deployer' found CORBA Naming Service.
0.026 [ Debug ][Deployer] NamingContext 'ControlTasks' already bound to CORBA Naming Service.
0.026 [ Info ][Deployer] Successfully added ControlTask 'Deployer' to CORBA Naming Service.
0.026 [ Info ][ThreadOrb] Starting Orb in a thread.
0.026 [ Debug ][SingleThread] Creating.
0.027 [ Info ][NonPeriodicActivity] SingleThread created with priority 1 and period 0.
0.027 [ Info ][NonPeriodicActivity] Scheduler type was set to `0'.
0.027 [ Debug ][ExecutionEngine] Creating ExecutionEngine for TaskBrowser
0.027 [ Info ][Thread] Creating Thread for scheduler: 1
0.027 [ Info ][OrbRunner] Entering orb->run().
0.027 [ Info ][TaskBrowser] Thread created with scheduler type '1', priority -1 and period 0.
Switched to : Deployer
0.027 [ Info ][Deployer] Entering Task Deployer

This console reader allows you to browse and manipulate TaskContexts.
You can type in a command, event, method, expression or change variables.
(type 'help' for instructions)
TAB completion and HISTORY is available ('bash' like)

In Task Deployer[S]. (Status of last Command : none )
(type 'ls' for context info) :Segmentation fault