eclipse-serializer / serializer

Serializer project
Eclipse Public License 2.0
58 stars 6 forks source link

Eclipse Serializer hacks into JDK internals, crashes VM because it invokes cleaning action directly #102

Closed AlanBateman closed 6 months ago

AlanBateman commented 6 months ago

Someone working on Eclipse Store reported a VM crash to the JDK but the issue is some nasty code in Eclipse Serializer: https://bugs.openjdk.org/browse/JDK-8325173

Someone working on Eclipse Serializer needs to re-examine this code.

fh-ms commented 6 months ago

@AlanBateman Thanks for reporting the issue back to us. We were able to reproduce and fix the problem.

rpx99 commented 4 months ago

@fh-ms Hi Florian, this bug seems to be back with a newer java 21 version.

The bookstore-demo fails again with a similar error as before

java(7764) in free(): bogus pointer (double free?) 0x21018060000

Maybe there are other places needing a fix, too?

The version it worked with was

tron$ java --version openjdk 21.0.1 2023-10-17 OpenJDK Runtime Environment (build 21.0.1+12-2) OpenJDK 64-Bit Server VM (build 21.0.1+12-2, mixed mode, sharing)

The newer version I have now fails again:

tron$ java --version openjdk 21.0.3 2024-04-16 OpenJDK Runtime Environment (build 21.0.3+9-1) OpenJDK 64-Bit Server VM (build 21.0.3+9-1, mixed mode, sharing)

Thanks, Robert.

zdenek-jonas commented 4 months ago

@fh-ms Hi Florian, this bug seems to be back with a newer java 21 version.

The bookstore-demo fails again with a similar error as before

java(7764) in free(): bogus pointer (double free?) 0x21018060000

Maybe there are other places needing a fix, too?

The version it worked with was

tron$ java --version openjdk 21.0.1 2023-10-17 OpenJDK Runtime Environment (build 21.0.1+12-2) OpenJDK 64-Bit Server VM (build 21.0.1+12-2, mixed mode, sharing)

The newer version I have now fails again:

tron$ java --version openjdk 21.0.3 2024-04-16 OpenJDK Runtime Environment (build 21.0.3+9-1) OpenJDK 64-Bit Server VM (build 21.0.3+9-1, mixed mode, sharing)

Thanks, Robert.

Bookstore demo is not updated. There is old Eclipse Store dependency. I going to prepare the PR with update. You can update it in pom.xml directly. There is a version 1.1.0 the last version is 1.3.2

rpx99 commented 4 months ago

Thanks, it works.