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

Apache POI: install libraries for awt and adjust xmx #11006

Conversation

centic9
Copy link
Contributor

@centic9 centic9 commented Sep 24, 2023

These changes add some additional .so files to the container so that loading some classes from java.awt works.

See #10933 and #7380 for related discussions.

Also decrease "Xmx" as it seems we get native OOM in Jazzer-runs otherwise.

The UnsatisfiedLinkError keeps us from
covering quite some code, so let's try to
fetch required .so files and include them in
the container image so that some basic AWT
classes like "Color" can be used.

Reading details of fonts likely still does not work, but Apache POI
tries to gracefully handle this case already.

See related discussions at google#7380
and google#10933
Some tests currently fail with a native-OOM, it seems this happens
if the Java-Xmx-setting is too high so that Jazzer does not get
enough room for its data.

Therefore we reduce the Xmx from 2048m to 1024m so that Jazzer
has enough native memory available.
Xmx up to 1500m still caused OOMs in local testing.

This should fix requent OOMs in oss-fuzz, e.g. https://oss-fuzz.com/testcase-detail/4597575322566656
@github-actions
Copy link

centic9 has previously contributed to projects/apache-poi. The previous PR was #10978

@DavidKorczynski DavidKorczynski merged commit 3e38f99 into google:master Sep 24, 2023
16 checks passed
@centic9 centic9 deleted the apache-poi_install_libraries_for_awt_adjust_xmx branch September 25, 2023 05:44
gedigi pushed a commit to gedigi/oss-fuzz that referenced this pull request Sep 27, 2023
These changes add some additional .so files to the container so that
loading some classes from java.awt works.

See google#10933 and google#7380 for related discussions.

Also decrease "Xmx" as it seems we get native OOM in Jazzer-runs
otherwise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants