KengoTODA / spotbugs-cli

An experimental CLI for SpotBugs based on picocli
GNU Affero General Public License v3.0
1 stars 0 forks source link

Installing a SecurityManager is not yet supported #51

Open KengoTODA opened 3 years ago

KengoTODA commented 3 years ago

To avoid #48, set Java 8 to java.home property like below:

export JAVA8_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/
export GRAALVM_HOME=/Users/kengo/Downloads/graalvm-ce-java11-21.1.0/Contents/Home
build/executable/spotbugs -Djava.home=$JAVA8_HOME --aux $JAVA8_HOME/jre/lib/rt.jar build/libs/spotbugs-cli-1.0.0-SNAPSHOT.jar

Then error reported to create edu.umd.cs.findbugs.ba.jsr305.TypeQualifierValue instance. Its constructor calls java.lang.System.setSecurityManager method.

Fatal error: Installing a SecurityManager is not yet supported

JavaFrameAnchor dump:

  No anchors

TopFrame info:

  TotalFrameSize in CodeInfoTable 48

VMThreads info:

  VMThread 00007fd30b7046c0  STATUS_IN_JAVA (safepoints disabled)  java.lang.Thread@0x10b6b5328

VM Thread State for current thread 00007fd30b7046c0:

  0 (8 bytes): com.oracle.svm.jni.JNIThreadLocalEnvironment.jniFunctions = (bytes) 
    00007fd30b7046c0: 000000010b1bd010

  8 (8 bytes): com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.stackBoundaryTL = (Word) 1  0000000000000001
  16 (4 bytes): com.oracle.svm.core.thread.Safepoint.safepointRequested = (int) 2089960194  7c924302
  20 (4 bytes): com.oracle.svm.core.thread.VMThreads$StatusSupport.statusTL = (int) 1  00000001
  24 (32 bytes): com.oracle.svm.core.genscavenge.ThreadLocalAllocation.regularTLAB = (bytes) 
    00007fd30b7046d8: 000000011d500000 000000011d600000
    00007fd30b7046e8: 000000011d590210 000000010a8d5000

  56 (8 bytes): com.oracle.svm.core.thread.JavaThreads.currentThread = (Object) java.lang.Thread  000000010b6b5328
  64 (8 bytes): com.oracle.svm.core.stack.JavaFrameAnchors.lastAnchor = (Word) 0  0000000000000000
  72 (8 bytes): com.oracle.svm.core.heap.NoAllocationVerifier.openVerifiers = (Object) null
  80 (8 bytes): com.oracle.svm.core.identityhashcode.IdentityHashCodeSupport.hashCodeGeneratorTL = (Object) java.util.SplittableRandom  000000010cf0ddc8
  88 (8 bytes): com.oracle.svm.core.snippets.ExceptionUnwind.currentException = (Object) null
  96 (8 bytes): com.oracle.svm.core.thread.ThreadingSupportImpl.activeTimer = (Object) null
  104 (8 bytes): com.oracle.svm.graal.isolated.IsolatedCompileClient.currentClient = (Object) null
  112 (8 bytes): com.oracle.svm.graal.isolated.IsolatedCompileContext.currentContext = (Object) null
  120 (8 bytes): com.oracle.svm.jni.JNIObjectHandles.handles = (Object) com.oracle.svm.core.handles.ThreadLocalHandles  000000010cf01740
  128 (8 bytes): com.oracle.svm.jni.JNIThreadLocalPendingException.pendingException = (Object) null
  136 (8 bytes): com.oracle.svm.jni.JNIThreadLocalPinnedObjects.pinnedObjectsListHead = (Object) null
  144 (8 bytes): com.oracle.svm.jni.JNIThreadOwnedMonitors.ownedMonitors = (Object) null
  152 (8 bytes): com.oracle.svm.core.thread.VMThreads.IsolateTL = (Word) 4472176640  000000010a900000
  160 (8 bytes): com.oracle.svm.core.thread.VMThreads.OSThreadHandleTL = (Word) 4582118912  00000001111d9600
  168 (8 bytes): com.oracle.svm.core.thread.VMThreads.OSThreadIdTL = (Word) 4582118912  00000001111d9600
  176 (8 bytes): com.oracle.svm.core.thread.VMThreads.nextTL = (Word) 0  0000000000000000
  184 (8 bytes): com.oracle.svm.core.thread.VMThreads.unalignedIsolateThreadMemoryTL = (Word) 140544406734528  00007fd30b7046c0
  192 (4 bytes): com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.yellowZoneStateTL = (int) -16843010  fefefefe
  196 (4 bytes): com.oracle.svm.core.snippets.ImplicitExceptions.implicitExceptionsAreFatal = (int) 0  00000000
  200 (4 bytes): com.oracle.svm.core.thread.ThreadingSupportImpl.currentPauseDepth = (int) 0  00000000
  204 (4 bytes): com.oracle.svm.core.thread.VMThreads$ActionOnExitSafepointSupport.actionTL = (int) 0  00000000
  208 (4 bytes): com.oracle.svm.core.thread.VMThreads$ActionOnTransitionToJavaSupport.actionTL = (int) 0  00000000
  212 (4 bytes): com.oracle.svm.core.thread.VMThreads$StatusSupport.safepointsDisabledTL = (int) 1  00000001

VMOperation dump:

  No VMOperation in progress

  The 10 most recent VM operation status changes (oldest first):

Dump Counters:

Raw Stacktrace:

  00007ff7ba77ccf0: 000000011d58fae0 0000000000000000
  00007ff7ba77cd00: 000000010af2cf68 000000010a900000
  00007ff7ba77cd10: 00000001069c1f4a 0000000105818974
  00007ff7ba77cd20: 000000010b55b858 00000001069c1f4a
  00007ff7ba77cd30: 000000010b811c40 000000010631c836
  00007ff7ba77cd40: 66a1d0c80279b2fb 000000011d584ff8
  00007ff7ba77cd50: 0000000012c84f00 000000011c5dbd68
  00007ff7ba77cd60: 000000011d584f00 000000010cf01120

Stacktrace Stage 0:

  SP 00007ff7ba77ccf0 IP 00000001057e9f30  FrameSize 48
  SP 00007ff7ba77cd20 IP 0000000105818974  FrameSize 16
  SP 00007ff7ba77cd30 IP 00000001069c1f4a  FrameSize 16
  SP 00007ff7ba77cd40 IP 000000010631c836  FrameSize 160
  SP 00007ff7ba77cde0 IP 000000010631fa98  FrameSize 64
  SP 00007ff7ba77ce20 IP 000000010631fc7e  FrameSize 32
  SP 00007ff7ba77ce40 IP 000000010635bede  FrameSize 32
  SP 00007ff7ba77ce60 IP 0000000106220fe5  FrameSize 32
  SP 00007ff7ba77ce80 IP 0000000106227956  FrameSize 32
  SP 00007ff7ba77cea0 IP 000000010611ba13  FrameSize 480
  SP 00007ff7ba77d080 IP 000000010612a547  FrameSize 112
  SP 00007ff7ba77d0f0 IP 000000010727f778  FrameSize 64
  SP 00007ff7ba77d130 IP 000000010727fad3  FrameSize 16
  SP 00007ff7ba77d140 IP 0000000107e3a0da  FrameSize 80
  SP 00007ff7ba77d190 IP 0000000107e32b88  FrameSize 48
  SP 00007ff7ba77d1c0 IP 0000000107e332c3  FrameSize 32
  SP 00007ff7ba77d1e0 IP 0000000107d57c9e  FrameSize 48
  SP 00007ff7ba77d210 IP 0000000107e39152  FrameSize 64
  SP 00007ff7ba77d250 IP 000000010727f258  FrameSize 32
  SP 00007ff7ba77d270 IP 00000001057bd67a  FrameSize 112

Stacktrace Stage 1:

  SP 00007ff7ba77ccf0 IP 00000001057e9f30  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77cd20 IP 0000000105818974  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77cd30 IP 00000001069c1f4a  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77cd40 IP 000000010631c836  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77cde0 IP 000000010631fa98  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77ce20 IP 000000010631fc7e  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77ce40 IP 000000010635bede  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77ce60 IP 0000000106220fe5  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77ce80 IP 0000000106227956  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77cea0 IP 000000010611ba13  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d080 IP 000000010612a547  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d0f0 IP 000000010727f778  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d130 IP 000000010727fad3  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d140 IP 0000000107e3a0da  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d190 IP 0000000107e32b88  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d1c0 IP 0000000107e332c3  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d1e0 IP 0000000107d57c9e  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d210 IP 0000000107e39152  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d250 IP 000000010727f258  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code
  SP 00007ff7ba77d270 IP 00000001057bd67a  com.oracle.svm.core.code.CodeInfo@0x10b5e44e0 name = image code

Stacktrace Stage 2:

  SP 00007ff7ba77ccf0 IP 00000001057e9f30  [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shutdown(VMErrorSubstitutions.java:111)
  SP 00007ff7ba77ccf0 IP 00000001057e9f30  [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shouldNotReachHere(VMErrorSubstitutions.java:104)
  SP 00007ff7ba77cd20 IP 0000000105818974  [image code] com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:63)
  SP 00007ff7ba77cd30 IP 00000001069c1f4a  [image code] java.lang.System.setSecurityManager(System.java:322)
  SP 00007ff7ba77cd40 IP 000000010631c836  [image code] edu.umd.cs.findbugs.ba.jsr305.TypeQualifierValue.<init>(TypeQualifierValue.java:157)
  SP 00007ff7ba77cde0 IP 000000010631fa98  [image code] edu.umd.cs.findbugs.ba.jsr305.TypeQualifierValue.getValue(TypeQualifierValue.java:298)
  SP 00007ff7ba77ce20 IP 000000010631fc7e  [image code] edu.umd.cs.findbugs.ba.jsr305.TypeQualifierValue.getValue(TypeQualifierValue.java:306)
  SP 00007ff7ba77ce40 IP 000000010635bede  [image code] edu.umd.cs.findbugs.ba.npe.TypeQualifierNullnessAnnotationDatabase.<init>(TypeQualifierNullnessAnnotationDatabase.java:70)
  SP 00007ff7ba77ce60 IP 0000000106220fe5  [image code] edu.umd.cs.findbugs.ba.AnalysisContext.getNullnessAnnotationDatabase(AnalysisContext.java:1055)
  SP 00007ff7ba77ce80 IP 0000000106227956  [image code] edu.umd.cs.findbugs.ba.AnalysisContext.updateDatabases(AnalysisContext.java:1008)
  SP 00007ff7ba77cea0 IP 000000010611ba13  [image code] edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1061)
  SP 00007ff7ba77d080 IP 000000010612a547  [image code] edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:309)
  SP 00007ff7ba77d0f0 IP 000000010727f778  [image code] jp.skypencil.spotbugs.cli.App.call(App.kt:82)
  SP 00007ff7ba77d130 IP 000000010727fad3  [image code] jp.skypencil.spotbugs.cli.App.call(App.kt:34)
  SP 00007ff7ba77d140 IP 0000000107e3a0da  [image code] picocli.CommandLine.executeUserObject(CommandLine.java:1953)
  SP 00007ff7ba77d190 IP 0000000107e32b88  [image code] picocli.CommandLine.access$1300(CommandLine.java:145)
  SP 00007ff7ba77d190 IP 0000000107e32b88  [image code] picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
  SP 00007ff7ba77d1c0 IP 0000000107e332c3  [image code] picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
  SP 00007ff7ba77d1e0 IP 0000000107d57c9e  [image code] picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
  SP 00007ff7ba77d1e0 IP 0000000107d57c9e  [image code] picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
  SP 00007ff7ba77d210 IP 0000000107e39152  [image code] picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
  SP 00007ff7ba77d210 IP 0000000107e39152  [image code] picocli.CommandLine.execute(CommandLine.java:2078)
  SP 00007ff7ba77d250 IP 000000010727f258  [image code] jp.skypencil.spotbugs.cli.App$Companion.main(App.kt:174)
  SP 00007ff7ba77d270 IP 00000001057bd67a  [image code] jp.skypencil.spotbugs.cli.App.main(App.kt)
  SP 00007ff7ba77d270 IP 00000001057bd67a  [image code] com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:146)
  SP 00007ff7ba77d270 IP 00000001057bd67a  [image code] com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:182)
  SP 00007ff7ba77d270 IP 00000001057bd67a  [image code] com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(IsolateEnterStub.java:0)

[Heap settings and statistics: 
  Supports isolates: true
  Object reference size: 8
  Incremental collections: 0
  Complete collections: 0]

[Native image heap boundaries: 
  ReadOnly Primitives: 0x10a901028 .. 0x10ade4ec0
  ReadOnly References: 0x10ade4ed0 .. 0x10b1bc868
  ReadOnly Relocatables: 0x10b1bd000 .. 0x10b509788
  Writable Primitives: 0x10b50a000 .. 0x10b632388
  Writable References: 0x10b632398 .. 0x10bd27240
  Writable Huge: 0x0 .. 0x0
  ReadOnly Huge: 0x10be00030 .. 0x10ce23bb0]

[Heap:
  [Young generation: 
    [Eden: 
      [edenSpace:
        aligned: 1044440/1 unaligned: 0/0
        aligned chunks:
          0x10ee00000 (0x10ee01028-0x10ee01178)]]
    [Survivors: 
      ]]
  [Old generation: 
    [oldFromSpace:
      aligned: 0/0 unaligned: 0/0]
    [oldToSpace:
      aligned: 0/0 unaligned: 0/0]
    ]
  [Unused:
    aligned: 0/0]]

Fatal error: Installing a SecurityManager is not yet supported