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

macos aarch64 segfault when using CodeModel::Default #5658

Open
Anton-4 opened this issue Jul 11, 2023 · 2 comments
Open

macos aarch64 segfault when using CodeModel::Default #5658

Anton-4 opened this issue Jul 11, 2023 · 2 comments

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented Jul 11, 2023

 failures:

---- cli_run::parse_letter_counts stdout ----
thread 'cli_run::parse_letter_counts' panicked at '
___________
Roc command failed with status ExitStatus(unix_wait_status(11)):

   
___________
', crates/cli/tests/cli_run.rs:119:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/panicking.rs:65:14
   2: cli_run::cli_run::check_output_with_stdin
   3: cli_run::cli_run::test_roc_app
   4: core::ops::function::FnOnce::call_once
error: test failed, to rerun pass `-p roc_cli --test cli_run`
   5: serial_test::serial_code_lock::local_serial_core
   6: core::ops::function::FnOnce::call_once
   7: core::ops::function::FnOnce::call_once
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- cli_run::with_env_vars stdout ----
thread 'cli_run::with_env_vars' panicked at '
___________
Roc command failed with status ExitStatus(unix_wait_status(11)):

   🔨 Rebuilding platform...

___________
', crates/cli/tests/cli_run.rs:119:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/panicking.rs:65:14
   2: cli_run::cli_run::check_output_with_stdin
   3: cli_run::cli_run::test_roc_app
   4: core::ops::function::FnOnce::call_once
   5: serial_test::serial_code_lock::local_serial_core
   6: core::ops::function::FnOnce::call_once
   7: core::ops::function::FnOnce::call_once
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/ops/function.rs:251:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    cli_run::parse_letter_counts
    cli_run::with_env_vars

test result: FAILED. 50 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 99.74s

In compiler/build/src/target.rs we currently use this hacky workaround:

#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
let code_model = CodeModel::Large;

But this should work with CodeModel::Default

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Jul 18, 2023

The with_env_vars failure in #5557 likely has the same cause as here.

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Jul 18, 2023

cli_run::with_env_vars also fails on linux aarch64 on a raspberry pi 4 8GB

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

1 participant