Skip to content

RUSTFLAGS='-C target-cpu=native' causes jvm crash when compile and runtime environments differ #584

@XorSum

Description

@XorSum

Describe the bug

The CI machine used for compiling Blaze and the machines in the cluster used for running Blaze are different, resulting in a JVM crash when running.

2024-09-23 11:57:33.692 [Stage 0:(0 + 8) / 8][Stage 1:(0 + 0) / 1][Stage 2:(0 + 0) / 4]
------ initializing blaze native environment ------
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00007f2bbad0d7ec, pid=380, tid=0x00007f2bbf533700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libblaze-3882176084054705220.tmp+0x3307ec]  _$LT$blaze..logging..SimpleLogger$u20$as$u20$log..Log$GT$::log::hd1b9037843c55282+0x5c
#
# Core dump written. Default location: 

To Reproduce
Steps to reproduce the behavior:

  1. compile and run blaze on different cpu

Expected behavior
do not crash when running

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions