Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread Ian Lance Taylor
On Thu, May 2, 2019 at 11:18 AM Marcin Romaszewicz wrote: > > If that's the actual problem, you'd just be masking it, and producing an > invalid "x". Look here: > > func (r *Subid_info) Prepare_subid_logic(){ > r.Second_subid_8=fmt.Sprintf("1%07v", r.Second_subid) > panic happens > here.

Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread XXX ZZZ
I'm testing race conditions again as we speak, however this object is created WITHIN the goroutine (the http request), there is no way, afaik, that is being used from another routine. El jueves, 2 de mayo de 2019, 15:19:02 (UTC-3), Marcin Romaszewicz escribió: > > If that's the actual problem, y

Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread Burak Serdar
On Thu, May 2, 2019 at 12:12 PM Burak Serdar wrote: > > On Thu, May 2, 2019 at 11:31 AM XXX ZZZ wrote: > > > > Hello, > > > > We are having a random panic on our go application that is happening once > > every million requests or so, and so far we haven't been able to reproduce > > it nor to ev

Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread Marcin Romaszewicz
If that's the actual problem, you'd just be masking it, and producing an invalid "x". Look here: func (r *Subid_info) Prepare_subid_logic(){ r.Second_subid_8=fmt.Sprintf("1%07v", r.Second_subid) > panic happens here. } r.Second_subid is in an invalid state which normal Go code could not c

Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread XXX ZZZ
I did but nothing detected. However there aren't any goroutined involved (except for the http request), other than that, this variable isn't shared among routines. El jueves, 2 de mayo de 2019, 14:54:42 (UTC-3), Ian Lance Taylor escribió: > > On Thu, May 2, 2019 at 10:31 AM XXX ZZZ > > wrote:

Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread Burak Serdar
On Thu, May 2, 2019 at 11:31 AM XXX ZZZ wrote: > > Hello, > > We are having a random panic on our go application that is happening once > every million requests or so, and so far we haven't been able to reproduce it > nor to even grasp what's going on. > > Basically our code goes like: > > type

Re: [go-nuts] Random panic in production with Sprintf

2019-05-02 Thread Ian Lance Taylor
On Thu, May 2, 2019 at 10:31 AM XXX ZZZ wrote: > > We are having a random panic on our go application that is happening once > every million requests or so, and so far we haven't been able to reproduce it > nor to even grasp what's going on. > > Basically our code goes like: > > type Subid_info

[go-nuts] Random panic in production with Sprintf

2019-05-02 Thread XXX ZZZ
Hello, We are having a random panic on our go application that is happening once every million requests or so, and so far we haven't been able to reproduce it nor to even grasp what's going on. Basically our code goes like: type Subid_info struct{ Affiliate_subid string Second_subi