Skip to content

runtime: exitsyscall: syscall frame is no longer valid (FreeBSD) #16136

Closed

Description

@sapiens-sapide

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go1.6.2 freebsd/amd64
  2. What operating system and processor architecture are you using (go env)?
    freebsd 10.0-RELEASE-p9
    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="freebsd"
    GOOS="freebsd"
    GOPATH="/usr/local/goland/"
    GORACE=""
    GOROOT="/usr/local/go"
    GOTOOLDIR="/usr/local/go/pkg/tool/freebsd_amd64"
    GO15VENDOREXPERIMENT="1"
    CC="cc"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
    CXX="clang++"
    CGO_ENABLED="1"
  3. What did you do?
    when I run go install for local projects or cloned projects, the installation (randomly !) fails with the following output:
unexpected fault address 0xc82048d500
fatal error: fault
[signal 0xa code=0xc addr=0xc82048d500 pc=0xc82048d500]

goroutine 7 [running]:
runtime.throw(0x9e4730, 0x5)
    /usr/local/go/src/runtime/panic.go:547 +0x90 fp=0xc820022580 sp=0xc820022568
runtime.sigpanic()
    /usr/local/go/src/runtime/sigpanic_unix.go:21 +0x1e4 fp=0xc8200225d0 sp=0xc820022580
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc8201f3a7c)
    /usr/local/go/src/runtime/sema.go:47 +0x26
sync.(*WaitGroup).Wait(0xc8201f3a70)
    /usr/local/go/src/sync/waitgroup.go:127 +0xb4
main.(*builder).do(0xc82031d0a0, 0xc8203e3110)
    /usr/local/go/src/cmd/go/build.go:1323 +0x3c6
main.runInstall(0xc87c60, 0xc8200701d0, 0x1, 0x1)
    /usr/local/go/src/cmd/go/build.go:634 +0x4e5
main.main()
    /usr/local/go/src/cmd/go/main.go:181 +0x783

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1

goroutine 20 [syscall]:
os/signal.signal_recv(0x0)
    /usr/local/go/src/runtime/sigqueue.go:116 +0x132
os/signal.loop()
    /usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
    /usr/local/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 3 [semacquire]:
sync.runtime_Semacquire(0xcac1ec)
    /usr/local/go/src/runtime/sema.go:47 +0x26
sync.(*RWMutex).RLock(0xcac1e0)
    /usr/local/go/src/sync/rwmutex.go:37 +0x58
os.Pipe(0x9, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/pipe_bsd.go:17 +0x4f
os/exec.(*Cmd).writerDescriptor(0xc820163680, 0x800dbc800, 0xc820198fc0, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:228 +0x27a
os/exec.(*Cmd).stdout(0xc820163680, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:204 +0x4c
os/exec.(*Cmd).Start(0xc820163680, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:316 +0x2f4
os/exec.(*Cmd).Run(0xc820163680, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:259 +0x2d
main.(*builder).runOut(0xc82031d0a0, 0xc8201c94a0, 0x54, 0xc8202b44c0, 0x3e, 0x0, 0x0, 0x0, 0xc8204211e0, 0x14, ...)
    /usr/local/go/src/cmd/go/build.go:2049 +0x364
main.gcToolchain.gc(0xc82031d0a0, 0xc82039bc00, 0xc82006dc80, 0x57, 0xc82006dbc0, 0x5b, 0x0, 0xc82045a6e0, 0x2, 0x2, ...)
    /usr/local/go/src/cmd/go/build.go:2310 +0x1261
main.(*gcToolchain).gc(0xcac038, 0xc82031d0a0, 0xc82039bc00, 0xc82006dc80, 0x57, 0xc82006dbc0, 0x5b, 0x0, 0xc82045a6e0, 0x2, ...)
    <autogenerated>:3 +0x18e
main.(*builder).build(0xc82031d0a0, 0xc82015bee0, 0x0, 0x0)
    /usr/local/go/src/cmd/go/build.go:1484 +0x224c
main.(*builder).do.func1(0xc82015bee0)
    /usr/local/go/src/cmd/go/build.go:1257 +0x3b2
main.(*builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1314 +0x156
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 4 [semacquire]:
sync.runtime_Semacquire(0xc82031d0e4)
    /usr/local/go/src/runtime/sema.go:47 +0x26
sync.(*Mutex).Lock(0xc82031d0e0)
    /usr/local/go/src/sync/mutex.go:83 +0x1c4
main.(*builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1311 +0xfc
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 5 [semacquire]:
sync.runtime_Semacquire(0xc82031d0e4)
    /usr/local/go/src/runtime/sema.go:47 +0x26
sync.(*Mutex).Lock(0xc82031d0e0)
    /usr/local/go/src/sync/mutex.go:83 +0x1c4
main.(*builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1311 +0xfc
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 6 [select]:
main.(*builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1304 +0x1cf
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 8 [semacquire]:
runtime.gopark(0x0, 0xc820022f58, 0xc82006c660, 0xc82006c660, 0xc82006c660, 0x4dcfa0)
    /usr/local/go/src/runtime/proc.go:262 +0x163
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 9 [semacquire]:
sync.runtime_Semacquire(0xc82031d0e4)
    /usr/local/go/src/runtime/sema.go:47 +0x26
sync.(*Mutex).Lock(0xc82031d0e0)
    /usr/local/go/src/sync/mutex.go:83 +0x1c4
main.(*builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1311 +0xfc
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

goroutine 10 [running]:
    goroutine running on other thread; stack unavailable
created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

If I run the go build command on the same package, build is OK.

Activity

  1. davecheney commented on Jun 21, 2016

    @davecheney
    Contributor

    What is the complete failing command ?

    On Tue, Jun 21, 2016 at 8:44 PM, Stanislas SABATIER <
    notifications@github.com> wrote:

    Please answer these questions before submitting your issue. Thanks!

    What version of Go are you using (go version)?
    go1.6.2 freebsd/amd64
    2.

    What operating system and processor architecture are you using (go env
    )?
    freebsd 10.0-RELEASE-p9
    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="freebsd"
    GOOS="freebsd"
    GOPATH="/usr/local/goland/"
    GORACE=""
    GOROOT="/usr/local/go"
    GOTOOLDIR="/usr/local/go/pkg/tool/freebsd_amd64"
    GO15VENDOREXPERIMENT="1"
    CC="cc"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
    CXX="clang++"
    CGO_ENABLED="1"
    3.

    What did you do?
    when I run go install for local projects or cloned projects, the
    installation (randomly !) fails with the following output:

    unexpected fault address 0xc82048d500
    fatal error: fault
    [signal 0xa code=0xc addr=0xc82048d500 pc=0xc82048d500]

    goroutine 7 [running]:
    runtime.throw(0x9e4730, 0x5)
    /usr/local/go/src/runtime/panic.go:547 +0x90 fp=0xc820022580 sp=0xc820022568
    runtime.sigpanic()
    /usr/local/go/src/runtime/sigpanic_unix.go:21 +0x1e4 fp=0xc8200225d0 sp=0xc820022580
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 1 [semacquire]:
    sync.runtime_Semacquire(0xc8201f3a7c)
    /usr/local/go/src/runtime/sema.go:47 +0x26
    sync.(_WaitGroup).Wait(0xc8201f3a70)
    /usr/local/go/src/sync/waitgroup.go:127 +0xb4
    main.(_builder).do(0xc82031d0a0, 0xc8203e3110)
    /usr/local/go/src/cmd/go/build.go:1323 +0x3c6
    main.runInstall(0xc87c60, 0xc8200701d0, 0x1, 0x1)
    /usr/local/go/src/cmd/go/build.go:634 +0x4e5
    main.main()
    /usr/local/go/src/cmd/go/main.go:181 +0x783

    goroutine 17 [syscall, locked to thread]:
    runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1

    goroutine 20 [syscall]:
    os/signal.signal_recv(0x0)
    /usr/local/go/src/runtime/sigqueue.go:116 +0x132
    os/signal.loop()
    /usr/local/go/src/os/signal/signal_unix.go:22 +0x18
    created by os/signal.init.1
    /usr/local/go/src/os/signal/signal_unix.go:28 +0x37

    goroutine 3 [semacquire]:
    sync.runtime_Semacquire(0xcac1ec)
    /usr/local/go/src/runtime/sema.go:47 +0x26
    sync.(_RWMutex).RLock(0xcac1e0)
    /usr/local/go/src/sync/rwmutex.go:37 +0x58
    os.Pipe(0x9, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/pipe_bsd.go:17 +0x4f
    os/exec.(_Cmd).writerDescriptor(0xc820163680, 0x800dbc800, 0xc820198fc0, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:228 +0x27a
    os/exec.(_Cmd).stdout(0xc820163680, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:204 +0x4c
    os/exec.(_Cmd).Start(0xc820163680, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:316 +0x2f4
    os/exec.(_Cmd).Run(0xc820163680, 0x0, 0x0)
    /usr/local/go/src/os/exec/exec.go:259 +0x2d
    main.(_builder).runOut(0xc82031d0a0, 0xc8201c94a0, 0x54, 0xc8202b44c0, 0x3e, 0x0, 0x0, 0x0, 0xc8204211e0, 0x14, ...)
    /usr/local/go/src/cmd/go/build.go:2049 +0x364
    main.gcToolchain.gc(0xc82031d0a0, 0xc82039bc00, 0xc82006dc80, 0x57, 0xc82006dbc0, 0x5b, 0x0, 0xc82045a6e0, 0x2, 0x2, ...)
    /usr/local/go/src/cmd/go/build.go:2310 +0x1261
    main.(_gcToolchain).gc(0xcac038, 0xc82031d0a0, 0xc82039bc00, 0xc82006dc80, 0x57, 0xc82006dbc0, 0x5b, 0x0, 0xc82045a6e0, 0x2, ...)
    :3 +0x18e
    main.(_builder).build(0xc82031d0a0, 0xc82015bee0, 0x0, 0x0)
    /usr/local/go/src/cmd/go/build.go:1484 +0x224c
    main.(_builder).do.func1(0xc82015bee0)
    /usr/local/go/src/cmd/go/build.go:1257 +0x3b2
    main.(_builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1314 +0x156
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 4 [semacquire]:
    sync.runtime_Semacquire(0xc82031d0e4)
    /usr/local/go/src/runtime/sema.go:47 +0x26
    sync.(_Mutex).Lock(0xc82031d0e0)
    /usr/local/go/src/sync/mutex.go:83 +0x1c4
    main.(_builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1311 +0xfc
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 5 [semacquire]:
    sync.runtime_Semacquire(0xc82031d0e4)
    /usr/local/go/src/runtime/sema.go:47 +0x26
    sync.(_Mutex).Lock(0xc82031d0e0)
    /usr/local/go/src/sync/mutex.go:83 +0x1c4
    main.(_builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1311 +0xfc
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 6 [select]:
    main.(_builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1304 +0x1cf
    created by main.(_builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 8 [semacquire]:
    runtime.gopark(0x0, 0xc820022f58, 0xc82006c660, 0xc82006c660, 0xc82006c660, 0x4dcfa0)
    /usr/local/go/src/runtime/proc.go:262 +0x163
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 9 [semacquire]:
    sync.runtime_Semacquire(0xc82031d0e4)
    /usr/local/go/src/runtime/sema.go:47 +0x26
    sync.(_Mutex).Lock(0xc82031d0e0)
    /usr/local/go/src/sync/mutex.go:83 +0x1c4
    main.(_builder).do.func2(0xc8201f3a70, 0xc82031d0a0, 0xc82045a560)
    /usr/local/go/src/cmd/go/build.go:1311 +0xfc
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    goroutine 10 [running]:
    goroutine running on other thread; stack unavailable
    created by main.(*builder).do
    /usr/local/go/src/cmd/go/build.go:1320 +0x39e

    If I run the go build command on the same package, build is OK.

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub
    #16136, or mute the thread
    https://github.com/notifications/unsubscribe/AAAcA8STlVGcTiZG5Cq9vPCzPzbAVtZhks5qN8B7gaJpZM4I6mBf
    .

  2. sapiens-sapide commented on Jun 21, 2016

    @sapiens-sapide
    Author

    For example : go install github.com/Masterminds/glide crashes but go build github.com/Masterminds/glide is OK.

  3. davecheney commented on Jun 21, 2016

    @davecheney
    Contributor

    Do you have permission to write to $GOPATH ?

    On Tue, Jun 21, 2016 at 8:59 PM, Stanislas SABATIER <
    notifications@github.com> wrote:

    For example : go install github.com/Masterminds/glide crashes but go
    build github.com/Masterminds/glide is OK.

    —
    You are receiving this because you commented.
    Reply to this email directly, view it on GitHub
    #16136 (comment), or mute
    the thread
    https://github.com/notifications/unsubscribe/AAAcAwoRdBnCGEuoo8Dt0lyRDoGhwy-7ks5qN8P8gaJpZM4I6mBf
    .

  4. sapiens-sapide commented on Jun 21, 2016

    @sapiens-sapide
    Author

    yes, I'm root

  5. changed the title [-]go install randomly crash on freeBSD[/-] [+]cmd/go: go install randomly crash on freeBSD[/+] on Jun 21, 2016
  6. added this to the Go1.7Maybe milestone on Jun 21, 2016
  7. ianlancetaylor commented on Jun 21, 2016

    @ianlancetaylor
    Contributor

    This is failing with signal 10, which is SIGBUS. The address and the PC value are the same, suggesting that the program has branched to non-executable code. The address is in the heap, so it is naturally non-executable. The question is why and how the program branched to that location. This can only be memory corruption of some sort.

    The stack trace seems to show that syscall.ForkLock is held at the point of the crash, but I don't see any goroutine actually doing a fork/exec. I see a goroutine starting a fork/exec.

    Holding the fork lock suggests this may be related to #15658, another FreeBSD issue that somehow involves the fork/exec code.

  8. sapiens-sapide commented on Jun 22, 2016

    @sapiens-sapide
    Author

    FYI, this bug appeared after I upgraded go from 1.4.2 to 1.6.2.

  9. ianlancetaylor commented on Jun 22, 2016

    @ianlancetaylor
    Contributor

    How reproducible is this problem?

  10. changed the title [-]cmd/go: go install randomly crash on freeBSD[/-] [+]cmd/go: go install randomly crash on FreeBSD[/+] on Jun 23, 2016
  11. mikioh commented on Jun 23, 2016

    @mikioh
    Contributor

    I guess that you are probably trying to make stuff by using both go1.4 and go1.6 packages. In general, it leads to messed up executable images. What happens when you run sudo pkg delete -y go && sudo pkg install -y go && rm -rf $GOPATH/pkg && go install -x -v github.com/Masterminds/glide?

  12. sapiens-sapide commented on Jun 23, 2016

    @sapiens-sapide
    Author

    Hello,
    go install -x -v github.com/Masterminds/glide worked after removing and reinstalling go ! \o/
    BUT, I tried to do the same with two other popular softwares github.com/coreos/etcd and github.com/gogits/gogs => they both failed to install with the same error output…

  13. sapiens-sapide commented on Jun 23, 2016

    @sapiens-sapide
    Author

    @ianlancetaylor : to reproduce, just try to go get and go install software from popular repositories (gogs, etcd, beego…). With go 1.6.2 on a freeBSD 10.0-RELEASE-p9, many fail to do the job…

  14. mikioh commented on Jun 23, 2016

    @mikioh
    Contributor

    @sapiens-sapide,

    they both failed to install with the same error output…

    Unfortunately it's pretty hard to read out useful information between above lines. If you believe that your issue is a bug on language spec. or standard library/commands, please describe the following:

    1. What version of Go are you using (`go version`)?
    
    (already answered, skip)
    
    2. What operating system and processor architecture are you using (`go env`)?
    
    (already answered, skip)
    
    3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.
    
    4. What did you expect to see?
    
    5. What did you see instead?
    

    In your case, the recipe must be a complete history of commands. Thanks.

  15. 20 remaining items

  16. mikioh commented on Jul 1, 2016

    @mikioh
    Contributor

    Which exact FreeBSD version are you trying?

    From 10.0 through 10.3 VM on several x64/amd64 processors (up to 2 cores) w/ 1GiB memory. I always disable any processor's virtualization technology such as VT-x/hyperthreading to avoid facing a few critical kernel bugs fixed in the latest 10.3.

  17. ianlancetaylor commented on Jul 7, 2016

    @ianlancetaylor
    Contributor

    Still don't know what is happening here. Postponing to 1.8.

  18. sapiens-sapide commented on Jul 11, 2016

    @sapiens-sapide
    Author

    for information — if it may help to find out what's happening — here is another crash log from caddy on the same machine. Caddy server works fine for 24 to 48 hours, until it crashes with the following output :

    runtime: nonempty check fails b.log[0]= 0 b.log[1]= 0 b.log[2]= 0 b.log[3]= 0
    fatal error: workbuf is empty
    
    goroutine 20 [running]:
    runtime.throw(0xc8f510, 0x10)
        /usr/local/go/src/runtime/panic.go:530 +0x90 fp=0xc820266e80 sp=0xc820266e68
    runtime.(*workbuf).checknonempty(0x80100d940)
        /usr/local/go/src/runtime/mgcwork.go:321 +0x153 fp=0xc820266eb8 sp=0xc820266e80
    runtime.trygetfull(0xa7, 0xc81fffadd8)
        /usr/local/go/src/runtime/mgcwork.go:385 +0x55 fp=0xc820266ed8 sp=0xc820266eb8
    runtime.(*gcWork).tryGet(0xc820017220, 0xc820017220)
        /usr/local/go/src/runtime/mgcwork.go:150 +0x7c fp=0xc820266f08 sp=0xc820266ed8
    runtime.gcDrain(0xc820017220, 0x6)
        /usr/local/go/src/runtime/mgcmark.go:833 +0x22a fp=0xc820266f40 sp=0xc820266f08
    runtime.gcBgMarkWorker(0xc820016000)
        /usr/local/go/src/runtime/mgc.go:1432 +0x25f fp=0xc820266fb8 sp=0xc820266f40
    runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc820266fc0 sp=0xc820266fb8
    created by runtime.gcBgMarkStartWorkers
        /usr/local/go/src/runtime/mgc.go:1329 +0x92
    
    goroutine 1 [semacquire, 960 minutes]:
    sync.runtime_Semacquire(0xfc174c)
        /usr/local/go/src/runtime/sema.go:47 +0x26
    sync.(*WaitGroup).Wait(0xfc1740)
        /usr/local/go/src/sync/waitgroup.go:127 +0xb4
    github.com/mholt/caddy/caddy.Wait()
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/caddy.go:302 +0x23
    main.main()
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/main.go:109 +0x6f1
    
    goroutine 5 [syscall, 960 minutes]:
    os/signal.signal_recv(0x0)
        /usr/local/go/src/runtime/sigqueue.go:116 +0x132
    os/signal.loop()
        /usr/local/go/src/os/signal/signal_unix.go:22 +0x18
    created by os/signal.init.1
        /usr/local/go/src/os/signal/signal_unix.go:28 +0x37
    
    goroutine 6 [chan receive, 960 minutes]:
    github.com/mholt/caddy/caddy.trapSignalsCrossPlatform.func1()
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/sigtrap.go:31 +0x10d
    created by github.com/mholt/caddy/caddy.trapSignalsCrossPlatform
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/sigtrap.go:49 +0x2b
    
    goroutine 7 [chan receive, 960 minutes]:
    github.com/mholt/caddy/caddy.trapSignalsPosix.func1()
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/sigtrap_posix.go:19 +0x36c
    created by github.com/mholt/caddy/caddy.trapSignalsPosix
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/sigtrap_posix.go:78 +0x2b
    
    goroutine 17 [select, 960 minutes, locked to thread]:
    runtime.gopark(0xd47fa8, 0xc82001e728, 0xc06cb8, 0x6, 0x18, 0x2)
        /usr/local/go/src/runtime/proc.go:262 +0x163
    runtime.selectgoImpl(0xc82001e728, 0x0, 0x18)
        /usr/local/go/src/runtime/select.go:392 +0xa67
    runtime.selectgo(0xc82001e728)
        /usr/local/go/src/runtime/select.go:215 +0x12
    runtime.ensureSigM.func1()
        /usr/local/go/src/runtime/signal1_unix.go:279 +0x340
    runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1
    
    goroutine 54 [select]:
    github.com/mholt/caddy/caddy/https.maintainAssets(0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/https/maintain.go:34 +0x67d
    created by github.com/mholt/caddy/caddy/https.Activate
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/https/https.go:76 +0x1de
    
    goroutine 97 [chan receive, 960 minutes]:
    github.com/mholt/caddy/server.newGracefulListener.func1(0xc820056660)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/graceful.go:14 +0x3e
    created by github.com/mholt/caddy/server.newGracefulListener
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/graceful.go:19 +0xe3
    
    goroutine 63 [IO wait, 11 minutes]:
    net.runtime_pollWait(0x800fd6d58, 0x72, 0x0)
        /usr/local/go/src/runtime/netpoll.go:160 +0x60
    net.(*pollDesc).Wait(0xc820412060, 0x72, 0x0, 0x0)
        /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
    net.(*pollDesc).WaitRead(0xc820412060, 0x0, 0x0)
        /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
    net.(*netFD).accept(0xc820412000, 0x0, 0x800fd6f68, 0xc8204f6720)
        /usr/local/go/src/net/fd_unix.go:426 +0x27c
    net.(*TCPListener).AcceptTCP(0xc820026000, 0xbbca09, 0x0, 0x0)
        /usr/local/go/src/net/tcpsock_posix.go:254 +0x4d
    github.com/mholt/caddy/server.tcpKeepAliveListener.Accept(0xc820026000, 0x0, 0x0, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:406 +0x41
    github.com/mholt/caddy/server.(*gracefulListener).Accept(0xc820056660, 0x0, 0x0, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/graceful.go:36 +0x63
    net/http.(*Server).Serve(0xc820487000, 0x8012ed148, 0xc820056660, 0x0, 0x0)
        /usr/local/go/src/net/http/server.go:2117 +0x129
    github.com/mholt/caddy/server.(*Server).serve(0xc820460480, 0x8012ed0c8, 0xc820026000, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:178 +0x422
    github.com/mholt/caddy/server.(*Server).ListenAndServe(0xc820460480, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:152 +0x1e2
    github.com/mholt/caddy/caddy.startServers.func1(0xc8204603c0, 0xc820460480, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/caddy.go:243 +0x13d
    created by github.com/mholt/caddy/caddy.startServers
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/caddy.go:245 +0x567
    
    goroutine 81 [IO wait, 1 minutes]:
    net.runtime_pollWait(0x800fd6e18, 0x72, 0x0)
        /usr/local/go/src/runtime/netpoll.go:160 +0x60
    net.(*pollDesc).Wait(0xc820378a70, 0x72, 0x0, 0x0)
        /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
    net.(*pollDesc).WaitRead(0xc820378a70, 0x0, 0x0)
        /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
    net.(*netFD).accept(0xc820378a10, 0x0, 0x800fd6f68, 0xc820349880)
        /usr/local/go/src/net/fd_unix.go:426 +0x27c
    net.(*TCPListener).AcceptTCP(0xc82037a328, 0x0, 0x0, 0x0)
        /usr/local/go/src/net/tcpsock_posix.go:254 +0x4d
    github.com/mholt/caddy/server.tcpKeepAliveListener.Accept(0xc82037a328, 0x0, 0x0, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:406 +0x41
    github.com/mholt/caddy/server.(*gracefulListener).Accept(0xc8204ef920, 0x0, 0x0, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/graceful.go:36 +0x63
    crypto/tls.(*listener).Accept(0xc82023f160, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/crypto/tls/tls.go:52 +0x60
    net/http.(*Server).Serve(0xc820487080, 0x8011efae0, 0xc82023f160, 0x0, 0x0)
        /usr/local/go/src/net/http/server.go:2117 +0x129
    github.com/mholt/caddy/server.serveTLS(0xc820460540, 0x8011efae0, 0xc82023f160, 0xc8202406e0, 0x4, 0x4, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:225 +0x2ca
    github.com/mholt/caddy/server.(*Server).serve(0xc820460540, 0x8012ed0c8, 0xc82037a328, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:174 +0x330
    github.com/mholt/caddy/server.(*Server).ListenAndServe(0xc820460540, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/server.go:152 +0x1e2
    github.com/mholt/caddy/caddy.startServers.func1(0xc8204603c0, 0xc820460540, 0x0, 0x0)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/caddy.go:243 +0x13d
    created by github.com/mholt/caddy/caddy.startServers
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/caddy/caddy.go:245 +0x567
    
    goroutine 83 [syscall]:
    syscall.Syscall6(0x7, 0x1347a, 0xc82003ba4c, 0x0, 0xc82050a000, 0x0, 0x0, 0x411e62, 0xc82027f668, 0x44f780)
        /usr/local/go/src/syscall/asm_freebsd_amd64.s:44 +0x5
    syscall.wait4(0x1347a, 0xc82003ba4c, 0x0, 0xc82050a000, 0x90, 0x0, 0x0)
        /usr/local/go/src/syscall/zsyscall_freebsd_amd64.go:34 +0x7f
    syscall.Wait4(0x1347a, 0xc82003ba94, 0x0, 0xc82050a000, 0xc820026018, 0x0, 0x0)
        /usr/local/go/src/syscall/syscall_bsd.go:129 +0x55
    os.(*Process).wait(0xc82033a160, 0x15, 0x0, 0x0)
        /usr/local/go/src/os/exec_unix.go:22 +0x105
    os.(*Process).Wait(0xc82033a160, 0x0, 0x0, 0x0)
        /usr/local/go/src/os/doc.go:49 +0x2d
    os/exec.(*Cmd).Wait(0xc82027f540, 0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:396 +0x211
    github.com/abiosoft/caddy-git.runCmd(0xc820490660, 0x12, 0xc82047e210, 0x3, 0x3, 0xc820141170, 0x20, 0x0, 0x0)
        /home/caddy/go/src/github.com/abiosoft/caddy-git/commands.go:186 +0x19a
    github.com/abiosoft/caddy-git.(*Repo).gitCmd(0xc8204840f0, 0xc82047e210, 0x3, 0x3, 0xc820141170, 0x20, 0x0, 0x0)
        /home/caddy/go/src/github.com/abiosoft/caddy-git/git.go:178 +0xc7
    github.com/abiosoft/caddy-git.(*Repo).pull(0xc8204840f0, 0x0, 0x0)
        /home/caddy/go/src/github.com/abiosoft/caddy-git/git.go:104 +0x1fa
    github.com/abiosoft/caddy-git.(*Repo).Pull(0xc8204840f0, 0x0, 0x0)
        /home/caddy/go/src/github.com/abiosoft/caddy-git/git.go:70 +0x174
    github.com/abiosoft/caddy-git.Start.func1(0xc8204840f0, 0xc820491c00)
        /home/caddy/go/src/github.com/abiosoft/caddy-git/service.go:34 +0xec
    created by github.com/abiosoft/caddy-git.Start
        /home/caddy/go/src/github.com/abiosoft/caddy-git/service.go:43 +0x110
    
    goroutine 86 [select, 60 minutes]:
    github.com/abiosoft/caddy-git.Start.func1(0xc8204842d0, 0xc82023e640)
        /home/caddy/go/src/github.com/abiosoft/caddy-git/service.go:32 +0x26c
    created by github.com/abiosoft/caddy-git.Start
        /home/caddy/go/src/github.com/abiosoft/caddy-git/service.go:43 +0x110
    
    goroutine 89 [chan receive, 960 minutes]:
    github.com/mholt/caddy/server.newGracefulListener.func1(0xc8204ef920)
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/graceful.go:14 +0x3e
    created by github.com/mholt/caddy/server.newGracefulListener
        /tmp/custombuild_3675_930774383/src/github.com/mholt/caddy/server/graceful.go:19 +0xe3
    
  19. ianlancetaylor commented on Jul 20, 2016

    @ianlancetaylor
    Contributor

    I just ran g.sh for 30 minutes with no problems on a FreeBSD 10.1 system running on GCE. How long does it usually take you to see a problem?

  20. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Sep 30, 2016
  21. rsc commented on Oct 20, 2016

    @rsc
    Contributor

    Seems likely dup of #15658.
    Also seems likely to be a kernel problem.

  22. modified the milestones: Go1.8Maybe, Go1.8Early on Oct 20, 2016
  23. changed the title [-]runtime: exitsyscall: syscall frame is no longer valid[/-] [+]runtime: exitsyscall: syscall frame is no longer valid (FreeBSD)[/+] on Oct 20, 2016
  24. rsc commented on Nov 2, 2016

    @rsc
    Contributor

    Cannot reproduce, and reporting a problem in a possibly very different code base (Go from three months ago). Closing. Please file a new issue if new crashes arise.

  25. locked and limited conversation to collaborators on Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-FreeBSD

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions