[Bug 625] New: Use of engine's getStateMachineState() crashes ctaskbrowser and remote deployer

For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=625>
Summary: Use of engine's getStateMachineState() crashes
ctaskbrowser and remote deployer
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: Other
Status: NEW
Severity: major
Priority: P3
Component: Corba
AssignedTo: orocos-dev [..] ...
ReportedBy: kiwi [dot] net [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

On Mac OS X with trunk. Can get status of state machine of remotely deployed
component with scripting.getStateMachineStatus("XXX"), but
engine.getStateMachineState("XXX") locks up the ctaskbrowser, and causes a
crash of the remote deployer (backtrace attached).

Task browser output
{{{
ctaskbrowser-macosx LeftDeployer
0.017 [ Warning][SingleThread] Forcing priority (0) of thread to 0.
Switched to : LeftDeployer

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 LeftDeployer[S]. (Status of last Command : none )
(type 'ls' for context info) :cd ArmControllerMgr
13.403 [ ERROR ][TypeInfoName] Can not build Property of unknown_t.
Switched to : ArmControllerMgr

In Task ArmControllerMgr[R]. (Status of last Command : none )
(type 'ls' for context info)
:scripting.getStateMachineStatus("ArmControllerMgr")
Got :scripting.getStateMachineStatus("ArmControllerMgr")
= running

In Task ArmControllerMgr[R]. (Status of last Command : none )
(type 'ls' for context info) :engine.getStateMachineState("ArmControllerMgr")
Got :engine.getStateMachineState("ArmControllerMgr")

^C
}}}

[Bug 625] Use of engine's getStateMachineState() crashes ctaskbr

For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=625>

Peter Soetens <peter [dot] soetens [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |peter [dot] soetens [..] ...

--- Comment #2 from Peter Soetens <peter [dot] soetens [..] ...> 2009-03-02 22:50:59 ---
(In reply to comment #0)
> On Mac OS X with trunk. Can get status of state machine of remotely deployed
> component with scripting.getStateMachineStatus("XXX"), but
> engine.getStateMachineState("XXX") locks up the ctaskbrowser, and causes a
> crash of the remote deployer (backtrace attached).
>
...
>
> In Task ArmControllerMgr[R]. (Status of last Command : none )
> (type 'ls' for context info) :engine.getStateMachineState("ArmControllerMgr")
> Got :engine.getStateMachineState("ArmControllerMgr")

Is this 100% reproducible ? It smells more like a state machine bug than a
CORBA bug...

Peter

[Bug 625] Use of engine's getStateMachineState() crashes ctaskbr

For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=625>

--- Comment #1 from S Roderick <kiwi [dot] net [..] ...> 2009-03-02 15:30:11 ---
Created an attachment (id=391)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=391)
gdb backtrace of remote deployer