-
Notifications
You must be signed in to change notification settings - Fork 18.1k
6prof sometimes fails on Linux amd64 with "unexpected new tid" when using goroutines #1027
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
Comments
adg@quoll:~/test$ 6prof ./6.out Hello World! 5 samples (avg 2 threads) 60.00% clone 20.00% etext 20.00% exit 20.00% futex It works fine for me on linux/amd64, and (as well as 6prof does) on darwin/amd64. Is that the correct test program? Is there any other information you can provide? Status changed to WaitingForReply. |
Same problem here on linux/amd64 using the test program above: florian@FlorianLaptop:...$ $GOBIN/6prof 6.out ptrace waitpid: unexpected new tid 14833 status 0x137f Hello World! ^C florian@FlorianLaptop:...$ Additional information: florian@FlorianLaptop:~$ uname -a Linux FlorianLaptop 2.6.32-5-amd64 #1 SMP Sat Jul 24 01:47:24 UTC 2010 x86_64 GNU/Linux Do you need any other information. |
Other information... I'm using the same kernel as the above comment (2.6.32-5), distribution is Debian Unstable if there's any other variations it causes. The test program works here, and is not the only program affected. Running 6prof on godoc causes it, but only (at least only reproducibly) if it starts a listening HTTP socket, not if simply printing usage information or a single package's documentation to stdout. I originally found it while attempting to profile a much larger program of my own. |
$ $GOBIN/6prof 6.out ptrace waitpid: unexpected new tid 2410 status 0x137f Hello World! ^C $ uname -a Linux FlorianLaptop 2.6.30-2-amd64 #1 SMP Mon Dec 7 05:21:45 UTC 2009 x86_64 GNU/Linux Same behavior, different kernel. I'm using Debian testing. The same happens, as mentioned by OP, with every Program using goroutines and channels, using only channels works perfectly well. I never tested using a goroutine without channels as the OP did. |
Status changed to Duplicate. Merged into issue #251. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by namegduf:
The text was updated successfully, but these errors were encountered: