You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
1. the issue can be repro with the following code:
package main
import ( "time"; "fmt" )
func main() {
t0 := time.NewTicker(1e9)
t0.Stop()
time.Sleep(1e9)
for i := 0; i < 3; i++ {
ticker := time.NewTicker(5e8)
select {
case <-ticker.C:
fmt.Printf("time out for reqest %d\n", i)
}
ticker.Stop()
}
fmt.Printf("client exit\n")
}
2. should see 3 "time out" printouts
3. deadlock instead
What is the expected output? What do you see instead?
2. should see 3 "time out" printouts
3. deadlock instead
What is your $GOOS? $GOARCH?
GOARCH=386
GOOS=linux
Which revision are you using? (hg identify)
db4262ce882d+ release.2010-02-04/release
Please provide any additional information below.
tried some changes to tick.go (attached), seems working, not sure if it is
a complete fix.
by yglgogo:
Attachments:
The text was updated successfully, but these errors were encountered: