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

Possible alignment issues crashing JVM on SPARC platform #78

Open
n4al opened this issue Mar 31, 2023 · 5 comments
Open

Possible alignment issues crashing JVM on SPARC platform #78

n4al opened this issue Mar 31, 2023 · 5 comments

Comments

@n4al
Copy link

n4al commented Mar 31, 2023

UnsafeAccess class produces SIGBUS on Solaris/SPARC and crashes the JVM. I have originally found this issue with Gatling that ships OpenHFT ZAH as part of Scala's Zinc compiler. It crashes regardless of OS and JDK version, making the platform being the only thing left. Possible issue is alignment given that SPARC and ARM processors enforce it while x86 is permissive (see, for example: https://shipilev.net/jvm/anatomy-quarks/24-object-alignment/)

To reproduce the problem:
0. on a Solaris/SPARC platform (I can assist here if needed) clone the git repository

  1. run mvn package
  2. observe the test results:
    mvn-package.out.txt

I am attaching the error reports:
error_report.zip

@gzm55
Copy link
Collaborator

gzm55 commented Apr 1, 2023

it seems that, on sparc we need to avoid unsafe operations at all.

@n4al
Copy link
Author

n4al commented Apr 3, 2023

Do you happen to have a suggestion for a workaround?

@gzm55
Copy link
Collaborator

gzm55 commented Apr 3, 2023

imo, the only way is that find all unsafe invocation and use java native method when on SPARC

@alamar
Copy link

alamar commented Jun 6, 2023

Unfortunately, we only target x86_64 and arm architectures and do not have SPARC targets, so we are not able to test and fix this.

@n4al
Copy link
Author

n4al commented Jun 6, 2023

Would it help if I provided one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants