Re: [go-nuts] incomplete stack trace

2016-10-06 Thread Dan Kortschak
On Fri, 2016-10-07 at 06:00 +, Jan Mercl wrote: > Perhaps the panic occurs in some init() function and/or a TLD variable > initializer? FTR, the panic is here: > https://github.com/golang/go/blob/f75aafdf56dd90eab75cfeac8cf69358f73ba171/src/bytes/buffer.go#L158 > I've figured out the cause of

Re: [go-nuts] incomplete stack trace

2016-10-06 Thread Jan Mercl
On Fri, Oct 7, 2016 at 7:39 AM Dan Kortschak wrote: > I have just been given the following stack trace for a program I working on. The trace terminates before it gets into my program, making it's utility close to zero. Does anyone have any idea why it is not extending into main? Perhaps the pani

[go-nuts] incomplete stack trace

2016-10-06 Thread Dan Kortschak
I have just been given the following stack trace for a program I working on. The trace terminates before it gets into my program, making it's utility close to zero. Does anyone have any idea why it is not extending into main? $ go build back.go $ ./back panic: runtime error: invalid memory addres

[go-nuts] github.com/juju/deputy has moved to npf.io/deputy

2016-10-06 Thread Nate Finch
https://github.com/juju/deputy has moved to https://httphttps:"//://http npf.io/deputy (code at https://github.com/natefinch/deputy) This is code I wrote at work, but that we ended up never using. It was rotting in the github organization, so I moved it to my personal namespace (with permissio

Re: [go-nuts] Profiling gccgo programs

2016-10-06 Thread Ian Lance Taylor
On Thu, Oct 6, 2016 at 12:34 PM, Conrado PLG wrote: > > Is there a way to profile gccgo programs? > > Using go's profiler I get a one-line result responsible for 100% of the > running time. > I've also tried using gperftools, but it shows nonsensical results > ("backtrace_qsort" and "elf_symbol_co

[go-nuts] Profiling gccgo programs

2016-10-06 Thread Conrado PLG
Hi, Is there a way to profile gccgo programs? Using go's profiler I get a one-line result responsible for 100% of the running time. I've also tried using gperftools, but it shows nonsensical results ("backtrace_qsort" and "elf_symbol_compare" at the top, which seems to be functions of the prof

[go-nuts] MSACCESS with Go ?

2016-10-06 Thread wilk
I know... but i must access to MSACCESS database. I would like to use Go instead of Python. I found alexbrainman/odbc and it works. I found some litle issues that I submited to the project but I think I can workaround. Before I continue to dig, are there others Gophers using MSACCESS ? In produc

Re: [go-nuts] Single instance of program

2016-10-06 Thread Ian Lance Taylor
On Thu, Oct 6, 2016 at 8:28 AM, Manlio Perillo wrote: > Il giorno giovedì 6 ottobre 2016 03:13:32 UTC+2, Dave Cheney ha scritto: >> >> Stick an @ at the start of the file name, or the socket will remain on >> disk after the process has exited. > > > According to http://man7.org/linux/man-pages/man

[go-nuts] Re: [ANN] gorram: like go run for any* function in stdlib or GOPATH

2016-10-06 Thread Nicola Larosa (tekNico)
Can't stop the signal. ;-) -- Nicola Larosa -- 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. For more options, visit ht

Re: [go-nuts] Single instance of program

2016-10-06 Thread Manlio Perillo
Il giorno giovedì 6 ottobre 2016 03:13:32 UTC+2, Dave Cheney ha scritto: > > Stick an @ at the start of the file name, or the socket will remain on > disk after the process has exited. According to http://man7.org/linux/man-pages/man7/unix.7.html, on Linux an abstract socket address is specifie

[go-nuts] pipeline merge

2016-10-06 Thread Alex Jacinto
Hi, Do I need to rewrite the whole method for merge (from https://blog.golang.org/pipelines) for every app? or is there a lib? Just wondering. thanks in advance. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

[go-nuts] how to do http/2 server push

2016-10-06 Thread thomas . schoeftner
Hi everyone, my first post on this list. After a bit of work, I have an HTTP/2 server and client written in GO running. It took a bit of time to get things working with a custom certificate (not issued by public CA), but things work smoothly now. Next, I need to add support for HTTP/2 server p

[go-nuts] Re: golang memory allocation

2016-10-06 Thread peterGo
You are reporting all the allocations made in a BenchmarkFmt function which includes allocations made in the fmt.Println function. See https://golang.org/src/fmt/print.go. Peter On Thursday, October 6, 2016 at 12:01:16 AM UTC-4, 刘桂祥 wrote: > > > > package main > > > import ( > "fmt" > _

Re: [go-nuts] gomobile - detect OS information

2016-10-06 Thread Nigel Tao
On Tue, Oct 4, 2016 at 10:03 PM, Scot Newberry wrote: > I'm evaluating gomobile and building a simple application just display a > text both with OS name (Android, or iOS), OS release... You can at least discriminate Android vs iOS via the runtime.GOOS constant (https://golang.org/pkg/runtime/#pk

Re: [go-nuts] Re: exec.Command

2016-10-06 Thread Marvin Renich
* hadiesmail...@gmail.com [161005 09:16]: > but i test this code it does not work! > > Why?? People would be able to help you better if you said what you tried (by giving code; you can use play.golang.org if you want), and saying what happened and what you expected or wanted to happen. Also, so

[go-nuts] HTTP2 Runtime panic while Migrating an Application from Go 1.4.1 to 1.6.2

2016-10-06 Thread Nigel Vickers
We are migrating an application from go 1.4.1 to 1.6.2. The application uses a modified Gowut 0.9 as the framework and initially moved without issue. The application server runs behind a tls sni proxy/loadbalancer(slt). While running slt at 1.4.1 and the server at 1.6.2 no problems were encount

Re: [go-nuts] Single instance of program

2016-10-06 Thread dc0d
Splendid! Thanks Justin! Thanks Dave! I was doing it wrong l, err := net.Listen("unix", "/tmp/lablock") which as Justin said should be l, err := net.ListenUnix("unix", &net.UnixAddr{Name: "@/tmp/lablock", Net: "unix"}). BTW @ was very handy! But it should be at start of the whole file path, not