Periodic jextract failure on Windows

Jorn Vernee jorn.vernee at oracle.com
Fri Apr 29 12:02:37 UTC 2022


Hi Duncan,

You are likely running into: 
https://bugs.openjdk.java.net/browse/JDK-8240614

I've looked into this previously and it seems to be an issue deep within 
libclang itself.

It's an older issue, but since the workaround is so easy (re-run the 
extraction), and because fixing it requires digging into libclang, or 
creating a standalone reproducer to file the bug upstream (in the past 
I've not been able to do that), it's been shifted low on the priority 
list while I'm working on the foreign linker API.

Jorn

On 29/04/2022 13:45, Duncan Gittins wrote:
> Some feedback on jextract - I'm using Windows OpenJDK 64-Bit Server VM
> (build 18+36-2087) and a recent build of jextract from Apr 15 (commit
> c1b0e7ec4c4c635f26ef19dbc5f3f3acc2b9f7ee) just after the Windows gradle
> build was fixed.
>
> Occasionally jextract fails on Windows, and gives simple message: "Child
> process exited with code xxxxxx". A re-run of same command works. I've seen
> this issue a few times in the last year on earlier JDK+jextract so the
> issue isn't specific to the above JDK+jextract combination.
>
> It does not make a difference which of my input configurations I use, but
> see contents of the @argfiles used below which caused the recent error
> message:
>
>      > %JEXTRACT% @headers\C.conf @headers\C.sym
>      WARNING: Using incubator modules: jdk.incubator.foreign
>      Child process exited with code 3221225477
>
>      >%JEXTRACT% @headers\C.conf @headers\C.sym
>      WARNING: Using incubator modules: jdk.incubator.foreign
>
> I've no reason to suspect my PC disk is beginning to fail which might be an
> explanation. Any suggestions?
>
> Kind regards
>
> Duncan Gittins
>
> C_h.h:
>
> #include <stdio.h>
> #include <process.h>
> #include <string.h>
> #include <stdlib.h>
> typedef _CoreCrtNonSecureSearchSortCompareFunction QsortCompareFunc;
>
> C_h.sym:
>
> --include-function strlen
> --include-function vprintf
> --include-function printf
> --include-function _getpid
> --include-function qsort
> --include-typedef QsortCompareFunc


More information about the panama-dev mailing list