[go-nuts] Re: Go 1.10.1 and Go 1.9.5 are released

2018-03-30 Thread Lucio
I just updated the sources, compiled tip in /home/lucio/Project/go, then elsewhere checked out "-b go1.10.1". It is usually me being distracted, but I tried both GOROOT_BOOTSTRAP=/usr/local/go1.9 ./all.bash and export GOROOT_BOOTSTRAP=/usr/local/go1.9 ./all.bash yet the build r

[go-nuts] blocking profiler

2018-03-30 Thread Dave Cheney
It looks like you’re stopping the block profile immediately after starting it. Try github.com/pkg/profile which will take care of the plumbing for you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rece

[go-nuts] blocking profiler

2018-03-30 Thread sothy shan
Hello, I want to use blocking profiler in my go application. I use go1.10. My applcation is running as docker instance?. I include the following code into my application. f,err :=os.Create("/tmp/test_blocking.prof") if err != nil { log.WithEr

[go-nuts] runtime.needm/dropm overheads when calling Go exported functions from C

2018-03-30 Thread Lei Ni
I have a C++ program that calls Go exported functions from ~20 OS threads created and managed by C++. When I am calling those exported Go functions a few millions a second, I noticed that the overheads of runtime.needm/runtime.dropm becomes a bottleneck. The docs made it pretty clear why needm/

[go-nuts] golang/glog applications crash in microsoft/nanoserver:1709 containers

2018-03-30 Thread Stefan Scherer
Hello, At least three known applications (Docker Swarm, Traefik and Prometheus) have problems running in the newer Windows Containers microsoft/nanoserver:1709. We drilled down the problem in https://github.com/golang/go/issues/21867 . Golang at some po

[go-nuts] http.Response.TLS.VerifiedChains behavior changed in go1.9

2018-03-30 Thread acaiazza via golang-nuts
Hello, I've found a behavior change in go1.9.x and I'm not sure if this can be considered a bug or not. I prepared a small POC to explain this: https://gitlab.com/nolith-tests/go-lang-tls-connection-state/blob/master/main.go func dumpConnectionState(url string) { fmt.Println("URL", url, "with",

[go-nuts] float64 - xml marshalling to 2464700.000000 rather than 2.4647e+06

2018-03-30 Thread desaiabhijit
got this example - create a own number type and do custom marshalling of Float https://play.golang.org/p/2moWdAwXrd But there are plenty of places where I used this Float64 directly and not easy to change entire code base Can you please help me to handle this without creating own number Thank

Re: [go-nuts] Re: formal verification in Go? someday perhaps?

2018-03-30 Thread Scott Cotton
A late followup, shameless plug https://github.com/irifrance/gini Best, Scott Le mardi 28 juin 2016 09:49:21 UTC+2, Sebastien Binet a écrit : > > > > On Tue, Jun 28, 2016 at 12:24 AM, Daniel Skinner > wrote: > >> > I think a better question is: can go tools for formal verification >> become a

[go-nuts] buildmode=plugin and pprof

2018-03-30 Thread viktor . ogeman
Hi, Does anyone know if profiling is supposed to work for an application using plugins or not (i find no information that it shouldn't)? Background: 1. My package test works fine (including loading a plugin), showing no errors in normal test. 2. When running the test under -race the only outpu

[go-nuts] Re: Is there any way to define a struct member to hold a generic type channel?

2018-03-30 Thread 刘焱
Ok, I see. Thanks a lot. 在 2018年3月27日星期二 UTC+8上午2:11:47,matthe...@gmail.com写道: > > With interface{} it has to be a type check at runtime: > https://play.golang.org/p/t2jip9E__F1 > > Matt > > On Monday, March 26, 2018 at 12:34:34 PM UTC-5, 刘焱 wrote: >> >> 'chan interface {}' dosen't work. >> >> pa

Re: [go-nuts] golang pass SIGSEGV to cgo problem

2018-03-30 Thread hexun via golang-nuts
YES.how to preserve the old one,i want use it to go back to golang,then golang should recover it. 在 2018年3月30日星期五 UTC+8下午2:52:20,Ian Lance Taylor写道: > > On Thu, Mar 29, 2018 at 11:29 PM, hexun via golang-nuts > > wrote: > > > > I really want to when call handlerSIGSEGV end, it will continue ba