Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

random panic on fleetctl start/stop #635

Closed
xh3b4sd opened this issue Jul 9, 2014 · 3 comments
Closed

random panic on fleetctl start/stop #635

xh3b4sd opened this issue Jul 9, 2014 · 3 comments

Comments

@xh3b4sd
Copy link

xh3b4sd commented Jul 9, 2014

Hey there,

just wanted to start/stop some units and I am getting randomly the following go panics. It is not really reproducable, but hope the panic output helps to investigate. I am on coreos 353.0.0. Thanks.

panic: runtime error: index out of range [recovered]
    panic: interface conversion: interface is runtime.errorCString, not tabwriter.osError [recovered]
    panic: interface conversion: interface is *runtime.TypeAssertionError, not tabwriter.osError

goroutine 278 [running]:
runtime.panic(0x714400, 0xc2100a7580)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
text/tabwriter.handlePanic(0x7f566f500d40)
    /usr/lib/go/src/pkg/text/tabwriter/tabwriter.go:439 +0x4e
runtime.panic(0x714400, 0xc2100a7540)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
text/tabwriter.handlePanic(0x7f566f500c50)
    /usr/lib/go/src/pkg/text/tabwriter/tabwriter.go:439 +0x4e
runtime.panic(0x711100, 0xb81fd7)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
text/tabwriter.(*Writer).writeLines(0xc210084000, 0x0, 0x0, 0x2, 0x41)
    /usr/lib/go/src/pkg/text/tabwriter/tabwriter.go:262 +0x5b3
text/tabwriter.(*Writer).format(0xc210084000, 0x0, 0x0, 0x2, 0x1)
    /usr/lib/go/src/pkg/text/tabwriter/tabwriter.go:370 +0x307
text/tabwriter.(*Writer).Flush(0xc210084000, 0x0, 0x0)
    /usr/lib/go/src/pkg/text/tabwriter/tabwriter.go:462 +0xce
text/tabwriter.(*Writer).Write(0xc210084000, 0xc21009b000, 0x42, 0x150, 0x42, ...)
    /usr/lib/go/src/pkg/text/tabwriter/tabwriter.go:497 +0x3e9
fmt.Fprintln(0x7f566f6ae800, 0xc210084000, 0x7f566f500e08, 0x1, 0x1, ...)
    /usr/lib/go/src/pkg/fmt/print.go:287 +0xa3
main.assertJobState(0xc210105220, 0x18, 0x7965b0, 0x8, 0x7f566f6a8c00)
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/fleetctl.go:613 +0x5aa
main.checkJobState(0xc210105220, 0x18, 0x7965b0, 0x8, 0x0, ...)
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/fleetctl.go:576 +0x94
created by main.waitForJobStates
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/fleetctl.go:558 +0x151

goroutine 1 [chan receive]:
main.runStartUnit(0xc21000a020, 0x5, 0x5, 0x0)
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/start.go:51 +0x410
main.main()
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/fleetctl.go:205 +0x778

goroutine 3 [chan receive]:
github.com/coreos/fleet/third_party/github.com/golang/glog.(*loggingT).flushDaemon(0xb87660)
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/third_party/github.com/golang/glog/glog.go:839 +0x50
created by github.com/coreos/fleet/third_party/github.com/golang/glog.init·1
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/third_party/github.com/golang/glog/glog.go:406 +0x276

goroutine 5 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 279 [runnable]:
sync.runtime_Semacquire(0xc210000c18)
    /usr/lib/go/src/pkg/runtime/sema.goc:199 +0x30
sync.(*WaitGroup).Wait(0xc21011a680)
    /usr/lib/go/src/pkg/sync/waitgroup.go:127 +0x14b
main.func·018()
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/fleetctl.go:562 +0x2f
created by main.waitForJobStates
    /build/amd64-usr/var/tmp/portage/app-admin/fleet-0.5.0/work/fleet-0.5.0/gopath/src/github.com/coreos/fleet/fleetctl/fleetctl.go:564 +0x1a2

goroutine 330 [IO wait]:
net.runtime_pollWait(0x7f566f6a98e0, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc21010fc30, 0x72, 0x7f566f6a82d0, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc21010fc30, 0xb, 0x7f566f6a82d0)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc21010fbd0, 0xc2100e2000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210114bd0, 0xc2100e2000, 0x1000, 0x1000, 0x30, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
bufio.(*Reader).fill(0xc210102840)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc210102840, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc210106300)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 374 [IO wait]:
net.runtime_pollWait(0x7f566f6a9988, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100b6140, 0x72, 0x7f566f6a82d0, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2100b6140, 0xb, 0x7f566f6a82d0)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc2100b60e0, 0xc21012f000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc2100b7d38, 0xc21012f000, 0x1000, 0x1000, 0x30, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
bufio.(*Reader).fill(0xc2100bc000)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc2100bc000, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc2100d8080)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 331 [select]:
net/http.(*persistConn).writeLoop(0xc210106300)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 375 [select]:
net/http.(*persistConn).writeLoop(0xc2100d8080)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e
@bcwaldon
Copy link
Contributor

bcwaldon commented Jul 9, 2014

Fixed in v0.5.1

@bcwaldon bcwaldon closed this as completed Jul 9, 2014
@bcwaldon
Copy link
Contributor

bcwaldon commented Jul 9, 2014

#530

@xh3b4sd
Copy link
Author

xh3b4sd commented Jul 9, 2014

Good to know, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants