-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
runtime: fatal error: unknown caller pc #48921
Comments
This definitely looks strange:
That second argument looks like an OS thread stack, not a goroutine stack. Goroutine stacks should start with 0xc0. The trackback doesn't contain the function that is initiating the defer. My guess is it would be raft/test_test.go:1115, because it is in the goroutine started here:
It's a defer in a loop, which is a somewhat unusual case. I have no idea why that would cause this kind of failure though. Not related to the bug, but note that this use of defer doesn't make a whole lot of sense. You want |
Thanks, it is definitely a bug. But in fact the file is not created, so i think the program did not run into the branch which contains the defer, it may not relate to the panic. |
reproduced using go 1.17.2 go env output:
|
I don't know if this can help you find out the problem. But it's happening to me as well. I can reproduce it only randomly couple times a day just with our complex application. Here are the output logs: go env
Crash output
|
Please file a new issue at golang.org/issue/new using this template:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not sure, before the crash occurred, the test has been running for two days, not sure whether it will reproduce. And no core file generated.
I'll try to run code in the latest release, but it may take some time.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
the code is here
I ran the following command in
src/raft
directoryand after 2 days with about 600+ rounds, I got the crash
the code did not use
cgo
and unsafe package.What did you expect to see?
the program runs normally
What did you see instead?
the crash outputs:
Crash Output
The text was updated successfully, but these errors were encountered: