Long parameter list crashes JVM on x86
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Aug 9 14:56:21 UTC 2024
Very interesting - thanks for the report.
From the title of your email, I was expecting a single downcall with
lots and lots of native parameters, but your example seems to be
crashing while building the downcall method handle, which you are then
not even calling.
We will take a look. I've filed this:
https://bugs.openjdk.org/browse/JDK-8338123
Cheers
Maurizio
On 09/08/2024 06:45, dreamlike_ocean lei wrote:
> Panama-dev team:
> I run a batch generation ffi code on Linux x86_64 and found that if
> the parameter list is very long (about 86), the jvm will crash, but it
> will not happen on Mac aarch64. For specific reproduction code and
> crash reports, please see https://github.com/dreamlike-ocean/PanamaCrash
>
> I appreciate your assistance in resolving this matter. Please let me
> know if you need any additional information.
>
> My build toolchain:
> Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
> Maven home: /home/dreamlike/.sdkman/candidates/maven/current
> Java version: 22.0.1, vendor: Oracle Corporation, runtime:
> /home/dreamlike/jdks/openjdk-22.0.1_linux-x64_bin/jdk-22.0.1 Default
> locale: zh_CN, platform encoding: UTF-8 OS name: "linux", version:
> "6.8.0-31-generic", arch: "amd64", family: "unix
>
>
> Best regards, dreamlike
More information about the panama-dev
mailing list