[Bug 447] New: Several crashes using ctaskbrowser (CORBA)

For more infomation about this bug, visit
Summary: Several crashes using ctaskbrowser (CORBA)
Product: RTT
Version: 1.2.1
Platform: All
OS/Version: All
Status: ASSIGNED
Severity: normal
Priority: P2
Component: Corba
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

It appears the CORBA enabled taskbrowser suffers from crashes from bad memory
management in the CORBA proxy (client-side) code of the RTT. Since the
KTaskbrowser only uses the server-side code of the RTT, these got unnoticed for
a while. I'm fixing these as I'm testing it against a complex application.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

[Bug 447] Several crashes using ctaskbrowser (CORBA)

For more infomation about this bug, visit

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

What |Removed |Added
--------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

[Bug 447] Several crashes using ctaskbrowser (CORBA)

For more infomation about this bug, visit

--- Comment #1 from Peter Soetens
<peter [dot] soetens [..] ...> 2007-09-10 18:32:39 ---
Applied to trunk, backporting it to rtt-1.2 and rtt-1.4 branches

$ svn diff
Index: src/corba/ControlTaskProxy.cpp
===================================================================
--- src/corba/ControlTaskProxy.cpp (revision 28548)
+++ src/corba/ControlTaskProxy.cpp (working copy)
@@ -147,7 +147,7 @@
}

ControlTaskProxy::ControlTaskProxy( ::RTT::Corba::ControlTask_ptr taskc)
- : TaskContext("CORBAProxy"), mtask( taskc )
+ : TaskContext("CORBAProxy"), mtask(
Corba::ControlTask::_duplicate(taskc) )
{
try {
CORBA::String_var nm = mtask->getName(); // force connect to
object.
sspr@lt00129:~/src/Orocos/trunk/rtt
$ svn ci -m"Fix for bug #447: Several crashes using ctaskbrowser (CORBA):
> fix CORBA memory management in proxies."
Sending rtt/src/corba/ControlTaskProxy.cpp
Transmitting file data .
Committed revision 28549.

Second patch:

$ svn ci -m"Fix for bug 447: Several crashes using ctaskbrowser (CORBA):
> Invert the proxy <-> object reference lookup of the proxies cache, seems to fix ControlTaskProxy::Create() method (magic fix)."
Sending rtt/src/corba/ControlTaskProxy.cpp
Sending rtt/src/corba/ControlTaskProxy.hpp
Sending rtt/src/corba/ControlTaskServer.cpp
Transmitting file data ...
Committed revision 28550.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm