RFR: 8336382: Fixes error reporting in loading AWT and fonts [v9]
Karm Michal Babacek
duke at openjdk.org
Thu Oct 3 11:48:11 UTC 2024
On Mon, 15 Jul 2024 19:11:38 GMT, Phil Race <prr at openjdk.org> wrote:
>> Karm Michal Babacek has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Amends test description
>
> There is nothing in this PR that I would accept. It should be withdrawn.
@prrace I added a test that triggers the described issue.
## Unpatched awt_LoadLibrary.c
$ TIME=`date +%s`;mkdir -p test.${TIME}/jdk/JTwork test.${TIME}/jdk/JTreport; jtreg -a -ignore:quiet -w:test.${TIME}/jdk/JTwork -r:test.${TIME}/jdk/JTr
eport -jdk:/home/karm/workspaceRH/jdk/build/linux-x86_64-server-release/images/graal-builder-jdk/ /home/karm/workspaceRH/jdk/test/jdk/java/awt/Headless/;
Test results: passed: 14; failed: 1
...
Output and diagnostic info for process 578718 was saved into 'pid-578718-output.log'
----------System.err:(38/2940)----------
stdout: [Transforming java.awt.GraphicsEnvironment.
isHeadless removed from java.awt.GraphicsEnvironment.
FATAL ERROR in native method: Could not allocate library name
at jdk.internal.loader.NativeLibraries.load(java.base at 24-internal/Native Method)
at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(java.base at 24-internal/NativeLibraries.java:331)
...
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'FATAL ERROR in native method: isHeadless method not found' missing from stdout/stderr
## Patched awt_LoadLibrary.c
$ TIME=`date +%s`;mkdir -p test.${TIME}/jdk/JTwork test.${TIME}/jdk/JTreport; jtreg -a -ignore:quiet -w:test.${TIME}/jdk/JTwork -r:test.${TIME}/jdk/JTreport -jdk:/home/karm/workspaceRH/jdk/build/linux-x86_64-server-release/images/graal-builder-jdk/ /home/karm/workspaceRH/jdk/test/jdk/java/awt/Headless/;
Test results: passed: 15
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20169#issuecomment-2391205853
More information about the client-libs-dev
mailing list