NPE with -Dgraal.Dump flag

Cristian Esquivias cristian.esquivias at gmail.com
Thu Aug 4 23:03:59 UTC 2016


Hi all,

I'm getting stacktraces when I run my language with -Dgraal.Dump and the
relevant graphs don't seem to be showing up in IGV. I got everything set up
via the README on github.com/graalvm/graal-core and used `mx vm` and `mx
igv` to run the program and to see the AST, respectively.

Is there a bug in the dump or do I need to tweak language? I had a working
version last week but I had to switch computers and got the errors after I
rebuilt the stack. I haven't changed my language, but maybe there's some
extra information that's now needed?

I'm running on Ubuntu 16.04 on VirtualBox.

Thanks,
Cristian

Sample stacktrace:
CFGPrinter: Exception during output of PhaseSuite:
java.lang.NullPointerException
java.lang.NullPointerException
at
com.oracle.graal.printer.CFGPrinterObserver.dumpSandboxed(CFGPrinterObserver.java:229)
at
com.oracle.graal.printer.CFGPrinterObserver.dump(CFGPrinterObserver.java:83)
at com.oracle.graal.debug.internal.DebugScope.dump(DebugScope.java:303)
at com.oracle.graal.debug.Debug.dump(Debug.java:669)
at com.oracle.graal.phases.BasePhase.apply(BasePhase.java:180)
at com.oracle.graal.phases.BasePhase.apply(BasePhase.java:154)
at
com.oracle.graal.compiler.GraalCompiler.emitFrontEnd(GraalCompiler.java:210)
at com.oracle.graal.compiler.GraalCompiler.compile(GraalCompiler.java:175)
at
com.oracle.graal.compiler.GraalCompiler.compileGraph(GraalCompiler.java:162)
at
com.oracle.graal.truffle.hotspot.HotSpotTruffleRuntime.compileMethod(HotSpotTruffleRuntime.java:233)
at
com.oracle.graal.truffle.hotspot.HotSpotTruffleRuntime.installOptimizedCallTargetCallMethod(HotSpotTruffleRuntime.java:191)
at
com.oracle.graal.truffle.hotspot.HotSpotTruffleRuntime.reinstallStubs(HotSpotTruffleRuntime.java:292)
at com.oracle.graal.truffle.TruffleCompiler.<init>(TruffleCompiler.java:112)
at
com.oracle.graal.truffle.DefaultTruffleCompiler.<init>(DefaultTruffleCompiler.java:48)
at
com.oracle.graal.truffle.DefaultTruffleCompiler.create(DefaultTruffleCompiler.java:44)
at
com.oracle.graal.truffle.hotspot.HotSpotTruffleRuntime.initializeTruffleCompiler(HotSpotTruffleRuntime.java:158)
at
com.oracle.graal.truffle.hotspot.HotSpotTruffleRuntime.getTruffleCompiler(HotSpotTruffleRuntime.java:149)
at
com.oracle.graal.truffle.GraalTruffleRuntime.doCompile0(GraalTruffleRuntime.java:465)
at
com.oracle.graal.truffle.GraalTruffleRuntime.doCompile(GraalTruffleRuntime.java:451)
at
com.oracle.graal.truffle.GraalTruffleRuntime$1.run(GraalTruffleRuntime.java:483)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at com.oracle.graal.compiler.CompilerThread.run(CompilerThread.java:51)


More information about the graal-dev mailing list