ubuntu 12.04 / ros-hydro / rttlua sefaulting

Hello!

I am getting a segfault when I try running rttlua as it currently exists in
the ros.org ubuntu repositories:

$ gdb rttlua-gnulinux
...
Reading symbols from /opt/ros/hydro/bin/rttlua-gnulinux...(no debugging
symbols found)...done.
(gdb) run
Starting program: /opt/ros/hydro/bin/rttlua-gnulinux
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Real-time memory: 517904 bytes free of 524288 allocated.
[New Thread 0x7ffff28a4700 (LWP 22429)]
[New Thread 0x7ffff20a3700 (LWP 22430)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000425e54 in RTT::Operation<bool (std::string
const&)>::getImplementation()

My environment:
$ uname -a
Linux groundstation 3.4.29-rt41 #2 SMP PREEMPT RT Sun Feb 10 21:19:29 CET
2013 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l
$ cat /etc/apt/sources.list.d/ros-latest.list
deb http://packages.ros.org/ros/ubuntu precise main

I have the following related packages installed:
sudo apt-get install ros-hydro-desktop
sudo apt-get install ros-hydro-orocos-toolchain
sudo apt-get install ros-hydro-ocl
sudo apt-get install ros-hydro-rtt
sudo apt-get install ros-hydro-rtt-typelib
sudo apt-get install ros-hydro-rospack
sudo apt-get install ros-hydro-rtt-rospack
sudo apt-get install python-rosinstall

I know there is a new ubuntu LTS out, but we're rather fond of our current
12.04 installation since it has the lovely rt kernel we hired
Peter/Ruben/Intermodalics to install for us.

Any ideas?

Cheers,
Andrew

ubuntu 12.04 / ros-hydro / rttlua sefaulting

Hi Andrew,

On Fri, Jun 13, 2014 at 3:27 PM, Andrew Wagner <
andrew [dot] wagner [..] ...> wrote:

> Hello!
>
> I am getting a segfault when I try running rttlua as it currently exists
> in the ros.org ubuntu repositories:
>
> $ gdb rttlua-gnulinux
> ...
> Reading symbols from /opt/ros/hydro/bin/rttlua-gnulinux...(no debugging
> symbols found)...done.
> (gdb) run
> Starting program: /opt/ros/hydro/bin/rttlua-gnulinux
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Real-time memory: 517904 bytes free of 524288 allocated.
> [New Thread 0x7ffff28a4700 (LWP 22429)]
> [New Thread 0x7ffff20a3700 (LWP 22430)]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000425e54 in RTT::Operation<bool (std::string
> const&)>::getImplementation()
>

Thanks for the report, this really looks not nice(tm)

Since we're running a bunch on stuff on 12.04, using rttlua, I'm a bit
surprised we're not having it. Could you in addition show a backtrace with
the 'bt' gdb command ?

>
> My environment:
> $ uname -a
> Linux groundstation 3.4.29-rt41 #2 SMP PREEMPT RT Sun Feb 10 21:19:29 CET
> 2013 x86_64 x86_64 x86_64 GNU/Linux
> $ cat /etc/issue
> Ubuntu 12.04.2 LTS \n \l
> $ cat /etc/apt/sources.list.d/ros-latest.list
> deb http://packages.ros.org/ros/ubuntu precise main
>
> I have the following related packages installed:
> sudo apt-get install ros-hydro-desktop
> sudo apt-get install ros-hydro-orocos-toolchain
> sudo apt-get install ros-hydro-ocl
> sudo apt-get install ros-hydro-rtt
> sudo apt-get install ros-hydro-rtt-typelib
> sudo apt-get install ros-hydro-rospack
> sudo apt-get install ros-hydro-rtt-rospack
> sudo apt-get install python-rosinstall
>
> I know there is a new ubuntu LTS out, but we're rather fond of our current
> 12.04 installation since it has the lovely rt kernel we hired
> Peter/Ruben/Intermodalics to install for us.
>
> Any ideas?
>

Peter

ubuntu 12.04 / ros-hydro / rttlua sefaulting

On Fri, Jun 13, 2014 at 10:58 PM, Peter Soetens <peter [..] ...>
wrote:

> Thanks for the report, this really looks not nice(tm)
>
> Since we're running a bunch on stuff on 12.04, using rttlua, I'm a bit
> surprised we're not having it. Could you in addition show a backtrace with
> the 'bt' gdb command ?
>
>
Sure, here it is!

(gdb) bt
#0 0x0000000000425e54 in RTT::Operation<bool (std::string
const&)>::getImplementation() ()
#1 0x00007ffff7b1e24e in
RTT::Service::addLocalOperation(RTT::base::OperationBase&) ()
from /opt/ros/hydro/lib/liborocos-rtt-gnulinux.so.2.7
#2 0x00007ffff7aef23c in RTT::Operation<RTT::internal::GetSignature (RTT::TaskContext::*)(s:Signature>& RTT::TaskContext::addOperation<bool
(RTT::TaskContext::*)(std::string const&), RTT::ring, bool
(RTT::TaskContext::*)(std::string const&), RTT::TaskContext*,
RTT::ExecutionThread) ()
from /opt/ros/hydro/lib/liborocos-rtt-gnulinux.so.2.7
#3 0x00007ffff7ad38f3 in RTT::TaskContext::setup() () from
/opt/ros/hydro/lib/liborocos-rtt-gnul
#4 0x00007ffff7ad48fe in RTT::TaskContext::TaskContext(std::string const&,
RTT::base::TaskCore::
from /opt/ros/hydro/lib/liborocos-rtt-gnulinux.so.2.7
#5 0x000000000042ab59 in OCL::LuaComponent::LuaComponent(std::string) ()
#6 0x00000000004255d8 in ORO_main_impl(int, char**) ()
#7 0x00000000004191b3 in main ()

I also checked that it's not some old rttlua that it is getting called:
$ which rttlua
/opt/ros/hydro/bin/rttlua

My deployer installation is a mess too:
http://paste.ubuntu.com/7652013/

So much is broken in my installation, I will go double-check if there is a
problem with my apt configuration...

Cheers,
Andrew
>

ubuntu 12.04 / ros-hydro / rttlua sefaulting

Hi Peter,

I updated again today, and the rtt package got updated, and things are no
longer segfaulting! Unless you just pushed a change out over the weekend,
I guess our installation was just in some bad state. I ~did do an apt-get
update before posting, but perhaps the connection failed to update and we
didn't notice.

Cheers,
Andrew

On Mon, Jun 16, 2014 at 10:49 AM, Andrew Wagner <
andrew [dot] wagner [..] ...> wrote:

> On Fri, Jun 13, 2014 at 10:58 PM, Peter Soetens <peter [..] ...>
> wrote:
>
>> Thanks for the report, this really looks not nice(tm)
>>
>> Since we're running a bunch on stuff on 12.04, using rttlua, I'm a bit
>> surprised we're not having it. Could you in addition show a backtrace with
>> the 'bt' gdb command ?
>>
>>
> Sure, here it is!
>
> (gdb) bt
> #0 0x0000000000425e54 in RTT::Operation<bool (std::string
> const&)>::getImplementation() ()
> #1 0x00007ffff7b1e24e in
> RTT::Service::addLocalOperation(RTT::base::OperationBase&) ()
> from /opt/ros/hydro/lib/liborocos-rtt-gnulinux.so.2.7
> #2 0x00007ffff7aef23c in RTT::Operation<RTT::internal::GetSignature > (RTT::TaskContext::*)(s:Signature>& RTT::TaskContext::addOperation<bool
> (RTT::TaskContext::*)(std::string const&), RTT::ring, bool
> (RTT::TaskContext::*)(std::string const&), RTT::TaskContext*,
> RTT::ExecutionThread) ()
> from /opt/ros/hydro/lib/liborocos-rtt-gnulinux.so.2.7
> #3 0x00007ffff7ad38f3 in RTT::TaskContext::setup() () from
> /opt/ros/hydro/lib/liborocos-rtt-gnul
> #4 0x00007ffff7ad48fe in RTT::TaskContext::TaskContext(std::string
> const&, RTT::base::TaskCore::
> from /opt/ros/hydro/lib/liborocos-rtt-gnulinux.so.2.7
> #5 0x000000000042ab59 in OCL::LuaComponent::LuaComponent(std::string) ()
> #6 0x00000000004255d8 in ORO_main_impl(int, char**) ()
> #7 0x00000000004191b3 in main ()
>
> I also checked that it's not some old rttlua that it is getting called:
> $ which rttlua
> /opt/ros/hydro/bin/rttlua
>
> My deployer installation is a mess too:
> http://paste.ubuntu.com/7652013/
>
> So much is broken in my installation, I will go double-check if there is a
> problem with my apt configuration...
>
> Cheers,
> Andrew
>

ubuntu 12.04 / ros-hydro / rttlua sefaulting

On Mon, Jun 16, 2014 at 11:07 AM, Andrew Wagner
<andrew [dot] wagner [..] ...> wrote:
>
> Hi Peter,
>
> I updated again today, and the rtt package got updated, and things are no longer segfaulting! Unless you just pushed a change out over the weekend, I guess our installation was just in some bad state. I ~did do an apt-get update before posting, but perhaps the connection failed to update and we didn't notice.

Thanks for letting us know so soon, I was just getting started in
looking into it...

Peter

ubuntu 12.04 / ros-hydro / rttlua sefaulting

Great! I'm glad it didn't cost you much time. The only package that
updated when re-did apt-get install on the rtt related ros packages was:

ros-hydro-rtt

So I suppose that one package somehow got behind the other packages on my
machine.

I just checked with apt-cache show, and it looks like the other packages
you are providing indeed correctly have a dependency on ros-hydro-rtt, so
this must well and truly have been a problem with apt just not updating all
the way on our machine.

Thanks!
Andrew

On Mon, Jun 16, 2014 at 11:09 AM, Peter Soetens <peter [..] ...>
wrote:

> On Mon, Jun 16, 2014 at 11:07 AM, Andrew Wagner
> <andrew [dot] wagner [..] ...> wrote:
> >
> > Hi Peter,
> >
> > I updated again today, and the rtt package got updated, and things are
> no longer segfaulting! Unless you just pushed a change out over the
> weekend, I guess our installation was just in some bad state. I ~did do an
> apt-get update before posting, but perhaps the connection failed to update
> and we didn't notice.
>
>
> Thanks for letting us know so soon, I was just getting started in
> looking into it...
>
> Peter
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>