Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-12 Thread Stuart Henderson
On 2023-04-12, rsyk...@disroot.org wrote: > (caused by its security features). After the upgrade to 7.3 I saw > similar segfaults as here reported, which made me to > rebuild my program (I use pizauth to cope with the authentication of > mbsync with office365), but that was not sufficient.

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-12 Thread rsykora
On 2023-04-11 10:17, Laurence Tratt wrote: In case it's useful to anyone else, one can set this globally in ~/.cargo/config.toml (and avoid tweaking multiple Cargo.toml's, which can be a pain with dependencies) with: [patch.crates-io] ring = { path = "/usr/local/share/ring-0.16.20" }

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Siegfried Levin
Oh shoot! Sorry I misunderstood the solution. I got rust-ring package installed and tried Laurie’s recipe. Now all errors are gone. Thanks a lot! > On Apr 11, 2023, at 17:06, Theo Buehler wrote: > > On Tue, Apr 11, 2023 at 04:43:04PM +0800, Siegfried Levin wrote: >> I checked the core dump

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Theo Buehler
On Tue, Apr 11, 2023 at 04:43:04PM +0800, Siegfried Levin wrote: > I checked the core dump again. There is still an error on Ring 0.16.20. Yes, that's expected. If you read my mail again, I told you to use the patched source in /usr/local/share/ring-0.16.20 from the rust-ring package, not simply

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Siegfried Levin
I checked the core dump again. There is still an error on Ring 0.16.20. Where can I know more about the protection introduced in 7.3 in case that I need to report this on GitHub? Thanks. Reading symbols from /usr/libexec/ld.so...Error while reading shared library symbols: Dwarf Error: wrong

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Laurence Tratt
On Mon, Apr 10, 2023 at 08:53:55PM +0200, Theo Buehler wrote: Hello Theo, > with something like this in Cargo.toml: > > [dependencies.ring] > version = "^0.16" > path = "/usr/local/share/ring-0.16.20" In case it's useful to anyone else, one can set this globally in ~/.cargo/config.toml

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-11 Thread Stuart Henderson
On 2023-04-10, Siegfried Levin wrote: > I fixed Cargo by “pkg_add -u rust” Ignoring the rust-specific bits which tb@ and semarie@ have commented on, you should always run straight "pkg_add -u" after an update - rust or not. OpenBSD does not give much consideration for compatibility with old

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Siegfried Levin
Thanks. I believe that is the reason. > On Apr 11, 2023, at 02:54, Theo Buehler wrote: > >  >> >> 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

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Theo Buehler
> 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. Without

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Siegfried Levin
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,

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Sebastien Marie
On Mon, Apr 10, 2023 at 06:21:03PM +0200, Martin Schröder wrote: > Am Mo., 10. Apr. 2023 um 18:10 Uhr schrieb Sebastien Marie > : > > 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

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Martin Schröder
Am Mo., 10. Apr. 2023 um 18:10 Uhr schrieb Sebastien Marie : > 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

Re: All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Sebastien Marie
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

All my Rust programs stop working on OpenBSD 7.3

2023-04-10 Thread Siegfried Levin
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