Skip to content

runtime: TestTimerFairness{2} occasionally hangs #7099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
randall77 opened this issue Jan 10, 2014 · 4 comments
Closed

runtime: TestTimerFairness{2} occasionally hangs #7099

randall77 opened this issue Jan 10, 2014 · 4 comments
Milestone

Comments

@randall77
Copy link
Contributor

Maybe it isn't so fair after all...

I saw 3 of these in an overnight run of all.bash.  The test hangs and gets killed after
6 minutes.

SIGQUIT: quit^M                                                                         
                                                                                
PC=0xf776342e^M                                                                         
                                                                                
^M                                                                                      
                                                                                
^M                                                                                      
                                                                                
goroutine 1 [chan receive]:^M                                                           
                                                                                
testing.RunTests(0x8270818, 0x84a53e0, 0x4f, 0x4f, 0x1)^M                               
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:472 +0x79d^M                                                                          
testing.Main(0x8270818, 0x84a53e0, 0x4f, 0x4f, 0x84a6800, ...)^M                        
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:403 +0x6b^M                                                                           
main.main()^M                                                                           
                                                                                
        /tmp/go-build192147761/runtime/_test/_testmain.go:513 +0x83^M                                                                                                    
^M                                                                                      
                                                                                
goroutine 60 [finalizer wait]:^M                                                        
                                                                                
runtime.park(0x8055240, 0x84a78b8, 0x84a668e)^M                                         
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc.c:1341 +0x65^M                                                                              
runfinq()^M                                                                             
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/mgc0.c:2486 +0x7b^M                                                                              
runtime.goexit()^M                                                                      
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc.c:1393^M                                                                                    
^M                                                                                      
                                                                                
goroutine 160309 [runnable]:^M                                                          
                                                                                
runtime_test.TestTimerFairness(0x188ef6c0)^M                                            
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:157 +0x173^M                                                                        
testing.tRunner(0x188ef6c0, 0x84a56e0)^M                                                
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:391 +0x88^M                                                                           
created by testing.RunTests^M                                                           
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:471 +0x782^M                                                                          
^M                                                                                      
                                                                                
goroutine 160311 [running]:^M                                                           
                                                                                
        goroutine running on other thread; stack unavailable^M                                                                                                           
created by runtime_test.TestTimerFairness^M                                             
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:152 +0xca^M                                                                         
^M                                                                                      
                                                                                
goroutine 160310 [running]:^M                                                           
                                                                                
        goroutine running on other thread; stack unavailable^M                                                                                                           
created by runtime_test.TestTimerFairness^M                                             
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:152 +0xca^M                                                                         

eax     0xf0^M                                                                          
                                                                                
ebx     0x84a97b4^M                                                                     
                                                                                
ecx     0x0^M                                                                           
                                                                                
edx     0x0^M                                                                           
                                                                                
edi     0x0^M                                                                           
                                                                                
esi     0x0^M                                                                           
                                                                                
ebp     0x0^M                                                                           
                                                                                
esp     0xffa7b5f4^M                                                                    
                                                                                
eip     0xf776342e^M                                                                    
                                                                                
eflags  0x296^M                                                                         
                                                                                
cs      0x23^M                                                                          
                                                                                
fs      0x0^M                                                                           
                                                                                
gs      0x3f^M                                                                          
                                                                                
*** Test killed with quit: ran too long (6m0s).^M                                       
                                                                                
FAIL    runtime 360.051s^M                                                              
                                                                                



SIGQUIT: quit^M                                                                         
                                                                                
PC=0xf77d242e^M                                                                         
                                                                                
^M                                                                                      
                                                                                
^M                                                                                      
                                                                                
goroutine 1 [chan receive]:^M                                                           
                                                                                
testing.RunTests(0x8270818, 0x84a53e0, 0x4f, 0x4f, 0x1)^M                               
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:472 +0x79d^M                                                                          
testing.Main(0x8270818, 0x84a53e0, 0x4f, 0x4f, 0x84a6800, ...)^M                        
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:403 +0x6b^M                                                                           
main.main()^M                                                                           
                                                                                
        /tmp/go-build861571265/runtime/_test/_testmain.go:513 +0x83^M                                                                                                    
^M                                                                                      
                                                                                
goroutine 61 [finalizer wait]:^M                                                        
                                                                                
runtime.park(0x8055240, 0x84a78b8, 0x84a668e)^M                                         
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc.c:1341 +0x65^M                                                                              
runfinq()^M                                                                             
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/mgc0.c:2486 +0x7b^M                                                                              
runtime.goexit()^M                                                                      
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc.c:1393^M                                                                                    
^M                                                                                      
                                                                                
goroutine 240491 [running]:^M                                                           
                                                                                
        goroutine running on other thread; stack unavailable^M                                                                                                           
created by runtime_test.TestTimerFairness^M                                             
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:152 +0xca^M                                                                         
^M                                                                                      
                                                                                
goroutine 240494 [running]:^M                                                           
                                                                                
        goroutine running on other thread; stack unavailable^M                                                                                                           
created by runtime_test.TestTimerFairness2^M                                            
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:183 +0xca^M                                                                         
^M                                                                                      
                                                                                
goroutine 240492 [running]:^M                                                           
                                                                                
        goroutine running on other thread; stack unavailable^M                                                                                                           
created by runtime_test.TestTimerFairness^M                                             
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:152 +0xca^M                                                                         
^M                                                                                      
                                                                                
goroutine 240496 [running]:^M                                                           
                                                                                
        goroutine running on other thread; stack unavailable^M                                                                                                           
^M                                                                                      
                                                                                
goroutine 240493 [chan receive]:^M                                                      
                                                                                
runtime_test.TestTimerFairness2(0x187476c0)^M                                           
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/runtime/proc_test.go:186 +0x106^M                                                                        
testing.tRunner(0x187476c0, 0x84a56ec)^M                                                
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:391 +0x88^M                                                                           
created by testing.RunTests^M                                                           
                                                                                
        /usr/local/google/home/khr/sandbox/go-issue7083/src/pkg/testing/testing.go:471 +0x782^M                                                                          

eax     0xf0^M                                                                          
                                                                                
ebx     0x84a97b4^M                                                                     
                                                                                
ecx     0x0^M                                                                           
                                                                                
edx     0x0^M                                                                           
                                                                                
edi     0x0^M                                                                           
                                                                                
esi     0x0^M                                                                           
                                                                                
ebp     0x0^M                                                                           
                                                                                
esp     0xffaa7034^M                                                                    
                                                                                
eip     0xf77d242e^M                                                                    
                                                                                
eflags  0x296^M                                                                         
                                                                                
cs      0x23^M                                                                          
                                                                                
fs      0x0^M                                                                           
                                                                                
gs      0x3f^M                                                                          
                                                                                
*** Test killed with quit: ran too long (6m0s).^M                                       
                                                                                
FAIL    runtime 360.056s^M
@dvyukov
Copy link
Member

dvyukov commented Jan 11, 2014

Comment 1:

What was the value of GOMAXPROCS? It seems that it was not 1.
How frequently does it happen? How many times have you seen this?

@randall77
Copy link
Contributor Author

Comment 2:

I saw it 3 times in 448 runs of all.bash.
They were during this line in run.bash:
  GOMAXPROCS=2 go test runtime -short -timeout=$(expr 300 \* $timeout_scale)s - cpu=1,2,4

@dvyukov
Copy link
Member

dvyukov commented Jan 16, 2014

Comment 3:

Mailed https://golang.org/cl/53120043

Labels changed: added release-go1.3, repo-main.

Status changed to Started.

@dvyukov
Copy link
Member

dvyukov commented Jan 21, 2014

Comment 4:

This issue was closed by revision b039abf.

Status changed to Fixed.

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015
@rsc rsc removed the release-go1.3 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants