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

segfault after 429 #158

Open
justincormack opened this issue Jan 7, 2021 · 0 comments
Open

segfault after 429 #158

justincormack opened this issue Jan 7, 2021 · 0 comments

Comments

@justincormack
Copy link
Member

Error: bad status code "429 Too Many Requests"
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x2 addr=0xc0001501028 pc=0x11cc7ae]

goroutine 824634023937 [running]:
runtime.throw(0x1846d3e, 0x2a)
	runtime/panic.go:1116 +0x72 fp=0xc00048df28 sp=0xc00048def8 pc=0x10357b2
runtime.sigpanic()
	runtime/signal_unix.go:726 +0x48c fp=0xc00048df58 sp=0xc00048df28 pc=0x104b72c
runtime: unexpected return pc for crypto/x509/pkix.(*Name).FillFromRDNSequence called from 0x0
stack: frame={sp:0xc00048df58, fp:0xc00048e038} stack=[0xc00048d800,0xc00048e000)
000000c00048de58:  0000000000000000  0000000000000000 
000000c00048de68:  000000002a5b5088  000000c00048dea0 
000000c00048de78:  000000000100b2ca <runtime.assertI2I2+106>  00000000017697c0 
000000c00048de88:  000000000100d550 <runtime.mallocgc+880>  0000000000000000 
000000c00048de98:  000000002a5b5088  000000c00048df18 
000000c00048dea8:  00000000010d0d1f <io.copyBuffer+767>  000000000106a902 <runtime.asmcgocall+66> 
000000c00048deb8:  0000000001035997 <runtime.fatalthrow+87>  000000c00048dec8 
000000c00048dec8:  00000000010629a0 <runtime.fatalthrow.func1+0>  000000c000437200 
000000c00048ded8:  00000000010357b2 <runtime.throw+114>  000000c00048def8 
000000c00048dee8:  000000c00048df18  00000000010357b2 <runtime.throw+114> 
000000c00048def8:  000000c00048df00  0000000001062900 <runtime.throw.func1+0> 
000000c00048df08:  0000000001846d3e  000000000000002a 
000000c00048df18:  000000c00048df48  000000000104b72c <runtime.sigpanic+1164> 
000000c00048df28:  0000000001846d3e  000000000000002a 
000000c00048df38:  000000009062b892  0000025c9062b892 
000000c00048df48:  000000c00048dfc8  00000000011cc7ae <crypto/x509/pkix.(*Name).FillFromRDNSequence+2126> 
000000c00048df58: <000000000101cdde <runtime.gcBgMarkWorker+446>  000000c00048dfb0 
000000c00048df68:  000000c0004d2090  0000000000001418 
000000c00048df78:  0000000000000000  000000c00051e138 
000000c00048df88:  0000000000000000  0000025c9062b892 
000000c00048df98:  000000000112c6c7 <os/exec.(*Cmd).Start.func1+39>  000000c000437200 
000000c00048dfa8:  000000c0004d2090  0000000001061020 <runtime.gcBgMarkWorker.func2+0> 
000000c00048dfb8:  000000c000437200  000000c00004a000 
000000c00048dfc8:  0000000000000000  000000000106ab61 <runtime.goexit+1> 
000000c00048dfd8:  000000c00004a000  0000000000000000 
000000c00048dfe8:  0000000000000000  0000000000000000 
000000c00048dff8:  0000000000000000 
crypto/x509/pkix.(*Name).FillFromRDNSequence(0x0, 0x0)
	crypto/x509/pkix/pkix.go:177 +0x84e fp=0xc00048e038 sp=0xc00048df58 pc=0x11cc7ae
created by runtime.gcBgMarkStartWorkers
	runtime/mgc.go:1839 +0x77

goroutine 1 [select]:
net/http.(*Transport).getConn(0x1d12560, 0xc00003e480, 0x0, 0xc0003a4080, 0x5, 0xc0000345a0, 0x12, 0x0, 0x0, 0x0, ...)
	net/http/transport.go:1347 +0x5ac
net/http.(*Transport).roundTrip(0x1d12560, 0xc000399900, 0x30, 0x2e88548, 0x150)
	net/http/transport.go:569 +0x77c
net/http.(*Transport).RoundTrip(0x1d12560, 0xc000399900, 0x1d12560, 0x0, 0x0)
	net/http/roundtrip.go:17 +0x35
net/http.send(0xc000399900, 0x1907100, 0x1d12560, 0x0, 0x0, 0x0, 0xc00000e140, 0x18f3844, 0x1, 0x0)
	net/http/client.go:252 +0x453
net/http.(*Client).send(0x1d1fc20, 0xc000399900, 0x0, 0x0, 0x0, 0xc00000e140, 0x0, 0x1, 0x20300000000073)
	net/http/client.go:176 +0xff
net/http.(*Client).do(0x1d1fc20, 0xc000399900, 0x0, 0x0, 0x0)
	net/http/client.go:718 +0x45f
net/http.(*Client).Do(...)
	net/http/client.go:586
github.com/docker/hub-tool/internal/hub.(*Client).doRawRequest(0xc000398000, 0xc000399800, 0xc00000e130, 0x1, 0x1, 0x1, 0x1, 0x203000)
	github.com/docker/hub-tool/internal/hub/client.go:336 +0x31a
github.com/docker/hub-tool/internal/hub.(*Client).doRequest(0xc000398000, 0xc000399800, 0xc00000e130, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
	github.com/docker/hub-tool/internal/hub/client.go:294 +0x1d7
github.com/docker/hub-tool/internal/hub.(*Client).getTagsPage(0xc000398000, 0xc0003a4080, 0x50, 0x206034b94, 0xe, 0x0, 0x0, 0x0, 0x8, 0x8, ...)
	github.com/docker/hub-tool/internal/hub/tags.go:108 +0x137
github.com/docker/hub-tool/internal/hub.(*Client).GetTags(0xc000398000, 0x206034b94, 0xe, 0x0, 0x0, 0x0, 0x184aeed, 0x32, 0x1d528e0, 0x0, ...)
	github.com/docker/hub-tool/internal/hub/tags.go:75 +0x3cd
github.com/docker/hub-tool/internal/commands/tag.runList(0x1913b40, 0xc00050e000, 0xc000398000, 0x206034b8f, 0x4, 0x100, 0x0, 0x0, 0x206034b94, 0xe, ...)
	github.com/docker/hub-tool/internal/commands/tag/list.go:152 +0xc9
github.com/docker/hub-tool/internal/commands/tag.newListCmd.func2(0xc0003a2000, 0xc00003e380, 0x1, 0x4, 0x0, 0x0)
	github.com/docker/hub-tool/internal/commands/tag/list.go:127 +0xb0
github.com/spf13/cobra.(*Command).execute(0xc0003a2000, 0xc00003e340, 0x4, 0x4, 0xc0003a2000, 0xc00003e340)
	github.com/spf13/[email protected]/command.go:850 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0xc00039a000, 0xc00050e000, 0xc000398000, 0x1913dc0)
	github.com/spf13/[email protected]/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:895
github.com/spf13/cobra.(*Command).ExecuteContext(...)
	github.com/spf13/[email protected]/command.go:888
main.main()
	github.com/docker/hub-tool/cmd/hub-tool/main.go:72 +0x595

goroutine 6 [syscall]:
os/signal.signal_recv(0x106ab66)
	runtime/sigqueue.go:144 +0x9d
os/signal.loop()
	os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
	os/signal/signal.go:150 +0x45

goroutine 49 [chan receive]:
main.newSigContext.func1(0xc000450240, 0xc00041ecf0)
	github.com/docker/hub-tool/cmd/hub-tool/main.go:83 +0x34
created by main.newSigContext
	github.com/docker/hub-tool/cmd/hub-tool/main.go:82 +0x105

goroutine 9 [select]:
net.(*Resolver).lookupIPAddr(0x1d1f360, 0x1917dc0, 0xc000072720, 0x182c601, 0x3, 0xc0000345a0, 0xe, 0x1bb, 0x0, 0x0, ...)
	net/lookup.go:299 +0x685
net.(*Resolver).internetAddrList(0x1d1f360, 0x1917dc0, 0xc000072720, 0x182c601, 0x3, 0xc0000345a0, 0x12, 0x0, 0x0, 0x0, ...)
	net/ipsock.go:280 +0x4d4
net.(*Resolver).resolveAddrList(0x1d1f360, 0x1917dc0, 0xc000072720, 0x182cb85, 0x4, 0x182c601, 0x3, 0xc0000345a0, 0x12, 0x0, ...)
	net/dial.go:221 +0x47d
net.(*Dialer).DialContext(0xc0000b2240, 0x1917d40, 0xc000428600, 0x182c601, 0x3, 0xc0000345a0, 0x12, 0x0, 0x0, 0x0, ...)
	net/dial.go:403 +0x22b
net/http.(*Transport).dial(0x1d12560, 0x1917d40, 0xc000428600, 0x182c601, 0x3, 0xc0000345a0, 0x12, 0x0, 0xc00042e8c0, 0xc000416500, ...)
	net/http/transport.go:1141 +0x1fd
net/http.(*Transport).dialConn(0x1d12560, 0x1917d40, 0xc000428600, 0x0, 0xc0003a4080, 0x5, 0xc0000345a0, 0x12, 0x0, 0xc00039ec60, ...)
	net/http/transport.go:1575 +0x1abb
net/http.(*Transport).dialConnFor(0x1d12560, 0xc0003aa160)
	net/http/transport.go:1421 +0xc6
created by net/http.(*Transport).queueForDial
	net/http/transport.go:1390 +0x40f

goroutine 51 [IO wait]:
internal/poll.runtime_pollWait(0x2a5f1ef8, 0x72, 0x1908d00)
	runtime/netpoll.go:222 +0x55
internal/poll.(*pollDesc).wait(0xc00050c198, 0x72, 0x1908d00, 0x1cbd688, 0x0)
	internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00050c180, 0xc00054c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	internal/poll/fd_unix.go:159 +0x1a5
net.(*netFD).Read(0xc00050c180, 0xc00054c000, 0x1000, 0x1000, 0xc0005200c0, 0xc000096d98, 0xc000096c20)
	net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00051e110, 0xc00054c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	net/net.go:182 +0x8e
net/http.(*persistConn).Read(0xc00052c900, 0xc00054c000, 0x1000, 0x1000, 0xc000096eb0, 0x1063720, 0xc000096eb0)
	net/http/transport.go:1887 +0x77
bufio.(*Reader).fill(0xc000520360)
	bufio/bufio.go:101 +0x105
bufio.(*Reader).Peek(0xc000520360, 0x1, 0x2, 0x0, 0x0, 0x0, 0xc000546180)
	bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc00052c900)
	net/http/transport.go:2040 +0x1a8
created by net/http.(*Transport).dialConn
	net/http/transport.go:1708 +0xcb7

goroutine 52 [select]:
net/http.(*persistConn).writeLoop(0xc00052c900)
	net/http/transport.go:2340 +0x11c
created by net/http.(*Transport).dialConn
	net/http/transport.go:1709 +0xcdc

goroutine 10 [runnable]:
net.sortByRFC6724(0x0, 0x0, 0x0)
	net/addrselect.go:13 +0x85
net.goLookupIPFiles(0xc0000345a0, 0xe, 0x0, 0x0, 0x0)
	net/dnsclient_unix.go:554 +0x1f6
net.(*Resolver).goLookupIPCNAMEOrder(0x1d1f360, 0x1917d40, 0xc00003e500, 0xc0000345a0, 0xe, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
	net/dnsclient_unix.go:568 +0x127d
net.(*Resolver).lookupIP(0x1d1f360, 0x1917d40, 0xc00003e500, 0x182c601, 0x3, 0xc0000345a0, 0xe, 0x12, 0x0, 0x0, ...)
	net/lookup_unix.go:102 +0xe5
net.glob..func1(0x1917d40, 0xc00003e500, 0xc0000665e0, 0x182c601, 0x3, 0xc0000345a0, 0xe, 0xc000426838, 0xc000406c60, 0xc00048efb0, ...)
	net/hook.go:23 +0x72
net.(*Resolver).lookupIPAddr.func1(0x0, 0x0, 0x0, 0x0)
	net/lookup.go:293 +0xb9
internal/singleflight.(*Group).doCall(0x1d1f370, 0xc00007c190, 0xc0000345c0, 0x12, 0xc00003e540)
	internal/singleflight/singleflight.go:95 +0x2e
created by internal/singleflight.(*Group).DoChan
	internal/singleflight/singleflight.go:88 +0x2cc

goroutine 38 [IO wait]:
internal/poll.runtime_pollWait(0x2a5f1e10, 0x72, 0x1908d00)
	runtime/netpoll.go:222 +0x55
internal/poll.(*pollDesc).wait(0xc00042a998, 0x72, 0x1908d00, 0x1cbd688, 0x0)
	internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00042a980, 0xc0004d6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	internal/poll/fd_unix.go:159 +0x1a5
net.(*netFD).Read(0xc00042a980, 0xc0004d6000, 0x1000, 0x1000, 0xc000426b40, 0xc0004a6d98, 0xc0004a6c20)
	net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00040e170, 0xc0004d6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	net/net.go:182 +0x8e
net/http.(*persistConn).Read(0xc000456d80, 0xc0004d6000, 0x1000, 0x1000, 0xc0004a6eb0, 0x1063720, 0xc0004a6eb0)
	net/http/transport.go:1887 +0x77
bufio.(*Reader).fill(0xc000426cc0)
	bufio/bufio.go:101 +0x105
bufio.(*Reader).Peek(0xc000426cc0, 0x1, 0x2, 0x0, 0x0, 0x0, 0xc0004504e0)
	bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000456d80)
	net/http/transport.go:2040 +0x1a8
created by net/http.(*Transport).dialConn
	net/http/transport.go:1708 +0xcb7

goroutine 39 [select]:
net/http.(*persistConn).writeLoop(0xc000456d80)
	net/http/transport.go:2340 +0x11c
created by net/http.(*Transport).dialConn
	net/http/transport.go:1709 +0xcdc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant