MIT-PAC / droidsafe-src

DroidSafe Android Static Analysis Source Repository
93 stars 48 forks source link

Insufficient Memory #2

Open frankvolkel opened 9 years ago

frankvolkel commented 9 years ago

Hi,

I ran droidsafe on an AWS Memory Optimized instance with 244GBs of memory. I followed the documented instructions in the Wiki on a real-world application and it failed due to insufficient amounts of memory. I have no problems running and completing the PickContact test.

How much resources is deemed sufficient for analysis of a reasonably sized app?

WARN: Error in soot hierarchy. Interface found where class excepted: com.google.android.gms.drive.metadata.OrderedMetadataField
WARN: Error in soot hierarchy. Interface found where class excepted: com.google.android.gms.drive.metadata.internal.a
WARN: Error in soot hierarchy. Interface found where class excepted: com.google.android.gms.drive.metadata.internal.d
WARN: Error in soot hierarchy. Interface found where class excepted: com.google.android.gms.drive.metadata.internal.e
WARN: Error in soot hierarchy. Interface found where class excepted: com.google.android.gms.drive.metadata.internal.h
WARN: Error in soot hierarchy. Interface found where class excepted: com.google.android.gms.drive.metadata.internal.j
No context: 969
Info: Not accounting for newInstance(String) calls.
Setting memory size to 240GB
make: *** [specdump-apk] Error 247
mgordon commented 9 years ago

Hello Frank,

Can you provide more output for the run of the analysis?

In general, there are different components to our analysis that could be causing the issues with insufficient amounts of memory. We have various flags that could try, or you can define your own (smaller) sources and sinks API call sets. Let us know if you are still experiencing problems.

sj2416 commented 7 years ago

Hi @mgordon

I am currently facing issue while Installing the Droidsafe Eclipse Plugin.

The error log: xxxx@VirtualBox:~/Capstone/DroidSafe/droidsafe-src-master$ ant plugin-deploy Buildfile: /home/xxxx/Capstone/DroidSafe/droidsafe-src-master/build.xml

check-for-changes:

antlr-runs:

build-libs:

droidsafe-calls-build:

compile-model:

compile-manual-model: [delete] Deleting: /home/xxxx/Capstone/DroidSafe/droidsafe-src-master/android-lib/droidsafe-manual-api-model.jar [jar] Building jar: /home/xxxx/Capstone/DroidSafe/droidsafe-src-master/android-lib/droidsafe-manual-api-model.jar

compile-ds:

compile:

plugin: [copy] Copying 2 files to /home/xxxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/droidsafe.eclipse.plugin.core/android-lib [copy] Copying 61 files to /home/xxxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/droidsafe.eclipse.plugin.core/android-lib/res [copy] Copying 2 files to /home/xxxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/droidsafe.eclipse.plugin.core/config-files

plugin-deploy:

create-build-properties:

load-build-properties:

check-eclipse-home: [echo] Eclipse Home Available = true [echo] Eclipse Home = /home/xxxxx/eclipse

set-eclipse-build-path: [echo] eclipse home = /home/xxxx/eclipse [echo] eclipse launcher = /home/xxxxx/eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar [echo] eclipse pde build =

check-eclipse-build-files:

print-config-error-message:

copy-feature-and-plugin: [copy] Copying 212 files to /home/xxxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/build/plugins/droidsafe.eclipse.plugin.core [copy] Copying 5 files to /home/xxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/build/features/droidsafe.eclipse.plugin.feature [copy] Copying 1 file to /home/xxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/build [mkdir] Created dir: /home/xxxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/droidsafe-site-local

build: [java] org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized. [java] org.eclipse.m2e.logback.configuration: Logback config file: /home/sj2416/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml [java] SLF4J: Class path contains multiple SLF4J bindings. [java] SLF4J: Found binding in [bundleresource://924.fwk1682157864:1/org/slf4j/impl/StaticLoggerBinder.class] [java] SLF4J: Found binding in [bundleresource://924.fwk1682157864:2/org/slf4j/impl/StaticLoggerBinder.class] [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. [java] org.eclipse.m2e.logback.configuration: Initializing logback [java] SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [java] Buildfile: /scripts/build.xml [java] [java] BUILD FAILED [java] Buildfile: /scripts/build.xml does not exist [java] [java] Total time: 0 seconds [java] An error has occurred. See the log file [java] /home/xxxxx/workspace/.metadata/.log.

BUILD FAILED /home/xxxxx/Capstone/DroidSafe/droidsafe-src-master/build.xml:543: The following error occurred while executing this line: /home/xxxx/Capstone/DroidSafe/droidsafe-src-master/src/eclipse/build-plugin.xml:87: Java returned: 13

Thanking in advance.

Sweta Jhaveri