Skip to content

[BUG] Concurrent map write causes agent to crash on MacOs #494

Closed
@rsora

Description

@rsora
INFO[0000] Version:1.1.98
INFO[0000] Hostname: Alita-2.local
INFO[0000] Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage collect.
INFO[0000] You specified a serial port regular expression filter: usb|acm|com
INFO[0000] Your serial ports:
INFO[0000] 	There are no serial ports to list.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /                         --> main.homeHandler (2 handlers)
[GIN-debug] GET    /certificate.crt          --> main.certHandler (2 handlers)
[GIN-debug] DELETE /certificate.crt          --> main.deleteCertHandler (2 handlers)
[GIN-debug] POST   /upload                   --> main.uploadHandler (2 handlers)
[GIN-debug] GET    /socket.io/               --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] POST   /socket.io/               --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] WS     /socket.io/               --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] WSS    /socket.io/               --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] GET    /info                     --> main.infoHandler (2 handlers)
[GIN-debug] POST   /killbrowser              --> main.killBrowserHandler (2 handlers)
[GIN-debug] POST   /pause                    --> main.pauseHandler (2 handlers)
[GIN-debug] POST   /update                   --> main.updateHandler (2 handlers)
[GIN-debug] GET    /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] POST   /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] PUT    /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] PATCH  /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] HEAD   /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] OPTIONS /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] DELETE /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] CONNECT /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] TRACE  /v2/*path                 --> github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] Listening and serving HTTP on 127.0.0.1:8991
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8991
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8991: bind: address already in use
INFO[0000] Error trying to bind to port: listen tcp 127.0.0.1:8991: bind: address already in use, so exiting...
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8992
INFO[0002]  id=1XOIyXjx req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0002]  id=1XOIyXjx status=200 bytes=321 time=2.180288ms
INFO[0002]  id=Y4LuTDup req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0002]  id=Y4LuTDup status=200 bytes=321 time=446.171µs
INFO[0002]  id=qGGyNC2F req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0002]  id=qGGyNC2F status=200 bytes=321 time=1.099144ms
INFO[0002]  id=u50kefOL req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0002]  id=u50kefOL status=200 bytes=321 time=414.025µs
INFO[0398]  id=5Psa72L3 req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0398]  id=5Psa72L3 status=200 bytes=321 time=531.04µs
INFO[0484]  id=UbKBHph8 req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0484]  id=UbKBHph8 status=200 bytes=321 time=2.45508ms
INFO[0544]  id=XqiCQSEN req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0544]  id=XqiCQSEN status=200 bytes=321 time=554.997µs
INFO[0991]  id=L5_5Dkig req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[0991]  id=L5_5Dkig status=200 bytes=321 time=3.613898ms
INFO[1051]  id=Q6lrPh1W req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[1051]  id=Q6lrPh1W status=200 bytes=321 time=692.73µs
INFO[1053]  id=GkE2TCOi req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[1053]  id=GkE2TCOi status=200 bytes=321 time=459.799µs
INFO[1111]  id=5OthcseP req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[1111]  id=5OthcseP status=200 bytes=321 time=674.553µs
INFO[1165]  id=-pcKLV69 req=HEAD /v2/pkgs/tools/installed from=127.0.0.1
INFO[1165]  id=-pcKLV69 status=200 bytes=321 time=597.461µs
fatal error: concurrent map writes

goroutine 3690 [running]:
runtime.throw(0x48c3a1f, 0x15)
	/home/jenkins/go1.10.2-patched/src/runtime/panic.go:616 +0x81 fp=0xc420da1a40 sp=0xc420da1a20 pc=0x402c1c1
runtime.mapassign_faststr(0x47a6c60, 0xc4202728a0, 0xc42065b426, 0x6, 0xc42021c408)
	/home/jenkins/go1.10.2-patched/src/runtime/hashmap_fast.go:779 +0x3ce fp=0xc420da1ab0 sp=0xc420da1a40 pc=0x400df0e
github.com/arduino/arduino-create-agent/tools.(*Tools).Download(0x4d429c0, 0xc4202824fa, 0x7, 0xc4202824ed, 0x6, 0xc4202824f4, 0x5, 0xc420282502, 0x4, 0x0, ...)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/tools/download.go:199 +0x130b fp=0xc420da1ed8 sp=0xc420da1ab0 pc=0x466b16b
main.checkCmd.func2(0xc4202824e0, 0x26)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/hub.go:198 +0x10d fp=0xc420da1fd0 sp=0xc420da1ed8 pc=0x46e16bd
runtime.goexit()
	/home/jenkins/go1.10.2-patched/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420da1fd8 sp=0xc420da1fd0 pc=0x4057931
created by main.checkCmd
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/hub.go:169 +0x5e0

goroutine 1 [syscall, 19 minutes, locked to thread]:
github.com/arduino/arduino-create-agent/vendor/github.com/facchinm/systray._Cfunc_nativeLoop(0x0)
	_cgo_gotypes.go:75 +0x49
github.com/arduino/arduino-create-agent/vendor/github.com/facchinm/systray.nativeLoop()
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/facchinm/systray/systray_nonwindows.go:19 +0x22
github.com/arduino/arduino-create-agent/vendor/github.com/facchinm/systray.Run(0x48ed530)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/facchinm/systray/systray.go:56 +0x49
main.setupSysTray()
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:52 +0x5a
main.main()
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:110 +0x4d

goroutine 8 [select]:
main.(*hub).run(0x4d414c0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/hub.go:47 +0x1db
created by main.loop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:242 +0x878

goroutine 3544 [select]:
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.(*serverConn).pingLoop(0xc4201b21a0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:367 +0x27e
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.newServerConn
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:111 +0x3c7

goroutine 9 [select, 19 minutes]:
main.(*serialhub).run(0x4d41200)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:74 +0x1a0
created by main.loop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:244 +0x89c

goroutine 3671 [IO wait]:
internal/poll.runtime_pollWait(0x5508e30, 0x72, 0x0)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc42029ca18, 0x72, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc42029ca18, 0xc420d8e000, 0x10000, 0x10000)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).ReadFrom(0xc42029ca00, 0xc420d8e000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:207 +0x17d
net.(*netFD).readFrom(0xc42029ca00, 0xc420d8e000, 0x10000, 0x10000, 0x0, 0x0, 0xc420306cc0, 0x4012819, 0xc42049e648)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:208 +0x5b
net.(*UDPConn).readFrom(0xc4202f60a8, 0xc420d8e000, 0x10000, 0x10000, 0x101, 0xc42049e620, 0xc42049e698, 0x4041b17)
	/home/jenkins/go1.10.2-patched/src/net/udpsock_posix.go:47 +0x6a
net.(*UDPConn).ReadFrom(0xc4202f60a8, 0xc420d8e000, 0x10000, 0x10000, 0x10000, 0x10000, 0xc42005a800, 0xc42049e768, 0x4006117)
	/home/jenkins/go1.10.2-patched/src/net/udpsock.go:118 +0x6f
github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour.(*client).recv(0xc4204b49f0, 0xc4202f60a8, 0xc4202cfe00)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour/client.go:265 +0xc9
created by github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour.(*client).mainloop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour/client.go:144 +0x1aeb

goroutine 11 [chan receive]:
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.(*Server).Accept(...)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server.go:165
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*Server).loop(0xc4202199e0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/server.go:102 +0x49
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.NewServer
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/server.go:26 +0x222

goroutine 34 [sleep]:
time.Sleep(0x77359400)
	/home/jenkins/go1.10.2-patched/src/runtime/time.go:102 +0x166
main.discoverLoop.func1()
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:132 +0x2c
created by main.discoverLoop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:127 +0xd7

goroutine 35 [chan receive]:
main.getPorts(0x48445e0, 0x0, 0x0, 0x0, 0x4d631b8)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/discovery.go:144 +0x1be
main.GetNetworkList(0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/discovery.go:49 +0x34
main.GetList(0x486fa01, 0x0, 0x0, 0x4d631b8, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/seriallist.go:28 +0x876
main.spListDual(0x77359401)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:146 +0x42
main.discoverLoop.func2()
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:137 +0x26
created by main.discoverLoop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:135 +0xef

goroutine 12 [IO wait]:
internal/poll.runtime_pollWait(0x5508c90, 0x72, 0x0)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc4202e4518, 0x72, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc4202e4518, 0xffffffffffffff00, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc4202e4500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:372 +0x1a8
net.(*netFD).accept(0xc4202e4500, 0xc4201b1260, 0x348, 0xc420075b60)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc42000e8a0, 0x48ede48, 0xc420075b30, 0xc420075b30)
	/home/jenkins/go1.10.2-patched/src/net/tcpsock_posix.go:136 +0x2e
net.(*TCPListener).AcceptTCP(0xc42000e8a0, 0x4791320, 0x4791320, 0xc420075b60)
	/home/jenkins/go1.10.2-patched/src/net/tcpsock.go:246 +0x49
net/http.tcpKeepAliveListener.Accept(0xc42000e8a0, 0x40355a4, 0xc420075b68, 0x40544e0, 0xc420075ba8)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:3216 +0x2f
crypto/tls.(*listener).Accept(0xc420394940, 0x48ed760, 0xc4205a2960, 0x494ca00, 0xc420273800)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/tls.go:52 +0x37
net/http.(*Server).Serve(0xc4203100d0, 0x494a700, 0xc420394940, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:2770 +0x1a5
net/http.(*Server).ServeTLS(0xc4203100d0, 0x494c380, 0xc42000e8a0, 0xc42003cea0, 0x5d, 0xc42003cf00, 0x5c, 0x0, 0x48a08e0)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:2839 +0x27b
net/http.(*Server).ListenAndServeTLS(0xc4203100d0, 0xc42003cea0, 0x5d, 0xc42003cf00, 0x5c, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:3032 +0x11e
net/http.ListenAndServeTLS(0xc4202f4180, 0xe, 0xc42003cea0, 0x5d, 0xc42003cf00, 0x5c, 0x4944760, 0xc4202a65a0, 0x0, 0xc420079eb0)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:3002 +0xa9
github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.(*Engine).RunTLS(0xc4202a65a0, 0xc4202f4180, 0xe, 0xc42003cea0, 0x5d, 0xc42003cf00, 0x5c, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin/gin.go:298 +0x146
main.loop.func2(0xc420042540, 0x54, 0xc4202a65a0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:307 +0x328
created by main.loop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:295 +0x1499

goroutine 13 [IO wait, 19 minutes]:
internal/poll.runtime_pollWait(0x5508d60, 0x72, 0x0)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc4202e4418, 0x72, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc4202e4418, 0xffffffffffffff00, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc4202e4400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:372 +0x1a8
net.(*netFD).accept(0xc4202e4400, 0xc4203e8760, 0xc420069d18, 0x4003a18)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc42000e890, 0xc420069d48, 0x4002977, 0xc4203e8760)
	/home/jenkins/go1.10.2-patched/src/net/tcpsock_posix.go:136 +0x2e
net.(*TCPListener).AcceptTCP(0xc42000e890, 0xc420069d90, 0xc420069d98, 0x18)
	/home/jenkins/go1.10.2-patched/src/net/tcpsock.go:246 +0x49
net/http.tcpKeepAliveListener.Accept(0xc42000e890, 0x48ed760, 0xc4203e86e0, 0x494ca00, 0xc420273290)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:3216 +0x2f
net/http.(*Server).Serve(0xc4201b3d40, 0x494c380, 0xc42000e890, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:2770 +0x1a5
net/http.(*Server).ListenAndServe(0xc4201b3d40, 0xc4201b3d40, 0xc4202b86e0)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:2711 +0xa9
net/http.ListenAndServe(0xc4202f4090, 0xe, 0x4944760, 0xc4202a65a0, 0x1, 0x4045367)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:2969 +0x7a
github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin.(*Engine).Run(0xc4202a65a0, 0xc420059fb8, 0x1, 0x1, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gin-gonic/gin/gin.go:287 +0x138
main.loop.func3(0xc4202a65a0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:324 +0x199
created by main.loop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:317 +0x14be

goroutine 66 [chan receive, 19 minutes]:
main.setupSysTrayReal.func2(0xc4201b1800)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:140 +0x3b
created by main.setupSysTrayReal
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:139 +0x473

goroutine 67 [chan receive, 19 minutes]:
main.setupSysTrayReal.func3(0xc4201b1780)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:159 +0x3b
created by main.setupSysTrayReal
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:157 +0x498

goroutine 68 [chan receive, 19 minutes]:
main.setupSysTrayReal.func4(0xc4201b1740)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:168 +0x37
created by main.setupSysTrayReal
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/trayicon.go:166 +0x4bd

goroutine 3530 [chan receive]:
main.(*connection).writer(0xc4203e42a0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/conn.go:38 +0x60
created by main.wsHandler.func1
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/conn.go:238 +0x18e

goroutine 3628 [select]:
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.(*serverConn).pingLoop(0xc4203f6000)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:367 +0x27e
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.newServerConn
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:111 +0x3c7

goroutine 3218 [select]:
net/http.(*http2serverConn).serve(0xc42040e540)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4505 +0x5b6
net/http.(*http2Server).ServeConn(0xc4201b15c0, 0x49507a0, 0xc4201ae380, 0xc4205c3d60)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4124 +0x74b
net/http.http2ConfigureServer.func1(0xc4203100d0, 0xc4201ae380, 0x49467e0, 0xc4202b8160)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:3962 +0x81
net/http.(*conn).serve(0xc4205b9f40, 0x494ca00, 0xc420338600)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:1751 +0xe9e
created by net/http.(*Server).Serve
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:2795 +0x27b

goroutine 3529 [chan receive]:
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.(*serverConn).NextReader(0xc4201b21a0, 0xc4203f53e0, 0xc42006bcd0, 0xc4202b9998, 0xc42006bd08, 0x4587325)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:128 +0x66
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*decoder).Decode(0xc42006bf60, 0xc42006bef0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/parser.go:169 +0x56
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*socket).loop(0xc4201fa8c0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/socket.go:144 +0x295
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*Server).loop.func1(0xc4201fa8c0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/server.go:108 +0x2b
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*Server).loop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/server.go:107 +0x93

goroutine 3219 [IO wait]:
internal/poll.runtime_pollWait(0x5508f00, 0x72, 0xc42042d8f0)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc420cfd098, 0x72, 0xffffffffffffff00, 0x4946a80, 0x4cf54f8)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc420cfd098, 0xc4203cc000, 0x400, 0x400)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc420cfd080, 0xc4203cc000, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:157 +0x1dc
net.(*netFD).Read(0xc420cfd080, 0xc4203cc000, 0x400, 0x400, 0xc4203382a8, 0xc4204102a0, 0xc4203b3768)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc42000e050, 0xc4203cc000, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/net.go:176 +0x6a
crypto/tls.(*block).readFromUntil(0xc4201dc780, 0xa5b7050, 0xc42000e050, 0x5, 0xc42000e050, 0x4278b8e)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:493 +0x96
crypto/tls.(*Conn).readRecord(0xc4201ae380, 0x48ede17, 0xc4201ae4a0, 0x4053ca0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:595 +0xe0
crypto/tls.(*Conn).Read(0xc4201ae380, 0xc4204101f8, 0x9, 0x9, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:1156 +0x100
io.ReadAtLeast(0xa5b7240, 0xc4201ae380, 0xc4204101f8, 0x9, 0x9, 0x9, 0x0, 0x1, 0x2)
	/home/jenkins/go1.10.2-patched/src/io/io.go:309 +0x86
io.ReadFull(0xa5b7240, 0xc4201ae380, 0xc4204101f8, 0x9, 0x9, 0xc42019de00, 0xc42042dee0, 0xc420314300)
	/home/jenkins/go1.10.2-patched/src/io/io.go:327 +0x58
net/http.http2readFrameHeader(0xc4204101f8, 0x9, 0x9, 0xa5b7240, 0xc4201ae380, 0x0, 0xc400000000, 0x2, 0x2)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:1517 +0x7b
net/http.(*http2Framer).ReadFrame(0xc4204101c0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:1775 +0xa4
net/http.(*http2serverConn).readFrames(0xc42040e540)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4392 +0xa9
created by net/http.(*http2serverConn).serve
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4497 +0x31a

goroutine 3210 [IO wait]:
internal/poll.runtime_pollWait(0x5508a20, 0x72, 0xc4200668f0)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc42029c418, 0x72, 0xffffffffffffff00, 0x4946a80, 0x4cf54f8)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc42029c418, 0xc4203ccc00, 0x400, 0x400)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc42029c400, 0xc4203ccc00, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:157 +0x1dc
net.(*netFD).Read(0xc42029c400, 0xc4203ccc00, 0x400, 0x400, 0xc420338de8, 0xc420411500, 0xc4202e8b28)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc4201ec050, 0xc4203ccc00, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/net.go:176 +0x6a
crypto/tls.(*block).readFromUntil(0xc4201dd140, 0xa5b7050, 0xc4201ec050, 0x5, 0xc4201ec050, 0x4278b8e)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:493 +0x96
crypto/tls.(*Conn).readRecord(0xc4200ac380, 0x48ede17, 0xc4200ac4a0, 0x4053ca0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:595 +0xe0
crypto/tls.(*Conn).Read(0xc4200ac380, 0xc420411378, 0x9, 0x9, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:1156 +0x100
io.ReadAtLeast(0xa5b7240, 0xc4200ac380, 0xc420411378, 0x9, 0x9, 0x9, 0x0, 0x1, 0x2)
	/home/jenkins/go1.10.2-patched/src/io/io.go:309 +0x86
io.ReadFull(0xa5b7240, 0xc4200ac380, 0xc420411378, 0x9, 0x9, 0xc420480300, 0xc420066ee0, 0xc420314720)
	/home/jenkins/go1.10.2-patched/src/io/io.go:327 +0x58
net/http.http2readFrameHeader(0xc420411378, 0x9, 0x9, 0xa5b7240, 0xc4200ac380, 0x0, 0xc400000000, 0x2, 0x2)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:1517 +0x7b
net/http.(*http2Framer).ReadFrame(0xc420411340, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:1775 +0xa4
net/http.(*http2serverConn).readFrames(0xc42040e700)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4392 +0xa9
created by net/http.(*http2serverConn).serve
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4497 +0x31a

goroutine 3667 [sleep]:
time.Sleep(0x77359400)
	/home/jenkins/go1.10.2-patched/src/runtime/time.go:102 +0x166
main.getPorts.func1(0xc42003ca20, 0xc42003c960)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/discovery.go:121 +0x2a
created by main.getPorts
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/discovery.go:120 +0xcf

goroutine 3669 [select]:
github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour.(*client).mainloop(0xc4204b49f0, 0xc42017d260)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour/client.go:151 +0x1650
created by github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour.(*Resolver).Browse
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour/client.go:38 +0x182

goroutine 3533 [IO wait]:
internal/poll.runtime_pollWait(0x5508bc0, 0x72, 0xc42042e9b8)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc4201f8018, 0x72, 0xffffffffffffff00, 0x4946a80, 0x4cf54f8)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc4201f8018, 0xc4203cd000, 0x400, 0x400)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc4201f8000, 0xc4203cd000, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:157 +0x1dc
net.(*netFD).Read(0xc4201f8000, 0xc4203cd000, 0x400, 0x400, 0x8, 0x8, 0x3f3)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc4201ec038, 0xc4203cd000, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/net.go:176 +0x6a
crypto/tls.(*block).readFromUntil(0xc4201dc480, 0xa5b7050, 0xc4201ec038, 0x5, 0xc4201ec038, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:493 +0x96
crypto/tls.(*Conn).readRecord(0xc4201ae000, 0x48ede17, 0xc4201ae120, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:595 +0xe0
crypto/tls.(*Conn).Read(0xc4201ae000, 0xc420486000, 0x2800, 0x2800, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:1156 +0x100
bufio.(*Reader).fill(0xc4202cfb60)
	/home/jenkins/go1.10.2-patched/src/bufio/bufio.go:100 +0x11e
bufio.(*Reader).Peek(0xc4202cfb60, 0x2, 0x48edd60, 0xc42005a800, 0x48bcac6, 0xc, 0xc420047300)
	/home/jenkins/go1.10.2-patched/src/bufio/bufio.go:132 +0x3a
github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket.(*Conn).read(0xc42051e9a0, 0x2, 0x0, 0xc420293260, 0x0, 0xc4204f1500, 0xc420293260)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket/conn.go:357 +0x40
github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket.(*Conn).advanceFrame(0xc42051e9a0, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket/conn.go:787 +0x5c
github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket.(*Conn).NextReader(0xc42051e9a0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket/conn.go:947 +0xa3
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket.(*Server).serveHTTP(0xc420218b80, 0x66a4040, 0xc420d2e370, 0xc420d46200)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket/server.go:63 +0x74
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket.NewServer
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket/server.go:29 +0x106

goroutine 3691 [runnable]:
encoding/json.(*encodeState).marshal.func1(0xc420da5a20)
	/home/jenkins/go1.10.2-patched/src/encoding/json/encode.go:287 +0x145
encoding/json.(*encodeState).marshal(0xc4200da2c0, 0x47a6c60, 0xc4201dd350, 0xc420da0100, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/encoding/json/encode.go:299 +0xae
encoding/json.Marshal(0x47a6c60, 0xc4201dd350, 0x48b575b, 0x3, 0xc4200c0f38, 0xbdfdb012841b9c9b, 0x32)
	/home/jenkins/go1.10.2-patched/src/encoding/json/encode.go:161 +0x5f
main.loop.func1(0x48d2029, 0x29)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/main.go:158 +0xe7
github.com/arduino/arduino-create-agent/tools.(*Tools).Download(0x4d429c0, 0xc42028252e, 0x7, 0xc42028251d, 0x9, 0xc420282527, 0x6, 0xc420282536, 0x4, 0x0, ...)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/tools/download.go:200 +0x1356
main.checkCmd.func2(0xc420282510, 0x2a)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/hub.go:198 +0x10d
created by main.checkCmd
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/hub.go:169 +0x5e0

goroutine 3632 [sleep]:
time.Sleep(0x2faf080)
	/home/jenkins/go1.10.2-patched/src/runtime/time.go:102 +0x166
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.(*serverConn).NextWriter(0xc4203f6000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:139 +0x1eb
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*encoder).encodePacket(0xc420678e00, 0x2, 0x0, 0x0, 0xffffffffffffffff, 0x475e7e0, 0xc420186a20, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/parser.go:94 +0x5f
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*encoder).Encode(0xc420678e00, 0x2, 0x0, 0x0, 0xffffffffffffffff, 0x475e7e0, 0xc420186a20, 0x0, 0xc420302960, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/parser.go:82 +0xa7
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*socket).send(0xc4201faa40, 0xc420186a00, 0x2, 0x2, 0xc420302920, 0x1)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/socket.go:87 +0x18b
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*socketHandler).Emit(0xc4201dda10, 0x48b9096, 0x7, 0xc420302920, 0x1, 0x1, 0x1, 0xc420302930)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/handler.go:88 +0x2f1
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*socket).Emit(0xc4201faa40, 0x48b9096, 0x7, 0xc420302920, 0x1, 0x1, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/socket.go:66 +0x64
main.(*connection).writer(0xc42060e720)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/conn.go:39 +0x15a
created by main.wsHandler.func1
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/conn.go:238 +0x18e

goroutine 3670 [IO wait]:
internal/poll.runtime_pollWait(0x5508880, 0x72, 0x0)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc42029c998, 0x72, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc42029c998, 0xc420540000, 0x10000, 0x10000)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).ReadFrom(0xc42029c980, 0xc420540000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:207 +0x17d
net.(*netFD).readFrom(0xc42029c980, 0xc420540000, 0x10000, 0x10000, 0x1, 0x0, 0xc420065e68, 0xc42060e4e0, 0xc420065f50)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:208 +0x5b
net.(*UDPConn).readFrom(0xc4202f60a0, 0xc420540000, 0x10000, 0x10000, 0x2, 0x0, 0x14, 0x1000012c1)
	/home/jenkins/go1.10.2-patched/src/net/udpsock_posix.go:47 +0x6a
net.(*UDPConn).ReadFrom(0xc4202f60a0, 0xc420540000, 0x10000, 0x10000, 0x0, 0x0, 0xc4201dd590, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/udpsock.go:118 +0x6f
github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour.(*client).recv(0xc4204b49f0, 0xc4202f60a0, 0xc4202cfe00)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour/client.go:265 +0xc9
created by github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour.(*client).mainloop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/oleksandr/bonjour/client.go:141 +0x1b17

goroutine 3685 [IO wait]:
internal/poll.runtime_pollWait(0x5508950, 0x72, 0xc42042b9b8)
	/home/jenkins/go1.10.2-patched/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc420cfd318, 0x72, 0xffffffffffffff00, 0x4946a80, 0x4cf54f8)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc420cfd318, 0xc420d3dc00, 0x400, 0x400)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc420cfd300, 0xc420d3dc00, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/internal/poll/fd_unix.go:157 +0x1dc
net.(*netFD).Read(0xc420cfd300, 0xc420d3dc00, 0x400, 0x400, 0x8, 0x8, 0x3f3)
	/home/jenkins/go1.10.2-patched/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc4201f4060, 0xc420d3dc00, 0x400, 0x400, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/net/net.go:176 +0x6a
crypto/tls.(*block).readFromUntil(0xc4201ddc80, 0xa5b7050, 0xc4201f4060, 0x5, 0xc4201f4060, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:493 +0x96
crypto/tls.(*Conn).readRecord(0xc4203a2380, 0x48ede17, 0xc4203a24a0, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:595 +0xe0
crypto/tls.(*Conn).Read(0xc4203a2380, 0xc420488800, 0x2800, 0x2800, 0x0, 0x0, 0x0)
	/home/jenkins/go1.10.2-patched/src/crypto/tls/conn.go:1156 +0x100
bufio.(*Reader).fill(0xc4202ceba0)
	/home/jenkins/go1.10.2-patched/src/bufio/bufio.go:100 +0x11e
bufio.(*Reader).Peek(0xc4202ceba0, 0x2, 0xc42004af70, 0xc42004af00, 0xc420084058, 0xc420084060, 0x48ede48)
	/home/jenkins/go1.10.2-patched/src/bufio/bufio.go:132 +0x3a
github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket.(*Conn).read(0xc42051e580, 0x2, 0xc420084040, 0x406d1ed, 0xc42042be30, 0xc42042be50, 0x4580caa)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket/conn.go:357 +0x40
github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket.(*Conn).advanceFrame(0xc42051e580, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket/conn.go:787 +0x5c
github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket.(*Conn).NextReader(0xc42051e580, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/gorilla/websocket/conn.go:947 +0xa3
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket.(*Server).serveHTTP(0xc42010e3a0, 0x66a4040, 0xc4200da580, 0xc420d46c00)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket/server.go:63 +0x74
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket.NewServer
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/websocket/server.go:29 +0x106

goroutine 3631 [chan receive]:
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine%2eio.(*serverConn).NextReader(0xc4203f6000, 0xc420314180, 0xc42067dcd0, 0xc42058e448, 0xc42067dd08, 0x4587325)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-engine.io/server_conn.go:128 +0x66
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*decoder).Decode(0xc42067df60, 0xc42067def0, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/parser.go:169 +0x56
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*socket).loop(0xc4201faa40, 0x0, 0x0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/socket.go:144 +0x295
github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*Server).loop.func1(0xc4201faa40)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/server.go:108 +0x2b
created by github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket%2eio.(*Server).loop
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/vendor/github.com/googollee/go-socket.io/server.go:107 +0x93

goroutine 3668 [chan receive]:
main.getPorts.func2(0xc42010f3a0, 0xc4201700e0, 0xc42003ca20, 0xc42003c960)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/discovery.go:128 +0x53
created by main.getPorts
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/discovery.go:127 +0x15a

goroutine 3239 [select]:
net/http.(*http2serverConn).serve(0xc42040e700)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4505 +0x5b6
net/http.(*http2Server).ServeConn(0xc4201b15c0, 0x49507a0, 0xc4200ac380, 0xc4205c5d60)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:4124 +0x74b
net/http.http2ConfigureServer.func1(0xc4203100d0, 0xc4200ac380, 0x49467e0, 0xc4202b86c0)
	/home/jenkins/go1.10.2-patched/src/net/http/h2_bundle.go:3962 +0x81
net/http.(*conn).serve(0xc42019f7c0, 0x494ca00, 0xc4201dce10)
	/home/jenkins/go1.10.2-patched/src/net/http/server.go:1751 +0xe9e

Metadata

Metadata

Assignees

Labels

type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions