Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8260717

jextract crashes with 'Crossing storage unit boundaries' for libcoap's block.h

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      jextract -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -J-Djextract.debug=true block.h
      WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.jextract
      Crossing storage unit boundaries
      java.lang.IllegalStateException: Crossing storage unit boundaries
      at jdk.incubator.jextract/jdk.internal.jextract.impl.StructLayoutComputer.convertBitfields(StructLayoutComputer.java:151)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.StructLayoutComputer.handleBitfields(StructLayoutComputer.java:129)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.StructLayoutComputer.processField(StructLayoutComputer.java:91)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.RecordLayoutComputer.compute(RecordLayoutComputer.java:94)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.RecordLayoutComputer.compute(RecordLayoutComputer.java:74)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.LayoutUtils.getRecordLayout(LayoutUtils.java:180)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.LayoutUtils.getLayout(LayoutUtils.java:96)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.TreeMaker.createScoped(TreeMaker.java:202)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.TreeMaker.createTreeInternal(TreeMaker.java:99)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.TreeMaker.createTree(TreeMaker.java:81)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.Parser.lambda$parse$2(Parser.java:86)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
      at jdk.incubator.jextract/jdk.internal.jextract.impl.Parser.parse(Parser.java:67)
      at jdk.incubator.jextract/jdk.incubator.jextract.JextractTool.parse(JextractTool.java:112)
      at jdk.incubator.jextract/jdk.incubator.jextract.JextractTool.run(JextractTool.java:241)
      at jdk.incubator.jextract/jdk.incubator.jextract.JextractTool.main(JextractTool.java:157)
      ctTool.java:241)
      at jdk.incubator.jextract/jdk.incubator.jextract.JextractTool.main(JextractTool.java:157)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: