Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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