Segfault on exit with deployler linked

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??

Ciao Joerg

Segfault on exit with deployler linked

On Sun, Jun 19, 2011 at 10:51 AM, <joerg [..] ...> wrote:
>

peter wrote:
On Sat, Jun 18, 2011 at 9:35 PM,  <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

Re: Segfault on exit with deployler linked

peter wrote:
On Sun, Jun 19, 2011 at 10:51 AM, <joerg [..] ...> wrote: >
peter wrote:
On Sat, Jun 18, 2011 at 9:35 PM, <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

The crash happens in "CallFunction.hpp" in:

  virtual void reset() {            
         mrunner->removeFunction( _foo.get() );
        maccept = false;
        isqueued = false;
   }
 
I tested mrunner and _foo against NULL before they where called but that did not help. When I comment out the call "mrunner->removeFunction( _foo.get() );" the crash is gone.

What damage will it doe if I don't call "mrunner->removeFunction( _foo.get() );"??? I guess I will lose some memory when components get unloaded, right? As this does not happen to often I could stand it in favor to crashed at program end. Or will it do other harm??

Ciao Joerg


Computer are like air conditioner, they stop working properly when opening windows

Segfault on exit with deployler linked

On Sat, Jun 18, 2011 at 9:35 PM, <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

Re: Segfault on exit with deployler linked

peter wrote:
On Sat, Jun 18, 2011 at 9:35 PM, <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.....

Ciao Joerg


Computer are like air conditioner, they stop working properly when opening windows

Segfault on exit with

Ups, forgot the template package . . .

here it is

Ciao Joerg


Computer are like air conditioner, they stop working properly when opening windows