aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Hanser (JIRA)" <>
Subject [jira] [Commented] (ARIES-867) Deadlock if stopping a blueprint bundle while the blueprint container is in the create state.
Date Mon, 23 Jul 2012 15:11:34 GMT


Marcel Hanser commented on ARIES-867:

sry forgot the threaddump.
> Deadlock if stopping a blueprint bundle while the blueprint container is in the create
> ---------------------------------------------------------------------------------------------
>                 Key: ARIES-867
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-0.3.1
>         Environment: Felix 4.0.2, Fileinstall 3.2.4, Pax Logging 1.6.3.
>            Reporter: Marcel Hanser
>         Attachments: com.test.deadlock.1.blueprint-0.0.1-SNAPSHOT.jar, com.test.deadlock.2.stopper-0.0.1-SNAPSHOT.jar,, stripped-threaddump.txt
> Assume a updating mechanism which installs a bundle using fileinstall. It places a bundle
in a folder watched by fileinstall. If the bundle is removed in a short manner a deadlock
may occur. This issue can occur if a bundles blueprintcontainer is registering services during
the create state and the bundle is stopped concurrently. See attached Threaddump. We also
attached a sample environment to reproduce the deadlock.
> For reproduction:
> - start the container in debug mode.
> - put the com.test.deadlock.1.blueprint-0.0.1-SNAPSHOT.jar into the ./load folder and
wait for GRACE_PERIOD state of the blueprint container.
> - set breakpoint on line 3205 in class org.apache.felix.framework.Felix.
> - put the com.test.deadlock.2.stopper-0.0.1-SNAPSHOT.jar into the ./load folder.
> - skip the breakpoint the FIRST time!
> - remove the com.test.deadlock.1.blueprint-0.0.1-SNAPSHOT.jar from ./load folder, fileinstall
will now remove the bundle, wait a until fileinstall loggs the that.
> - resuming now the debugger. This leads to the deadlock and to the attached thread dump.
> Richard S.Hall does describe the problem in the comment here:
> You might consider to register services in a <code>open call</code>, if easily

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message