Re: [go-nuts] http.client.Do(request) panics in highly concurrent apps (Go 1.14.1)

2020-04-02 Thread Pierre Durand
The stack trace is identical to https://github.com/golang/go/issues/3 Le jeudi 2 avril 2020 23:23:02 UTC+2, Robert Engels a écrit : > > Does your code use any unsafe or cgo? > > On Apr 2, 2020, at 11:38 AM, 'hamid...@live.com ' via > golang-nuts > wrote: > >  > Hi folks, > > An issue with th

[go-nuts] random test failure of TestScript/mod_indirect in 'cmd/go'

2020-04-02 Thread xiangdong...@gmail.com
I got the following test error from time to time, even with a freshly checkout repo., when running './all.bash', but 'go test -run=TestScript/mod_indirect cmd/go' works fine, can anyone please help here? Thanks.

Re: [go-nuts] why old version of sync.Pool need to zero out the pointer to every object?

2020-04-02 Thread Ian Lance Taylor
On Thu, Apr 2, 2020 at 9:38 AM wrote: > > Hi, I just read the commit from > https://go-review.googlesource.com/c/go/+/166960 and it said the reason to > use lock-free is because when using mutex "Clearing must zero out the > pointer to every object in every Pool to prevent a concurrent slow pa

Re: [go-nuts] http.client.Do(request) panics in highly concurrent apps (Go 1.14.1)

2020-04-02 Thread Robert Engels
Does your code use any unsafe or cgo? > On Apr 2, 2020, at 11:38 AM, 'hamid.gha...@live.com' via golang-nuts > wrote: > >  > Hi folks, > > An issue with the latest version of Go (1.14.1). My application panics when > making concurrent http GET requests to another API. > > Unfortunately it's

Re: [go-nuts] Generating Mermaid graph in web assembly

2020-04-02 Thread W. Michael Petullo
>> I have been using Go to define programs that I compile to web assembly. >> This works well in general, but I do not yet understanding how to express >> mermaid graphs (https://mermaid-js.github.io/mermaid/) from Go. >> [...] > I don't know mermaid but it sounded interesting so I took a look, an

[go-nuts] why old version of sync.Pool need to zero out the pointer to every object?

2020-04-02 Thread studyingliangzh
Hi, I just read the commit from https://go-review.googlesource.com/c/go/+/166960 and it said the reason to use lock-free is because when using mutex "Clearing must zero out the pointer to every object in every Pool to prevent a concurrent slow path from causing all objects to be retained. Sinc

[go-nuts] http.client.Do(request) panics in highly concurrent apps (Go 1.14.1)

2020-04-02 Thread 'hamid.gha...@live.com' via golang-nuts
Hi folks, An issue with the latest version of Go (1.14.1). My application panics when making concurrent http GET requests to another API. Unfortunately it's not possible to post the code here but it should be pretty straightforward to reproduce this. My application makes concurrent GET request

Re: [go-nuts] Generating Mermaid graph in web assembly

2020-04-02 Thread Jakob Borg
I don't know mermaid but it sounded interesting so I took a look, and, > mermaid listens to the page load event and when fired (when the page has > loaded) > it will locate the graphs on the page and transform them to svg files. (https://mermaid-js.github.io/mermaid/#/usage) Presumably your cod

[go-nuts] Generating Mermaid graph in web assembly

2020-04-02 Thread W. Michael Petullo
I have been using Go to define programs that I compile to web assembly. This works well in general, but I do not yet understanding how to express mermaid graphs (https://mermaid-js.github.io/mermaid/) from Go. A hard-coded graph looks like this: graph TD; A-->B;

[go-nuts] Re: Pseudo version showing different in go1.12 and go1.13

2020-04-02 Thread Nitish Saboo
Hi, Apologies forgot to mention, I am treying to migrate from go deps to go modules. Following is what is present in the Godeps for aws-sdk-go dependency { "ImportPath": "github.com/aws/aws-sdk-go", "Rev": "2150862edc16fe370b0ad7e34e30cb7b06f9b265" } Please let me know what am I missing here? T