Skip to content

6prof fails with "ptrace waitpid: unexpected new tid" #1095

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

Closed
nigeltao opened this issue Sep 10, 2010 · 4 comments
Closed

6prof fails with "ptrace waitpid: unexpected new tid" #1095

nigeltao opened this issue Sep 10, 2010 · 4 comments

Comments

@nigeltao
Copy link
Contributor

$ env | grep GO
GOARCH=amd64
GOROOT=/home/nigeltao/go
GOOS=linux
$ cat main.go
package main
import "net"
func main() {
    net.Dial("unix", "", "/tmp/.X11-unix/X0")
}
$ 6g main.go && 6l main.6
$ 6prof ./6.out
ptrace waitpid: unexpected new tid 8827 status 0x137f
@robpike
Copy link
Contributor

robpike commented Sep 10, 2010

Comment 1:

this appears to be linux-specific

@robpike
Copy link
Contributor

robpike commented Sep 10, 2010

Comment 2:

The issue seems to be that in wait1(), waitpid returns a tid for a process before the
rest of the library has discovered it.  We have an ugly hack to install the new thread
info in libmach's thread list and try again, but a better approach is probably required.
 The origin of the race remains undiscovered.

@robpike
Copy link
Contributor

robpike commented Sep 10, 2010

Comment 3:

Labels changed: removed compilerbug.

@rsc
Copy link
Contributor

rsc commented Sep 11, 2010

Comment 4:

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.
Projects
None yet
Development

No branches or pull requests

4 participants