-
Notifications
You must be signed in to change notification settings - Fork 18k
Segmentation fault at pkg/runtime/proc.c:2273 #7065
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
Labels
Milestone
Comments
It seems that a thread is woken w/o m->nextp. If it can happen, then it would crash with the same stack trace. But I have not seen such crashes before. It's possible that it crashes with a very low probability. It seems to be an open-source project. Can you provide reproduction instructions? Labels changed: added release-go1.3maybe, repo-main. |
Hello Dmitry. Please clone tiedot "segfault" branch: https://github.com/HouzuoGuo/tiedot/tree/segfault And compile it as per usual: go build To trigger the segfault, run the compiled executable with flag -bench3: ./tiedot -bench3 Clean up happens automatically before each run, so no manual cleanup is required. It almost always completes successfully, but the segfault happens every 40 or 50 runs. I attach another segfault goroutine trace. Thanks! Attachments:
|
I don't know whether I guessed how to do these steps correctly or not. My checkout seems to be on segfault: gopath/src/github.com/HouzuoGuo/tiedot$ git status On branch segfault Your branch is up-to-date with 'origin/segfault'. But the binary does not recognize -bench3: $ ./tiedot -bench3 flag provided but not defined: -bench3 Usage of ./tiedot: |
Owner changed to @dvyukov. Status changed to Accepted. |
>CPU profile is already enabled in the code, see line 296 in benchmark.go. Ah, OK, I see. However note that CPU profiling was disabled on OSX in Go 1.2... So I am not sure how it affects the issue... > It sounds very unusual to consume 50+GB of memory. On my system, the peak resident memory usage is around 2GB. No, that was linux 64-bit. I wanted to see whether it reproduces there. I was able to reproduce it on tip on OSX so far. |
I suspect it may be related to https://golang.org/issue/5139 |
I've sent: https://golang.org/cl/52090045 that fixes a very obscure data race in runtime. It can be potentially the cause of the crashes you see. Difficult to say. |
https://golang.org/cl/52090045/ is submitted and it may fix the issue I've tried to reproduce it several days on several machines, but reproduced only once and w/o and special debugging output... |
Thanks! Let's consider this as Fixed. If you spot this again (with tip or Go1.3) please notify us. Removing 1.2.1 label, because issue #5139 is marked as 1.2.1. Labels changed: added release-go1.3, removed release-go1.2.1. Status changed to Fixed. |
rsc
added a commit
that referenced
this issue
May 11, 2015
««« CL 52090045 / 302bdb5b08b1 runtime: fix data race in GC Fixes #5139. Update #7065. R=golang-codereviews, bradfitz, minux.ma CC=golang-codereviews https://golang.org/cl/52090045 »»» LGTM=r R=golang-codereviews, r CC=golang-dev https://golang.org/cl/69790043
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by guohouzuo:
Attachments:
The text was updated successfully, but these errors were encountered: