-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: binary hangs on Catalina #37885
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
Comments
Might be a dup of #37741 . But that's an awfully small program, so I'm not sure it is possible . Does it happen all the time, or only some times? When it hangs, does it run at 100% cpu? Can you send it a SIGABRT when it hangs and paste the output here? Is it the actual output program that hangs, or is it the
So it did not happen with 10.15.2? |
It happens after several builds for few hours. Not sure of the exact time frame but I have the feeling it is a bit random.
Last I checked the
I meant after upgrading to Catalina in general, just wanted to put the exact version. It never happened before Catalina. |
It would help if you could show us a bit more about exactly what you did. I'm getting confused between your original report, which involves helloworld.go, and syspolicyd, which I know nothing about. Can you point me to the source code of syspolicyd? Next time you get a hang, run If you feel up to it, you can try patching in https://go-review.googlesource.com/c/go/+/223240 into the runtime and testing again. |
The hellloworld.go is just an example of any golang code that does not work. Of course I was working on different code before I reached this bug. But as the binary hangs, any other code would also stop working. I will get you some more info next time it hangs. |
So then what does |
True, but other apps are running without a problem. Only Golang compiler produces broken binaries when
Because it was on 99% CPU and I tried other services and nothing happened. I am almost sure it is a macos bug since I saw the |
So let me see if I understand.
Did you see the Go program at 100% cpu also? If not, then #37741 is probably not relevant. I don't know what |
Yes exactly correct.
No only the syspolicyd was 100%
I don't know either so feel free to close it if you think it is invalid. |
I think it would still be interesting to figure this out. I just don't know how to do it. |
Here is the debug info since it happed again
|
Those stack traces are from the You killed 5947, which isn't one of the programs listed in your |
Yes I think I ran |
Hey, I also hit that 2 times in the past week on macOS 10.15.4 and go 1.14.2 I compile this hello-world program
with And then |
I'm not sure there's anything we can do here, without understanding what syspolicyd is doing, and particularly, what policy it is trying to enforce. Is it something about the Go binary? Are we violating a policy? If so, what policy? Or are we doing something that makes syspolicyd do a lot of work to verify that we're in fact ok policy-wise? Or is it just general slowness with syspolicyd working hard, that tends to affect Go binaries more than others? Or is it just syspolicyd causing general slowness, and Go is just being dinged due to an observer effect? https://www.reddit.com/r/MacOS/comments/dm4dhd/syspolicyd_high_cpu_usage_on_macos_catalina/ |
It seems like an Apple bug. I will try to file a bug report with apple next time it happens. https://developer.apple.com/bug-reporting/ there is an assistant that should collect relevant information. |
Concerning syspolicyd: |
Closing as support for Catalina (10.15) ended with go1.23, ref #64207 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
running https://gobyexample.com/hello-world
What did you expect to see?
some output
What did you see instead?
it hangs without any output until I manually kill
syspolicyd
then it works normally. This started happening after upgrading to Catalina 10.15.3The text was updated successfully, but these errors were encountered: