[Bug 860] New: adding and removing event driven ports may cause crashes

http://bugs.orocos.org/show_bug.cgi?id=860

Summary: adding and removing event driven ports may cause
crashes
Product: Toolchain
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P3
Component: OCL
AssignedTo: orocos-dev [..] ...
ReportedBy: markus [dot] klotzbuecher [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

The following results in segfaults or hangs:

Assume a component which
1. creates a port on the heap and adds it as an event driven Port in
configureHook.
2. in cleanup hook the port is removed from the interface and then delete'ed.

Executing the following triggers the problem:

1. configure the component
2. start it
3. stop it
4. cleanup # back to preoperational
5. configure
6. start # bang! or hang!

The attached test illustrates the problem.

Cheers
Markus

[Bug 860] adding and removing event driven ports may cause crash

http://bugs.orocos.org/show_bug.cgi?id=860

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

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |next-major

--- Comment #2 from Peter Soetens <peter [..] ...> 2011-05-24 23:05:49 CEST ---
(In reply to comment #0)
> The following results in segfaults or hangs:
>
> Assume a component which
> 1. creates a port on the heap and adds it as an event driven Port in
> configureHook.
> 2. in cleanup hook the port is removed from the interface and then delete'ed.
>
> Executing the following triggers the problem:
>
> 1. configure the component
> 2. start it
> 3. stop it
> 4. cleanup # back to preoperational
> 5. configure
> 6. start # bang! or hang!
>

A fix + unit test for this has been pushed to RTT master.

Peter

[Bug 860] adding and removing event driven ports may cause crash

On Tue, May 24, 2011 at 11:05:54PM +0200, Peter Soetens wrote:
>
> http://bugs.orocos.org/show_bug.cgi?id=860
>
> Peter Soetens <peter [..] ...> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|NEW |RESOLVED
> Resolution| |FIXED
> Target Milestone|--- |next-major
>
> --- Comment #2 from Peter Soetens <peter [..] ...> 2011-05-24 23:05:49 CEST ---
> (In reply to comment #0)
> > The following results in segfaults or hangs:
> >
> > Assume a component which
> > 1. creates a port on the heap and adds it as an event driven Port in
> > configureHook.
> > 2. in cleanup hook the port is removed from the interface and then delete'ed.
> >
> > Executing the following triggers the problem:
> >
> > 1. configure the component
> > 2. start it
> > 3. stop it
> > 4. cleanup # back to preoperational
> > 5. configure
> > 6. start # bang! or hang!
> >
>
> A fix + unit test for this has been pushed to RTT master.

Tested-by: Markus Klotzbuecher <markus [dot] klotzbuecher [..] ...>

Thanks!
Markus

[Bug 860] adding and removing event driven ports may cause crash

http://bugs.orocos.org/show_bug.cgi?id=860

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

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

--- Comment #1 from Peter Soetens <peter [..] ...> 2011-05-06 17:58:45 CEST ---
(In reply to comment #0)
> The following results in segfaults or hangs:
>
> Assume a component which
> 1. creates a port on the heap and adds it as an event driven Port in
> configureHook.
> 2. in cleanup hook the port is removed from the interface and then delete'ed.
>
> Executing the following triggers the problem:
>
> 1. configure the component
> 2. start it
> 3. stop it
> 4. cleanup # back to preoperational
> 5. configure
> 6. start # bang! or hang!
>
> The attached test illustrates the problem.

I believe your word for it, but there is no attached test.

Peter