Skip to content

SIGSEGV: Invalid memory reference with certain rust flags on ARM machines. #717

Open
@nhtyy

Description

@nhtyy

Unfortunately, I was unable to create a minimal repro, so this issue may not be very valuable.

I noticed that when compiling on an ARM machine with the following flags:

RUSTFLAGS='-Cdebug-assertions -Ctarget-cpu=native'

I would always get a SIGSEGV after a deterministic amount of Backtrace::new_unresolved, removing either or both flags would allow the program to work fine.

If you wanted to try to reproduce this issue, you could clone the SP1 repo and run the following commands on an ARM machine:

RUST_LOG=trace RUSTFLAGS="-Ctarget-cpu=native -Cdebug-assertions" cargo test --release  --features native-gnark -p sp1-prover --lib -- - --exact tests::test_e2e --nocapture

Note: this may require go to be installed.

Machine specs:

  • AWS machine
  • OS: Ubuntu 22.04.5 LTS aarch64
  • host: c7g.16xlarge
  • Kernel: 6.8.0-1024-aws

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