Skip to content

core::array::from_fn segfaults (v1.64, v1.63) #103756

Open
@mvniekerk

Description

@mvniekerk

I tried this code:

Git git@github.com:mvniekerk/ga-perf.git , branch segfault_array_from_fn

I expected to see this happen: It to initialize an array using a function

Instead, this happened: It segfaulted

Meta

Also checked on Docker images for 1.63, 1.64

rustc --version --verbose:

rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: aarch64-apple-darwin
release: 1.64.0
LLVM version: 14.0.6

Backtrace

    Finished dev [unoptimized + debuginfo] target(s) in 0.27s
     Running `target/debug/rust`
[1]    35557 segmentation fault  cargo run

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-arrayArea: `[T; N]`C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions