[Bug 793] New: Segmentation Fault when trying to access sub FSM parameters in the Deployer

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=793

Summary: Segmentation Fault when trying to access sub FSM
parameters in the Deployer
Product: OCL
Version: 1.10.2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: TaskBrowser
AssignedTo: orocos-dev [..] ...
ReportedBy: charles [dot] lesire [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Created an attachment (id=616)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=616)
FSM script file

Hi,

I have a FSM 'foo' with a sub FSM 'bar' (see attached file).
I have loaded it on the deployer (scripting.loadStateMachines("HFSM.osd")).
When I type foo.bar. and then tab on the deployer, I have a SegFault.

I have attached this bug to the TaskBrowser as the gdb backtrace is pointing to
it:

In Task Deployer[S]. (Status of last Command : none )
(type 'ls' for context info) :foo.bar.
Program received signal SIGSEGV, Segmentation fault.
0x00142973 in OCL::TaskBrowser::find_peers(unsigned int) ()
from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
(gdb) bt
#0 0x00142973 in OCL::TaskBrowser::find_peers(unsigned int) ()
from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
#1 0x0014920e in OCL::TaskBrowser::find_completes() ()
from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
#2 0x0014af2a in OCL::TaskBrowser::command_generator(char const*, int) ()
from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
#3 0x00799860 in rl_completion_matches () from /lib/libreadline.so.5
#4 0x0013ac67 in OCL::TaskBrowser::orocos_hmi_completion(char const*, int,
int) () from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
#5 0x00799917 in ?? () from /lib/libreadline.so.5
#6 0x0079a773 in rl_complete_internal () from /lib/libreadline.so.5
#7 0x0079abd2 in rl_complete () from /lib/libreadline.so.5
#8 0x0079208f in _rl_dispatch_subseq () from /lib/libreadline.so.5
#9 0x00792474 in _rl_dispatch () from /lib/libreadline.so.5
#10 0x00792853 in readline_internal_char () from /lib/libreadline.so.5
#11 0x00792ccd in readline () from /lib/libreadline.so.5
#12 0x0013f811 in OCL::TaskBrowser::rl_gets() ()
from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
#13 0x0014ccbc in OCL::TaskBrowser::loop() ()
from /usr/local/lib/liborocos-taskbrowser-gnulinux.so.1.10
#14 0x0804d428 in ORO_main_impl(int, char**) ()
#15 0x0804d760 in main ()