You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the update to Rust 1.78 (which enabled unsafe precondition checks in std under more circumstances), there are a number of doctests that now fail due to un-aligned or non-null pointers:
The error messages are exactly the same for all of them (stack trace is long and not very interesting):
Test executable failed (signal: 6 (SIGABRT) (core dumped)).
stderr:
thread 'main' panicked at library/core/src/panicking.rs:156:5:
unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
The text was updated successfully, but these errors were encountered:
I got this failure on x86_64-unknown-linux-gnu (see issue title) - with Rust 1.78.0 (stable), on Fedora.
I forgot to mention that the failure is happening in v0.11.2, but not in git master. So this commit looks like it fixes the failure: 6e9520a
Would it be possible to get a new release with those fixes? Or should I backport them to the Fedora package?
decathorpe
changed the title
doctests fail with Rust 1.78+ due to violated unsafe preconditions on x86_64-unknow-linux-gnu
v0.11.2 doctests fail with Rust 1.78+ due to violated unsafe preconditions on x86_64-unknow-linux-gnu
May 21, 2024
nabijaczleweli
changed the title
v0.11.2 doctests fail with Rust 1.78+ due to violated unsafe preconditions on x86_64-unknow-linux-gnu
v0.11.2 doctests fail with Rust 1.78+ due to violated unsafe preconditions on x86_64-unknown-linux-gnu
May 21, 2024
Since the update to Rust 1.78 (which enabled unsafe precondition checks in std under more circumstances), there are a number of doctests that now fail due to un-aligned or non-null pointers:
The error messages are exactly the same for all of them (stack trace is long and not very interesting):
The text was updated successfully, but these errors were encountered: