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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • repo-panama
    • tools
    • generic
    • generic

      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)

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

              Created:
              Updated:
              Resolved: