GithubHelp home page GithubHelp logo

creichen / codeprober Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lu-cs-sde/codeprober

0.0 0.0 1.0 27.39 MB

Tool implementing Property Probes

License: BSD 3-Clause "New" or "Revised" License

Shell 0.17% JavaScript 43.53% Java 17.17% TypeScript 38.13% CSS 0.60% HTML 0.41%

codeprober's People

Contributors

creichen avatar kevlanche avatar

Watchers

 avatar

Forkers

kevlanche

codeprober's Issues

Crash due to null node locator when using the nested probe UI with circular attributes

EvaluatePropertyHandler can try to build a Tracing object with a null node locator.

Reported during EDAP15, homework 2024-ex3.
This may or may not be an upstream issue.

Steps to reproduce

./codeprober/code-prober-dev.jar ./code-prober.sh examples/hw3-task-1-0.teal

  • Probe for IfStmt.controlFalse
  • Open nested probe table
  • try to load getCond()

image

Workarounds

Does not seem to trigger with non-recursive probes. Opening a separate probe window for the ControlFalse node works fine:

image

Cause analysis

Incomplete:

Exception in thread "Thread-27" java.lang.NullPointerException
	at codeprober.protocol.data.Tracing.toJSON(Tracing.java:27)
	at codeprober.protocol.data.RpcBodyLine.toJSON(RpcBodyLine.java:156)
	at codeprober.protocol.data.SynchronousEvaluationResult.lambda$toJSON$4(SynchronousEvaluationResult.java:63)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at codeprober.protocol.data.SynchronousEvaluationResult.toJSON(SynchronousEvaluationResult.java:63)
	at codeprober.protocol.data.PropertyEvaluationResult.toJSON(PropertyEvaluationResult.java:57)
	at codeprober.protocol.data.EvaluatePropertyRes.toJSON(EvaluatePropertyRes.java:18)
	at codeprober.protocol.data.RequestAdapter.handle(RequestAdapter.java:21)
	at codeprober.DefaultRequestHandler.handleRequest(DefaultRequestHandler.java:273)
	at codeprober.requesthandler.RequestHandlerMonitor.process(RequestHandlerMonitor.java:64)
	at codeprober.requesthandler.RequestHandlerMonitor.lambda$submit$0(RequestHandlerMonitor.java:27)
	at java.base/java.lang.Thread.run(Thread.java:829)

The immediate underlying cause is an invocation of TracingBuilder.Tracing.finish(null) (where null is not intended as a valid argument):

	at codeprober.requesthandler.TracingBuilder.finish(TracingBuilder.java:102)
	at codeprober.requesthandler.EvaluatePropertyHandler.lambda$apply$3(EvaluatePropertyHandler.java:319)
	at codeprober.requesthandler.EvaluatePropertyHandler.lambda$apply$6(EvaluatePropertyHandler.java:357)
	at codeprober.metaprogramming.StdIoInterceptor.performLiveCaptured(StdIoInterceptor.java:73)
	at codeprober.requesthandler.EvaluatePropertyHandler.lambda$apply$7(EvaluatePropertyHandler.java:354)
	at codeprober.metaprogramming.StdIoInterceptor.performLiveCaptured(StdIoInterceptor.java:73)
	at codeprober.metaprogramming.StdIoInterceptor.performCaptured(StdIoInterceptor.java:82)
	at codeprober.requesthandler.EvaluatePropertyHandler.apply(EvaluatePropertyHandler.java:348)
	at codeprober.DefaultRequestHandler$1.handleEvaluateProperty(DefaultRequestHandler.java:260)
	at codeprober.protocol.data.RequestAdapter.handle(RequestAdapter.java:21)
	at codeprober.DefaultRequestHandler.handleRequest(DefaultRequestHandler.java:273)
	at codeprober.requesthandler.RequestHandlerMonitor.process(RequestHandlerMonitor.java:64)
	at codeprober.requesthandler.RequestHandlerMonitor.lambda$submit$0(RequestHandlerMonitor.java:27)
	at java.base/java.lang.Thread.run(Thread.java:829)
	```
	
Line number might be off a little due to two lines of instrumentation in `TracingBuilder.java`.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.