Re: [go-nuts] Compilation fails when adding option "-trimpath", because change a dependency to require gcc

2020-02-05 Thread Jérôme LAFORGE
> I haven't verified this, so this is just a guess, but perhaps without > -trimpath the go tool is using the prebuilt runtime/cgo.a, which was > built on a system with a C compiler. When you add -trimpath, the > runtime/cgo package needs to be rebuilt in order to trim the paths. >

[go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Manlio Perillo
Is there some overhead due to preemption? About EINTR, I suspect that some programs will have problems. As an example https://github.com/golang/go/issues/22838 The issue was reported for MacOS, but technically every signal, including SIGSTOP, can interrupt a syscall. Thanks Manlio On

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread Robert Engels
And I’ll repeat, you probably need a pool to limit the number of concurrent processes/connections. If you had that you would probably of detected the problem sooner. > On Feb 5, 2020, at 6:32 PM, Robert Engels wrote: > >  > I am not familiar with YouTube-dl but if you can pass a timeout on

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread Robert Engels
I am not familiar with YouTube-dl but if you can pass a timeout on the command line that would be safest. Using CommandContext will forcibly kill the process. > On Feb 5, 2020, at 4:13 PM, jnaderl...@gmail.com wrote: > >  > So someone answered on the SO question I had posted, explaining how

Re: [go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Ian Lance Taylor
On Wed, Feb 5, 2020 at 3:40 PM amr wrote: > > I'm seeing the same problem, also. Sorry about that. It's been fixed. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an

[go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread amr
I'm seeing the same problem, also. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web

[go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Michael Ellis
On Wednesday, February 5, 2020 at 6:12:21 PM UTC-5, Andrey Tcherepanov wrote: > > Sorry to mention, but for me https://tip.golang.org/doc/go1.14 returns > "template: > main:846: unexpected EOF" > > Not sure if this is because it is work in progress, or too many people > trying to hit this

[go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Andrey Tcherepanov
Sorry to mention, but for me https://tip.golang.org/doc/go1.14 returns "template: main:846: unexpected EOF" Not sure if this is because it is work in progress, or too many people trying to hit this site after announcement. Andrey On Wednesday, February 5, 2020 at 12:43:47 PM UTC-7, Carlos

Re: [go-nuts] Seeking new custodian for godoc.org

2020-02-05 Thread Ian Lance Taylor
On Wed, Feb 5, 2020 at 2:29 PM Liam wrote: > > Russ, I apologize for any misunderstanding, but below is the relevant quote > from your post. When I suggested in response that godoc.org be returned to > the community, Ian asked if anyone would be interested to take it on. My note > here was

Re: [go-nuts] Seeking new custodian for godoc.org

2020-02-05 Thread Liam
Russ, I apologize for any misunderstanding, but below is the relevant quote from your post. When I suggested in response that godoc.org be returned to the community, Ian asked if anyone would be interested to take it on. My note here was prompted by Ian's query. (Appended is my post to which

Re: [go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Ian Lance Taylor
On Wed, Feb 5, 2020 at 2:05 PM Kaveh Shahbazian wrote: >> >> "Goroutines are now asynchronously preemptible." > > Very nice! > >> "A consequence of the implementation of preemption is that on Unix systems, >> including Linux and macOS systems, programs built with Go 1.14 will receive >> more

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread jnaderlowe
So someone answered on the SO question I had posted, explaining how to check the number of processes, they suggest I add a timeout, since it seems youtube-dl, after succesffully running, sometimes hangs, so it seems golang isn't closing it sometimes. Should I do a timeout, orinstead the

[go-nuts] Re: Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Kaveh Shahbazian
> > "Goroutines are now asynchronously preemptible." Very nice! "A consequence of the implementation of preemption is that on Unix systems, > including Linux and macOS systems, programs built with Go 1.14 will receive > more signals than programs built with earlier releases. This means that

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread Robert Engels
For threads just use the os command top or ps. For go routines I would use the net based pprof > On Feb 5, 2020, at 3:20 PM, jnaderl...@gmail.com wrote: > >  > How can I debug the number of threads and go routines running and checking if > the Wait()'s finish? Because I believe that may be

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread jnaderlowe
How can I debug the number of threads and go routines running and checking if the Wait()'s finish? Because I believe that may be problem, that they hang. And when you say append the output, are you saying make a go routine to write to the headers? If you have an example I would appreciate it

Re: [go-nuts] Seeking new custodian for godoc.org

2020-02-05 Thread Russ Cox
> [go-nuts] Seeking new custodian for godoc.org The Go team is the custodian for godoc.org and we are not seeking a new one. > Legal advice will apparently force the Go team to close godoc.org [1] This is a grotesque misrepresentation of what I wrote. This is what I wrote: *# Why is there a

[go-nuts] Go 1.14 Release Candidate 1 is released

2020-02-05 Thread Carlos Amedee
Hello gophers, We have just released go1.14rc1, a release candidate version of Go 1.14. It is cut from release-branch.go1.14 at the revision tagged go1.14rc1. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable.

Re: [go-nuts] Compilation fails when adding option "-trimpath", because change a dependency to require gcc

2020-02-05 Thread Ian Lance Taylor
On Wed, Feb 5, 2020 at 9:33 AM Florent Bonneau wrote: > > Using docker image golang:1.13-alpine to build our code : > - Compiling with "go install -v oursoftware/..." our build is sucessfull > - Compiling with "go install -v -trimpath oursoftware/..." fails with > following error : > > > ... > >

[go-nuts] Compilation fails when adding option "-trimpath", because change a dependency to require gcc

2020-02-05 Thread Florent Bonneau
Using docker image golang:1.13-alpine to build our code : - Compiling with "go install -v oursoftware/..." our build is *sucessfull* - Compiling with "go install -v *-trimpath* oursoftware/..." *fails* with following error : ... runtime runtime/cgo vendor/golang.org/x/crypto/curve25519 #

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread Robert Engels
I think your problem may be "Depending on the HTTP protocol version and the client, calling // Write or WriteHeader may prevent future reads on the // Request.Body. For HTTP/1.x requests, handlers should read any // needed request body data before writing the response. Once the

Re: [go-nuts] runtime/cgo: pthread_create failed: Resource temporarily unavailable

2020-02-05 Thread Ian Lance Taylor
On Tue, Feb 4, 2020 at 11:22 PM wrote: > > I don't think that is the issue. I have tried it on a few different servers. > Most recent one with 100 gig's of ram and 50 cores. The load average never > goes above 9, but the ram slowly but surely on htop starts to go up. The go > binary ends

[go-nuts] How to push/append object into mongodb array

2020-02-05 Thread abraham . afriyie
Hi, I have the JSON below in mongodb collection { "Id":"3fa85f64-5717-4562-b3fc-2c963f66afa6", "allowedNssaiList": [ { "allowedSnssaiList": [ { "allowedSnssai": { "sst": 1, "sd": "2" }, "IMSI": "2443401",

[go-nuts] Correct way to handle errors from net.http?

2020-02-05 Thread Rio
Background: I was writing an HTTP proxy using net.http which supports both HTTP/1 and HTTP/2. I need to detect errors and do correct things according to RFC (https://http2.github.io/http2-spec/#CONNECT). It turns out that net.http has its own bundled copy of x/net/http2

Re: [go-nuts] go test -c in go 1.13 does not include -test.timeout flag in binary?

2020-02-05 Thread Craig Rodrigues
On Monday, February 3, 2020 at 11:37:08 AM UTC-8, Ian Lance Taylor wrote: > > On Mon, Feb 3, 2020 at 8:13 AM Craig Rodrigues > wrote: > > > > Regarding the fact that I should not call flag.Parse() from inside an > init() method in my_test.go file, > > if a note for this is not added to the