Skip to content

Boomerang crashes when summaries are enabled #4

@dseekatz

Description

@dseekatz

Hi,

I am using Boomerang 3.0.10 and trying to run the provided examples, but with call summaries enabled. The only change I have made to the examples is that I have replaced

          // 1. Create a Boomerang solver.
          Boomerang solver =
              new Boomerang(
                  sootCallGraph, SootDataFlowScope.make(Scene.v()), new DefaultBoomerangOptions());

with the following code:

        // 1. Create a Boomerang solver.
        Boomerang solver =
            new Boomerang(
                sootCallGraph,
                SootDataFlowScope.make(Scene.v()),
                new DefaultBoomerangOptions() {
                  @Override
                  public boolean callSummaries() {
                    return true;
                  }
                });

Running ExampleMain1 produces the following output:

<boomerang.example.BoomerangExampleTarget1: void <init>()>
<boomerang.example.BoomerangExampleTarget1: void main(java.lang.String[])>
<boomerang.example.BoomerangExampleTarget1: void staticCallOnFile(boomerang.example.BoomerangExampleTarget1$ClassWithField,boomerang.example.BoomerangExampleTarget1$NestedClassWithField)>
<boomerang.example.BoomerangExampleTarget1: void queryFor(boomerang.example.BoomerangExampleTarget1$ObjectOfInterest)>
Solving query: BackwardQuery: (queryVariable (boomerang.example.BoomerangExampleTarget1.<boomerang.example.BoomerangExampleTarget1: void staticCallOnFile(boomerang.example.BoomerangExampleTarget1$ClassWithField,boomerang.example.BoomerangExampleTarget1$NestedClassWithField)>),RS: queryFor(queryVariable))
Boomerang CRASHEDjava.lang.NullPointerException
All allocation sites of the query variable are:
{}
All aliasing access path of the query variable are:
[]

The null pointer exception occurs when Boomerang tries to retrieve a summary automaton during post*, but no summaries have been created yet at this point. I can also provide the whole stack trace if it helps, but it is quite long.

Is there some additional way that I need to configure Boomerang before I can use summaries?

Thanks,
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions