Skip to content

unsafe precondition(s) violated: ptr::copy_nonoverlapping with rust 1.78 #96

@m-dahl

Description

@m-dahl

With rust 1.78 we now get panics on what I assume has to do with how we copy data from c message structs.

thread 'msg_types::tests::test_float_sequence' panicked at library/core/src/panicking.rs:156:5:
unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null and the specified memory ranges do not overlap

As a temporary fix you can downgrate to rust 1.77.

But we should investigate the root cause of the problem.

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