Hi all,
my application crashes after ORO_main returned with "return 0".
But only when I link against the deployer by using "orocos_use_package(ocl-deployment)". The strange thing is that I don't create any instance of the deployer, at least no on my own.
I have copiled ororcos with corba (tao) support, but don't use corba for this app, again at least not on my own.
The linker call for me is:
/usr/bin/c++ CMakeFiles/MyPack_Test.dir/MyPack_Test.cpp.o CMakeFiles/MyPack_Test.dir/__/src/MyPack-Implementation.cpp.o CMakeFiles/MyPack_Test.dir/__/src/MyPack-component.cpp.o -o MyPack_Test -rdynamic /opt/orocos/install/lib/orocos/gnulinux/plugins/librtt-scripting-gnulinux.so /opt/orocos/install/lib/liborocos-ocl-deployment-gnulinux.so /opt/orocos/install/lib/liborocos-ocl-deployment-corba-gnulinux.so /opt/orocos/install/lib/liborocos-rtt-gnulinux.so -lpthread -lrt /opt/orocos/install/lib/liborocos-rtt-gnulinux.so.2.4.0 -lQtGui -lQtCore -lboost_filesystem-mt -lboost_system-mt -lboost_serialization-mt -lxerces-c -lpthread -lrt -ldl -Wl,-rpath, /opt/orocos/install/lib/orocos/gnulinux/plugins:/opt/orocos/install/libI have created package template for my Application, based on orocreate-pkg, thats attached. (needs QT installed) To reproduce the fault, just unpack in any directory and call in "Template" the script "MachineControl-create-pkg MyPack". Than go into the new directory "MyPack" and call "make test"
The test will fail.
To make the test work again edit the file "MyPack/test/CMakeLists.txt" and comment out the line "orocos_use_package(ocl-deployment)". Than call "make clean" and "make test" and it should run successful . .. .
This crash is quite annoying as my test will be marked as failed even if all cases where executed right..
Any ideas what could causing it??
Ciao Joerg
Segfault on exit with deployler linked
On Sun, Jun 19, 2011 at 10:51 AM, <joerg [..] ...> wrote:
>
>> Hi all,
>>
>> my application crashes after ORO_main returned with "return 0".
>>
>> But only when I link against the deployer by using "orocos_use_package(ocl-deployment)".
>> The strange thing is that I don't create any instance of the deployer, at least no on my own.
>>
>> I have copiled ororcos with corba (tao) support, but don't use corba for this app, again at least not on my own.
>>
>> The linker call for me is:
>> /usr/bin/c++ CMakeFiles/MyPack_Test.dir/MyPack_Test.cpp.o
>> CMakeFiles/MyPack_Test.dir/__/src/MyPack-Implementation.cpp.o
>> CMakeFiles/MyPack_Test.dir/__/src/MyPack-component.cpp.o
>> -o MyPack_Test -rdynamic /opt/orocos/install/lib/orocos/gnulinux/plugins/librtt-scripting-gnulinux.so
>> /opt/orocos/install/lib/liborocos-ocl-deployment-gnulinux.so
>> /opt/orocos/install/lib/liborocos-ocl-deployment-corba-gnulinux.so
>> /opt/orocos/install/lib/liborocos-rtt-gnulinux.so -lpthread -lrt
>> /opt/orocos/install/lib/liborocos-rtt-gnulinux.so.2.4.0 -lQtGui
>> -lQtCore -lboost_filesystem-mt -lboost_system-mt -lboost_serialization-mt
>> -lxerces-c -lpthread -lrt -ldl -Wl,-rpath,
>> /opt/orocos/install/lib/orocos/gnulinux/plugins:/opt/orocos/install/lib
>>
>>
>> I have created package template for my Application, based on orocreate-pkg, thats attached. (needs QT installed)
>> To reproduce the fault, just unpack in any directory and call in "Template" the script "MachineControl-create-pkg MyPack". Than go into the new directory "MyPack" and call "make test"
>>
>> The test will fail.
>>
>>
>> To make the test work again edit the file "MyPack/test/CMakeLists.txt" and comment out the line "orocos_use_package(ocl-deployment)".
>> Than call "make clean" and "make test" and it should run successful . .. .
>>
>>
>> This crash is quite annoying as my test will be marked as failed even if all cases where executed right..
>>
>> Any ideas what could causing it??
>
> I have no time yet to run your testcase, but I pushed a possible fix
> to the toolchain-2.4 branch of OCL. Could you test it ? We had similar
> issues with the PluginLoader, so I applied a similar fix.
>
> Peter
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>
> Hi Peter,
>
> Nop, did not do the trick .. .
>
> I did an "autoproj update" and "autoproj rebuild" but the problem is still there.....
>
I'll try your testcase asap then.
Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users