Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: A runtime crash when analyzing Lucence library #953

Open
tisble opened this issue Jun 12, 2024 · 0 comments
Open

[Bug]: A runtime crash when analyzing Lucence library #953

tisble opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tisble
Copy link

tisble commented Jun 12, 2024

What happened?

I used SootUp to analyze a jar library Lucene Link and it crashed when constructed call graph. After an initial investigation, I found the crash is caused by the method unmapHackImpl Link.

Version

Latest develop branch

Relevant log output

java.lang.IllegalStateException: Failed to apply sootup.java.core.interceptors.NopEliminator@2e40ea48 to <org.example.Test: java.lang.Object foo()>
        at sootup.java.bytecode.frontend.AsmMethodSource.resolveBody(AsmMethodSource.java:240)
        at sootup.core.model.SootMethod.lazyBodyInitializer(SootMethod.java:98)
        at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:186)
        at sootup.core.model.SootMethod.getBody(SootMethod.java:177)
        at sootup.callgraph.RapidTypeAnalysisAlgorithm.collectInstantiatedClassesInMethod(RapidTypeAnalysisAlgorithm.java:106)
        at sootup.callgraph.RapidTypeAnalysisAlgorithm.preProcessingMethod(RapidTypeAnalysisAlgorithm.java:233)
        at sootup.callgraph.AbstractCallGraphAlgorithm.processWorkList(AbstractCallGraphAlgorithm.java:164)
        at sootup.callgraph.AbstractCallGraphAlgorithm.constructCompleteCallGraph(AbstractCallGraphAlgorithm.java:85)
        at sootup.callgraph.RapidTypeAnalysisAlgorithm.initialize(RapidTypeAnalysisAlgorithm.java:88)
        at edu.ssrlab.analysis.SootUpExecutor.runRTA(SootUpExecutor.java:197)
        at edu.ssrlab.TestMutiFolder.testSootUpCHA(TestMutiFolder.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.IllegalStateException: visualize invalid StmtGraph: <URL>
        at sootup.core.graph.StmtGraph.validateStmtConnectionsInGraph(StmtGraph.java:244)
        at sootup.java.bytecode.frontend.AsmMethodSource.resolveBody(AsmMethodSource.java:237)
        ... 13 more
Caused by: java.lang.IllegalArgumentException: Invalid StmtGraph. A Trap is not created as a traps endStmt was not visited during the iteration of all Stmts.
        at sootup.core.graph.StmtGraph$BlockGraphIteratorAndTrapAggregator.getTraps(StmtGraph.java:490)
        at sootup.core.graph.MutableBlockStmtGraph.getTraps(MutableBlockStmtGraph.java:1495)
        at sootup.core.graph.StmtGraph.validateStmtConnectionsInGraph(StmtGraph.java:187)
        ... 14 more
@tisble tisble added the bug Something isn't working label Jun 12, 2024
@swissiety swissiety self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants