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

PC-Lint summary warning leads to java.nio.file.InvalidPathException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core, warnings-plugin
    • Environment:
      Jenkins 2.53 (Windows Server 2008 x64)
      analysis-core 1.84
      token-macro 2.1
      warnings 4.60
    • Similar Issues:

      Description

      Hi!

      Since the latest update to token-macro 2.1 (But I'm not sure that this update causes this issue), the PC-lint summary warning 
      (0): Warning 459: Function 'Gmc::CAcpChannel::TcFunctCyclicNetworkData(const void *)' whose address was taken has an unprotected access to variable 'Gmc::CAcpChannel::Channels'
      ; I.e, without file-name and line-number 0, causes an exception afterwards:

      [WARNINGS] Plug-in Result: Unstable - <a href="warningsResult">59 warnings</a> exceed the threshold of 0 by 59
      ERROR: Build step failed with exception
      java.nio.file.InvalidPathException: Illegal char <:> at index 3: Gmc::CAcpChannel::TcFunctCyclicNetworkData(const void *)
      {{ at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)}}
      {{ at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)}}
      {{ at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)}}
      {{ at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)}}
      {{ at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)}}
      {{ at java.io.File.toPath(File.java:2234)}}
      {{ at hudson.FilePath$41.invoke(FilePath.java:2011)}}
      {{ at hudson.FilePath$41.invoke(FilePath.java:2006)}}
      {{ at hudson.FilePath.act(FilePath.java:997)}}
      {{ at hudson.FilePath.act(FilePath.java:975)}}
      {{ at hudson.FilePath.copyTo(FilePath.java:2006)}}
      {{ at hudson.FilePath.copyTo(FilePath.java:1982)}}
      {{ at hudson.plugins.analysis.util.Files.copyFilesWithAnnotationsToBuildFolder(Files.java:80)}}
      {{ at hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder(HealthAwareRecorder.java:348)}}
      {{ at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:89)}}
      {{ at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:295)}}
      {{ at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)}}
      {{ at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)}}
      {{ at hudson.model.Build$BuildExecution.post2(Build.java:186)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)}}
      {{ at hudson.model.Run.execute(Run.java:1760)}}
      {{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
      {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
      {{ at hudson.model.Executor.run(Executor.java:405)}}
      Build step 'Scan for compiler warnings' changed build result to UNSTABLE

       

      A few days before, the result of the same warning-output was "only" a (malformed) entry:

      [Gmc::CAcpChannel::TcFunctCyclicNetworkData(const void *):0], PC-Lint, Priority: Normal
      Function 'Gmc::CAcpChannel::TcFunctCyclicNetworkData(const void *)' whose address was taken has an unprotected access to variable 'Gmc::CAcpChannel::Channels'

      , but no exception back-trace.

       

      Best regards from Salzburg,
      Markus

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                gmc_devel GMC Software Development B&R Corporate
              • Votes:
                3 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: