-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Sysinfo causing program to crash on m1 mac #1205
Comments
I was playing with this some more this morning and was able to drastically simplify the reproduction case and remove the Ruby dependency. Reuploading here if you wouldn't mind taking a look. The thing that's catching my eye the most is that the issue only seems to occur if I call I'm wondering if perhaps there's something async going on with refresh_cpu and both libcurl and sysinfo are trying to access the same resource at the same time or something? I don't know, I'm just kind of speculating. the libcurl documentation on curl_global_init does indicate it should be threadsafe but I'm not sure if it's process safe 🙃 |
I'll try to take a look next week or so (and hope that this issue is also triggered on non-M1 macs). |
It seems the main branch fixed this problem and now you can try the reproduce2 code. @SpyMachine I tested on my M1 Mac |
Closing then. Please don't hesitate to reopen if the bug is still there. |
Describe the bug
We are utilizing sysinfo and wrapping it inside a Ruby gem and our process is crashing on M1 macs with some regularity. I am using sysinfo 0.33, rustc 1.73 and Ruby 3.1.3.
Here's the header for the crash report:
The crash sometimes looks different but always comes from a call to host_processor_info.
Another example:
Not sure honestly if the problem is here with sysinfo or the libc crate possibly but I figured I'd start here.
To Reproduce
Unfortunately, I haven't found an easy way to reproduce this yet. I can continue working on that.
The text was updated successfully, but these errors were encountered: