Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests crashes on NetBSD sparc64 #411

Open
0323pin opened this issue Sep 23, 2024 · 5 comments
Open

tests crashes on NetBSD sparc64 #411

0323pin opened this issue Sep 23, 2024 · 5 comments

Comments

@0323pin
Copy link

0323pin commented Sep 23, 2024

Hi,

NetBSD package maintainer here.

Got the following report, https://mail-index.netbsd.org/pkgsrc-bugs/2024/09/22/msg073230.html from an user.
Unfortunately, I have no clue on how to fix this.

Any thoughts?

@snshn
Copy link
Member

snshn commented Sep 23, 2024

Hi there,

thank you for reporting this issue, and thank you for maintaining the NetBSD package!

I'm investigating this right now, suspecting the latest version of reqwest to be the cause. Might downgrade it back to what it was before the breakage.

@0323pin
Copy link
Author

0323pin commented Sep 24, 2024

@snshn Thank you!

I'm investigating this right now, suspecting the latest version of reqwest to be the cause. Might downgrade it back to what it was before the breakage.

If this turns out to be the case, it might be good to report it upstream, so it can be fixed in the reqwest crate.

@als-git
Copy link

als-git commented Sep 25, 2024

One data point:

  • amd64 is little endian byte order and relaxed memory access rules (i.e. unaligned memory access "only" costs performance)
  • sparc64 is big endian byte order and strict memory access rules (i.e. unaligned memory access causes a CPU fault that is usually signaled to user space as SIGBUS, causing program abort)

At least for C code naively written for Intel and then built on SPARC, these two are a common source of bugs. I'm not familiar with Rust though, so no idea how that effects this language.

@snshn
Copy link
Member

snshn commented Sep 25, 2024

@0323pin could you please let me know if it's just sparc64 that crashes? I tested it on NetBSD with --no-default-features (non-static OpenSSL linkage), it seems to be doing fine, but it's x86_64, I suspect @als-git is correct about it being problem specific to sparc64 due to its endianness

@0323pin
Copy link
Author

0323pin commented Sep 25, 2024

@snshn I've switched the package to use the static linkage on one of the last updates. I only have x86_64 hardware myself and, that you already know.

I haven't seen other problem reports on the subject.

If you still want me to try on x86_64, just let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants