Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15895

Job stuck collecting compiler warnings with the eclipse compiler

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • warnings-plugin
    • None
    • Jenkins 1.491 - Warnings plugin 4.18 - Static Analysis Utilities 1.48 - Violations 0.7.10 - Dashboard view 2.2

      I have a maven project style with the following configuration for the maven compiler plugin

                  <plugin>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>2.3.2</version>
                      <configuration>
                          <source>1.6</source>
                          <target>1.6</target>
                          <compilerId>jdt</compilerId>
                          <showWarnings>true</showWarnings>
                      </configuration>               
                  </plugin>
      

      The jenkins config scan for compiler warnings using two parsers: Eclipse Java compiler and Java compiler. None of the advanced options are enabled (see screnshot). I have a not so big project with around 20 compiler warnings.

      I am running Jenkins 1.459 with the warnings plugin 3.26 and this is working fine (the graph is generated, new warnings are found, etc).

      If I switch to the new configuration (and that's been a long time I want to upgrade), the job is stuck when parsing the warnings. This is exactly similar to JENKINS-10097. See the configuration of 1.459 with the latest warnings plugins.

        1. thread-dump-2.txt
          29 kB
        2. thread-dump.txt
          34 kB
        3. compiler-warnings-2.png
          compiler-warnings-2.png
          79 kB
        4. compiler-warnings.png
          compiler-warnings.png
          31 kB
        5. config-491-warnings-4.18.png
          config-491-warnings-4.18.png
          60 kB
        6. config-491-warnings-4.18.png
          config-491-warnings-4.18.png
          57 kB
        7. config-459-warnings-3.26.png
          config-459-warnings-3.26.png
          57 kB

          [JENKINS-15895] Job stuck collecting compiler warnings with the eclipse compiler

          Stéphane Nicoll created issue -
          Stéphane Nicoll made changes -
          Attachment New: config-459-warnings-3.26.png [ 22857 ]

          Ulli Hafner added a comment -

          Can you please attach a thread dump?

          Do the warnings contain relative paths?

          Ulli Hafner added a comment - Can you please attach a thread dump? Do the warnings contain relative paths?
          Stéphane Nicoll made changes -
          Description Original: I have a maven project style with the following configuration for the maven compiler plugin

          {code:java}
                      <plugin>
                          <artifactId>maven-compiler-plugin</artifactId>
                          <version>2.3.2</version>
                          <configuration>
                              <source>1.6</source>
                              <target>1.6</target>
                              <compilerId>jdt</compilerId>
                              <showWarnings>true</showWarnings>
                          </configuration>
                      </plugin>
          {code}

          The jenkins config scan for compiler warnings using two parsers: Eclipse Java compiler and Java compiler. None of the advanced options are enabled (see screnshot). I have a not so big project with around 20 compiler warnings.

          I am running Jenkins 1.459 with the warnings plugin 3.26 and this is working fine (the graph is generated, new warnings are found, etc).

          If I switch to the new configuration (and that's been a long time I want to upgrade), the job is stuck when parsing the warnings. This is exactly similar to JENKINS-10097. See the configuration of 1.459 with the latest warnings plugins.

          Also attached a threads dump.
          New: I have a maven project style with the following configuration for the maven compiler plugin

          {code:java}
                      <plugin>
                          <artifactId>maven-compiler-plugin</artifactId>
                          <version>2.3.2</version>
                          <configuration>
                              <source>1.6</source>
                              <target>1.6</target>
                              <compilerId>jdt</compilerId>
                              <showWarnings>true</showWarnings>
                          </configuration>
                      </plugin>
          {code}

          The jenkins config scan for compiler warnings using two parsers: Eclipse Java compiler and Java compiler. None of the advanced options are enabled (see screnshot). I have a not so big project with around 20 compiler warnings.

          I am running Jenkins 1.459 with the warnings plugin 3.26 and this is working fine (the graph is generated, new warnings are found, etc).

          If I switch to the new configuration (and that's been a long time I want to upgrade), the job is stuck when parsing the warnings. This is exactly similar to JENKINS-10097. See the configuration of 1.459 with the latest warnings plugins.

          Hi,

          Sorry I was in the middle of updating this issue and the network went down. The only threadump I can attach is from my-jenkins:8080/threadDump and I haven't found any useful information there. Do you have a way to generate a reliable thread dump of the process?

          The warnings are all in java source files. I am attaching the config for the instance that is stuck now.

          Stéphane Nicoll added a comment - Hi, Sorry I was in the middle of updating this issue and the network went down. The only threadump I can attach is from my-jenkins:8080/threadDump and I haven't found any useful information there. Do you have a way to generate a reliable thread dump of the process? The warnings are all in java source files. I am attaching the config for the instance that is stuck now.
          Stéphane Nicoll made changes -
          Attachment New: config-491-warnings-4.18.png [ 22858 ]

          sorry, wrong screenshot. Here's the right one.

          Stéphane Nicoll added a comment - sorry, wrong screenshot. Here's the right one.
          Stéphane Nicoll made changes -
          Attachment New: config-491-warnings-4.18.png [ 22859 ]
          Stéphane Nicoll made changes -
          Summary Original: Job stuck collection compiler warnings with the eclipse compiler New: Job stuck collecting compiler warnings with the eclipse compiler

          Ulli Hafner added a comment -

          For thread dumps see: https://wiki.jenkins-ci.org/display/JENKINS/Build+is+hanging

          Do the warnings contain relative paths? Can you please show a single warning?

          Ulli Hafner added a comment - For thread dumps see: https://wiki.jenkins-ci.org/display/JENKINS/Build+is+hanging Do the warnings contain relative paths? Can you please show a single warning?

            drulli Ulli Hafner
            snicoll Stéphane Nicoll
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: