Skip to content

Possible alignment issues crashing JVM on SPARC platform #78

@n4al

Description

@n4al

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions