Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2080

Updating bundles when debugging switched on might result in a deadlock with 100% CPU usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • framework-2.0.3
    • framework-3.0.0
    • Framework
    • None

    Description

      With the following minimal scenario using Spring 3.0.0.RELEASE bundles the following happen when one update spring-core first and the spring-web:

      $ grep log conf/config.properties
      felix.log.level=4

      $ ls bundle/
      com.springsource.javax.servlet-2.4.0.jar org.apache.felix.shell-1.4.2.jar spring-context-3.0.0.RELEASE.jar
      com.springsource.org.aopalliance-1.0.0.jar org.apache.felix.shell.tui-1.4.1.jar spring-core-3.0.0.RELEASE.jar
      com.springsource.org.apache.commons.logging-1.1.1.jar spring-aop-3.0.0.RELEASE.jar spring-web-3.0.0.RELEASE.jar
      org.apache.felix.bundlerepository-1.4.3.jar spring-beans-3.0.0.RELEASE.jar
      $ java -jar bin/felix.jar
      ....
      -> ps
      START LEVEL 1
      ID State Level Name
      [ 0] [Active ] [ 0] System Bundle (2.0.3)
      [ 1] [Active ] [ 1] Java Servlet API (2.4.0)
      [ 2] [Active ] [ 1] AOP Alliance API (1.0.0)
      [ 3] [Active ] [ 1] Apache Commons Logging (1.1.1)
      [ 4] [Active ] [ 1] Apache Felix Bundle Repository (1.4.3)
      [ 5] [Active ] [ 1] Apache Felix Shell Service (1.4.2)
      [ 6] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
      [ 7] [Active ] [ 1] Spring AOP (3.0.0.RELEASE)
      [ 8] [Active ] [ 1] Spring Beans (3.0.0.RELEASE)
      [ 9] [Active ] [ 1] Spring Context (3.0.0.RELEASE)
      [ 10] [Active ] [ 1] Spring Core (3.0.0.RELEASE)
      [ 11] [Active ] [ 1] Spring Web (3.0.0.RELEASE)

      -> update 10
      DEBUG: WIRE: 10.1 -> org.apache.commons.logging -> 3.0
      DEBUG: WIRE: 10.1 -> javax.xml.transform.stax -> 0
      DEBUG: WIRE: 10.1 -> javax.xml.stream.events -> 0
      DEBUG: WIRE: 10.1 -> org.w3c.dom -> 0
      DEBUG: WIRE: 10.1 -> org.xml.sax -> 0
      DEBUG: WIRE: 10.1 -> javax.xml.namespace -> 0
      DEBUG: WIRE: 10.1 -> javax.xml.stream -> 0
      DEBUG: WIRE: 10.1 -> javax.xml.stream.util -> 0
      DEBUG: WIRE: 10.1 -> org.xml.sax.ext -> 0
      DEBUG: WIRE: 10.1 -> javax.xml.transform -> 0
      DEBUG: WIRE: 10.1 -> javax.xml.transform.sax -> 0
      DEBUG: WIRE: 10.1 -> org.xml.sax.helpers -> 0
      -> update 11
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.1] and org.springframework.core from [10.0]
      DEBUG: Constraint violation for 11.0 detected; module can see org.springframework.core from [10.0] and org.springframework.core from [10.1]
      .....

      and so on ...

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            roland.huss Roland Huss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: