Skip to content
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

runtime: invalid address on Plan 9 #7296

Closed
0intro opened this issue Feb 10, 2014 · 2 comments
Closed

runtime: invalid address on Plan 9 #7296

0intro opened this issue Feb 10, 2014 · 2 comments

Comments

@0intro
Copy link
Member

0intro commented Feb 10, 2014

What steps will reproduce the problem?

Run multiple times:

% all.rc

What is the expected output? What do you see instead?

Sometime, you can see an os/exec or runtime test failing.

--- FAIL: TestExtraFilesRace (0.52 seconds)
    exec_test.go:480: iteration 2, process A got:
        exec.test 244575: suicide: invalid address 0x16c41/220 in sys call pc=0x234c1
        exec.test 244575: suicide: bad address in notify
        fd3: listener 127.0.0.1:32800
        
        want:
        fd3: listener 127.0.0.1:32800
        
FAIL
FAIL    os/exec 1.468s

--- FAIL: TestInitDeadlock (0.34 seconds)
    crash_test.go:92: output does not start with "fatal error: all goroutines are asleep - deadlock!\n":
        go 248505: suicide: invalid address 0x5f0d1/220 in sys call pc=0x6ad71
        go 248505: suicide: bad address in notify
        fatal error: all goroutines are asleep - deadlock!
        
        goroutine 17 [syscall]:
        runtime.notetsleepg(0x3027ed9c, 0xf8475800, 0xd)
            /tmp/gobuilder/plan9-386-cnielsen-9623db1cea87/go/src/pkg/runtime/lock_sema.c:254 +0x70
        runtime.MHeap_Scavenger()
            /tmp/gobuilder/plan9-386-cnielsen-9623db1cea87/go/src/pkg/runtime/mheap.c:458 +0xc2
        runtime.goexit()
            /tmp/gobuilder/plan9-386-cnielsen-9623db1cea87/go/src/pkg/runtime/proc.c:1438
        
        goroutine 16 [select (no cases)]:
        main.init·1()
            /tmp/go-build053645721/main.go:4 +0x1d
        main.init()
            /tmp/go-build053645721/main.go:7 +0x3d
        exit status: 'main 248510: 2'
FAIL
FAIL    runtime 72.977s
@0intro
Copy link
Member Author

0intro commented Feb 13, 2014

Comment 1:

# go run run.go -- func8.go
incorrect output
go 1710: suicide: invalid address 0x44467/220 in sys call pc=0x6c72e
go 1710: suicide: bad address in notify
FAIL    func8.go    0.373s
cpu% acid 1710
/proc/1710/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
acid: asm(*PC)
runtime.rfork+0x2e 0x0006c72e   MOVL    AX,0x2c(BX)
runtime.rfork+0x31 0x0006c731   CALL    runtime.stackcheck(SB)
runtime.rfork+0x36 0x0006c736   MOVL    0x0(DX),DX
runtime.rfork+0x38 0x0006c738   MOVL    0x0(BX),BX
runtime.rfork+0x3a 0x0006c73a   PUSHL   SI
runtime.rfork+0x3b 0x0006c73b   CALL    runtime.emptyfunc(SB)
runtime.rfork+0x40 0x0006c740   POPL    SI
runtime.rfork+0x41 0x0006c741   CALL*   SI
runtime.rfork+0x43 0x0006c743   CALL    runtime.exit(SB)
runtime.rfork+0x48 0x0006c748   RET
runtime.rfork+0x49 0x0006c749   ADDB    AL,0x0(AX)
runtime.rfork+0x4b 0x0006c74b   ADDB    AL,0x0(AX)
runtime.rfork+0x4d 0x0006c74d   ADDB    AL,0x0(AX)
runtime.rfork+0x4f 0x0006c74f   ADDB    CL,0x6d75cc05(BX)
acid: �
echo kill > /proc/1710/ctl
cpu%

@0intro
Copy link
Member Author

0intro commented Feb 14, 2014

Comment 2:

Fixed by CL 64140043.

Status changed to Fixed.

@0intro 0intro added the fixed label Feb 14, 2014
@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

2 participants