Hi! We found some operating system specific code in rust and would like to know how this should be done for NetBSD.
Can someone please explain the stack guard setup on NetBSD? Below the last mail from the thread on tech-pkg, with a link to the rust code that shows how it's implemented in rust for other BSDs. Thanks, Thomas ----- Forwarded message from Havard Eidnes <h...@netbsd.org> ----- Date: Thu, 16 Nov 2023 19:29:25 +0100 (CET) From: Havard Eidnes <h...@netbsd.org> To: w...@netbsd.org Cc: jper...@mnx.io, tech-...@netbsd.org Subject: Re: rust problem when building firefox X-Mailer: Mew version 6.9 on Emacs 26.3 >> > Is this a bug in rust? >> >> It might be missing some initialisation in the NetBSD implementation of >> Rust. It's panicking in this function: >> >> https://doc.rust-lang.org/src/std/sys/unix/thread.rs.html#835-914 >> >> There's some OS-specific code for other BSDs. Does NetBSD also need to do >> something specific here? > > Does he@ know? :) he@ is regrettably blissfully ignorant about this issue. Can someone please describe how our stack guard page is placed etc, e.g. in the same terms as in the comments for the other BSDs, I'll take a look at getting something suitable in, initially as a patch, but I'll also take care of upstreaming it if we can demonstrate that it works properly. Regards, - HÃ¥vard ----- End forwarded message -----