Replies: 5 comments 2 replies
-
Are you using the standalone JAR? Could you try setting these settings via |
Beta Was this translation helpful? Give feedback.
-
I originally used the "jazzer" binary, but now switched to running java with the "standalone.jar" to make sure the options are passed properly. I found the following: Running with "-rss_limit_mb=1024" causes a different type of OOM which does not lead to a hprof, probably because it happens in native code?
If I removed "-rss_limit_mb" and leave the same value as "-Xmx", I do not get an out of memory at all. |
Beta Was this translation helpful? Give feedback.
-
I'm actually trying to hunt down an OOM reported as part of oss-fuzz runs of project Apache POI. See https://oss-fuzz.com/testcase-detail/4828378899021824 for the full log. So it seems oss-fuzz itself uses this option currently and runs into this "special" out of memorry :( . |
Beta Was this translation helpful? Give feedback.
-
Seems I am stuck here, oss-fuzz documentation states that this is on-purpose and cannot be adjusted: https://google.github.io/oss-fuzz/faq/#how-do-you-handle-timeouts-and-ooms |
Beta Was this translation helpful? Give feedback.
-
I found that Xmx and rss_limit are related in a slightly unexpected way:
This is done via google/oss-fuzz#11006 now. |
Beta Was this translation helpful? Give feedback.
-
I have cases where running fuzzing stops with OOM, but re-running the single failure file is not reproducing the OOM.
I assume there are cases where memory accumulates over time when many different inputs are processed and thus the memory is slowly accumulating.
In order to analyze this, I would like to get a heap-dump when Jazzer encounters the OOM.
In a normal Java application I would use
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp
to get a .hprof file which can be analyzed afterwards.However when I tried to specify this option via
--jvm_args
I do not get a .hprof file. Maybe because Jazzer handles the OOM differently internally.Is there a way to get a .hprof file?
I am running the Jazzer standalone binary currently, would this be possible via JUnit-based fuzzing?
Beta Was this translation helpful? Give feedback.
All reactions