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

Can't define map file path (Praqma case 14121)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      No matter in which format I add the file name, I either get an error message or the file is not found.
      Jenkins ver. 1.625.3 on Windows 7

      Examples:
      No files found
      Error message: Filematcher found no files using pattern X in folder Y
      Not found patterns (including the quotation marks):
      "_bin*.map"
      "C:\Projekte\myproject\ _bin*.map"
      "_bin\XXX-XXX100_000300_R1931_20160113_0854.map"

      Exception
      _bin\XXX-XXX100_000300_R1931_20160113_0854.map
      _bin\ *.map
      *.map

      What is interesting, is that the error message says that there was an exception for input string "g" (marked in bold below) although, there is no "g" in the input string...

      Memory Map Plugin version 2.1.2 (cfc34)
      ERROR: Build step failed with exception
      java.lang.NumberFormatException: For input string: "g"
      at java.lang.NumberFormatException.forInputString(Unknown Source)
      at java.lang.Long.parseLong(Unknown Source)
      at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.getLongValue(HexUtils.java:81)
      at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser$MemoryMapMemItemComparator.compare(GccMemoryMapParser.java:124)
      at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser$MemoryMapMemItemComparator.compare(GccMemoryMapParser.java:120)
      at java.util.TimSort.binarySort(Unknown Source)
      at java.util.TimSort.sort(Unknown Source)
      at java.util.TimSort.sort(Unknown Source)
      at java.util.Arrays.sort(Unknown Source)
      at java.util.Collections.sort(Unknown Source)
      at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.guessLengthOfSections(GccMemoryMapParser.java:139)
      at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseMapFile(GccMemoryMapParser.java:168)
      at net.praqma.jenkins.memorymap.parser.MemoryMapMapParserDelegate.invoke(MemoryMapMapParserDelegate.java:61)
      at net.praqma.jenkins.memorymap.parser.MemoryMapMapParserDelegate.invoke(MemoryMapMapParserDelegate.java:39)
      at hudson.FilePath.act(FilePath.java:991)
      at hudson.FilePath.act(FilePath.java:969)
      at net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:161)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408)
      Build step 'Memory Map Publisher' marked build as failure

        Attachments

          Activity

          Hide
          bue Bue Petersen added a comment -

          Thanks for the bug report - appreciate it.

          It seems to me to be more a map file parsing issue, than a problem related to not finding your map-file. From the stack trace it seems like we try to parse the map-file, and that fails.

          Could you supply us with a map-file? Or even better, give us an code example with a GCC version so we can reproduce it on our own and do not depend on a specific map-file we can't reproduce?

          Show
          bue Bue Petersen added a comment - Thanks for the bug report - appreciate it. It seems to me to be more a map file parsing issue, than a problem related to not finding your map-file. From the stack trace it seems like we try to parse the map-file, and that fails. Could you supply us with a map-file? Or even better, give us an code example with a GCC version so we can reproduce it on our own and do not depend on a specific map-file we can't reproduce?
          Hide
          chrop Christian Opitz added a comment -

          That's a good hint, I suppose a more intuitive error message would be helpful

          Unfortunately I can't provide the map file as it is, but maybe we can create one for testing.

          Here is the compiler I was using - maybe this already helps to say if the plugin is compatible or not.

          ###GCC###
          tricore-gcc (GCC) 3.4.5 built for Win32 on 2009-02-13 Tool Version v2.10
          Copyright (C) 2004 Free Software Foundation, Inc.
          This is free software; see the source for copying conditions. There is NO
          warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

          ###c++###
          tricore-c++ (GCC) 3.4.5 built for Win32 on 2009-02-13 Tool Version v2.10
          Copyright (C) 2004 Free Software Foundation, Inc.
          This is free software; see the source for copying conditions. There is NO
          warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

          Show
          chrop Christian Opitz added a comment - That's a good hint, I suppose a more intuitive error message would be helpful Unfortunately I can't provide the map file as it is, but maybe we can create one for testing. Here is the compiler I was using - maybe this already helps to say if the plugin is compatible or not. ###GCC### tricore-gcc (GCC) 3.4.5 built for Win32 on 2009-02-13 Tool Version v2.10 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ###c++### tricore-c++ (GCC) 3.4.5 built for Win32 on 2009-02-13 Tool Version v2.10 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
          Hide
          thi Thierry Lacour added a comment -

          Support was added and tested with GCC 4.x in mind.
          I took a look at some TriCore GCC map files and they look quite different.
          It seems support for your compiler is a whole new feature of its own.

          I will agree, however, that a better error message would definitely help here.

          Show
          thi Thierry Lacour added a comment - Support was added and tested with GCC 4.x in mind. I took a look at some TriCore GCC map files and they look quite different. It seems support for your compiler is a whole new feature of its own. I will agree, however, that a better error message would definitely help here.
          Hide
          bue Bue Petersen added a comment -

          https://github.com/Praqma/memory-map-plugin/issues/26

           

          We only use Github issues from now on.

          Show
          bue Bue Petersen added a comment - https://github.com/Praqma/memory-map-plugin/issues/26   We only use Github issues from now on.

            People

            Assignee:
            praqma Praqma Support
            Reporter:
            chrop Christian Opitz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: