Skip to content

syscalls.rs panics on sparc with rustix 1.0.8 #1518

@Terryiscool160

Description

@Terryiscool160

i'm building a project on sparc that depends on rustix 1.0.8 via the use of crossterm, and im running into an immediate panic upon program execution.

thread 'main' panicked at /rustix-1.0.8/src/backend/libc/termios/syscalls.rs:95:31:
range end index 19 out of range for slice of length 17
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::slice::index::slice_end_index_len_fail::do_panic::runtime
   3: core::slice::index::slice_end_index_len_fail
   4: core::ops::function::FnOnce::call_once
   5: std::sync::poison::once::Once::call_once::{{closure}}
   6: std::sys::sync::once::futex::Once::call
   7: pumpkin::main::{{closure}}
   8: pumpkin::main

result.special_codes.0[..nccs].copy_from_slice(&termios2.c_cc);

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