Thanks. Actually that’s what I did. Rust package was updated by “pkg_add -u rust” and then “cargo build —release” rebuilds the projects. However, when I ran it, it crashed because of segment fault. It no longer passes the tests as well, “invalid memory reference” was returned.
> On Apr 11, 2023, at 00:09, Sebastien Marie <sema...@online.fr> wrote: > > On Mon, Apr 10, 2023 at 11:49:50PM +0800, Siegfried Levin wrote: >> After I upgraded my OS from 7.2 to 7.3 with sysupgrade like 8 hours ago, all >> my programs written in Rust broke, including cargo installed with pkg_add on >> 7.2. I fixed Cargo by “pkg_add -u rust” and then recompiled some of my >> projects. Now they are having segment faults. Does anyone having the same >> error? > > you need to rebuild your locally built programs with rustc from 7.3. > > first, upgrade rustc/cargo with pkg_add -u, and next rebuild your programs as > usually, that's all. > > for the long story: 7.3 comes with immutable stack, but old rust programs are > modifying it (so the kernel kills your programs). > > the updated package has the required changes in rust std library. but you > will > need to rebuild your programs to make them to use the updated code (the > faulty > code is in rust std which is statically linked in all programs). > > Thanks. > -- > Sebastien Marie