Skip to content
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

Feature request: waitid support #638

Closed
tirpen opened this issue Jul 10, 2016 · 16 comments
Closed

Feature request: waitid support #638

tirpen opened this issue Jul 10, 2016 · 16 comments
Labels

Comments

@tirpen
Copy link

tirpen commented Jul 10, 2016

As referenced here:

https://github.com/nodejs/node/blob/be68b68d4863f0d389cc46fdf6f1cbcd1b241d0a/deps/v8/src/d8-posix.cc

@stuart-warren
Copy link

also see golang/go#16628

@tirpen
Copy link
Author

tirpen commented Sep 3, 2016

Just an update for the case of Go 1.7 depending on waitid.
As of 14915:

go build command-line-arguments: /usr/local/go/pkg/tool/linux_amd64/compile: waitid: invalid argument

@marpaia
Copy link

marpaia commented Sep 4, 2016

+1

@benhillis
Copy link
Member

This issue is understood and I will be fixing it as soon as I'm back from my honeymoon. :)

@benhillis
Copy link
Member

I've implemented the WNOWAIT flag for the waitid system call. I'd like to verify my change resolves the issue but I'm having trouble getting go 1.7 to build a sample project though, could somebody share some repro steps to see the error in question?

root@BENHILL-VM3:~/example/template# go build
import cycle not allowed
package .
        imports html/template
        imports bytes
        imports errors
        imports runtime
        imports runtime/internal/atomic
        imports unsafe
        imports runtime
import cycle not allowed
package .
        imports net/http
        imports crypto/tls
        imports crypto/x509
        imports net
        imports runtime/cgo
        imports runtime/cgo
root@BENHILL-VM3:~/example/template#

@egtann
Copy link

egtann commented Sep 10, 2016

Is ~/example/template inside your $GOPATH?

If it's not in your $GOPATH, it'll need to be. Generally you'd set your $GOPATH to something like $HOME/go, then place your project inside $HOME/go/src/github.com/benhillis/example

If it is inside your $GOPATH, can you paste the contents of the .go file you're trying to build?

@benhillis
Copy link
Member

@egtann Thanks, that was my issue. I fixed my $GOPATH variable and verified that the go project is compiling and running. My example is a very basic hello world, if somebody has a pet project they'd like me to try to run let me know.

@egtann
Copy link

egtann commented Sep 10, 2016

This would probably be a good test (installing all of Go's tools): go get golang.org/x/tools/cmd/...

@tirpen
Copy link
Author

tirpen commented Sep 15, 2016

Hey @benhillis.

It seems that this fix was not included for14926.

My best,

@tirpen tirpen closed this as completed Sep 15, 2016
@tirpen tirpen reopened this Sep 15, 2016
@benhillis
Copy link
Member

@abergs You are correct. The fix is making its way to the release branch. Keep an eye out on the release notes.

@dreyks
Copy link

dreyks commented Sep 28, 2016

Hope 14936 has it. Downloading right now, will report

This really was a surprise for me as a part of heroku toolbelt, which has an autoupdate feature and started using go1.7

@benhillis Congratulations!

@benhillis
Copy link
Member

@dreyks Thanks!

Please do let me know if this resolves your issue!

@egtann
Copy link

egtann commented Sep 28, 2016

@benhillis Works great for me! Thank you, thank you, thank you.

@dreyks
Copy link

dreyks commented Sep 28, 2016

indeed it does work. however i now get a BSOD about "attempted execute of nonexecute memory" when connecting to ssh server running in WSL with putty, which is sad, though this is a thing for a separate issue

@benhillis
Copy link
Member

@dreyks I'm sorry about that... We have a fix in progress for the bluescreen.

@tirpen
Copy link
Author

tirpen commented Sep 29, 2016

Well thanks, @benhillis and team. This one is closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants