goroutine 1016842 [running]: runtime/pprof.writeGoroutineStacks(0x42fb20, 0x186a090, 0x18, 0x1c374) /usr/lib/go-1.11/src/runtime/pprof/pprof.go:678 +0x80 runtime/pprof.writeGoroutine(0x42fb20, 0x186a090, 0x2, 0x4, 0x74) /usr/lib/go-1.11/src/runtime/pprof/pprof.go:667 +0x30 runtime/pprof.(*Profile).WriteTo(0x69dc20, 0x42fb20, 0x186a090, 0x2, 0x186a090, 0x3bf4a3) /usr/lib/go-1.11/src/runtime/pprof/pprof.go:328 +0x2d8 net/http/pprof.handler.ServeHTTP(0x153a761, 0x9, 0x431688, 0x186a090, 0x14dc100) /usr/lib/go-1.11/src/net/http/pprof/pprof.go:245 +0x1b0 net/http/pprof.Index(0x431688, 0x186a090, 0x14dc100) /usr/lib/go-1.11/src/net/http/pprof/pprof.go:268 +0x4f0 net/http.HandlerFunc.ServeHTTP(0x3db750, 0x431688, 0x186a090, 0x14dc100) /usr/lib/go-1.11/src/net/http/server.go:1964 +0x34 net/http.(*ServeMux).ServeHTTP(0x6a5910, 0x431688, 0x186a090, 0x14dc100) /usr/lib/go-1.11/src/net/http/server.go:2361 +0x108 net/http.serverHandler.ServeHTTP(0x14b6380, 0x431688, 0x186a090, 0x14dc100) /usr/lib/go-1.11/src/net/http/server.go:2741 +0x74 net/http.(*conn).serve(0x14cccc0, 0x431888, 0x17427c0) /usr/lib/go-1.11/src/net/http/server.go:1847 +0x58c created by net/http.(*Server).Serve /usr/lib/go-1.11/src/net/http/server.go:2851 +0x290 goroutine 1 [chan receive]: main.main() /home/pi/go/src/sonda2/sonda2.go:109 +0x234 goroutine 5 [chan receive]: github.com/golang/glog.(*loggingT).flushDaemon(0x6a5c48) /home/pi/go/src/github.com/golang/glog/glog.go:882 +0x70 created by github.com/golang/glog.init.0 /home/pi/go/src/github.com/golang/glog/glog.go:410 +0x1a0 goroutine 36 [select, 2225 minutes]: github.com/eclipse/paho%2emqtt%2egolang.errorWatch(0x1540000) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/net.go:321 +0xb0 created by github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect.func1 /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/client.go:353 +0xab0 goroutine 35 [select, 2225 minutes]: github.com/eclipse/paho%2emqtt%2egolang.(*router).matchAndDispatch.func1(0x154a000, 0x1482240, 0x1540000, 0x316e01) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/router.go:139 +0x2cc created by github.com/eclipse/paho%2emqtt%2egolang.(*router).matchAndDispatch /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/router.go:137 +0x44 goroutine 40 [IO wait]: internal/poll.runtime_pollWait(0x66329d40, 0x72, 0x0) /usr/lib/go-1.11/src/runtime/netpoll.go:173 +0x44 internal/poll.(*pollDesc).wait(0x14981f4, 0x72, 0x1493000, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:85 +0x7c internal/poll.(*pollDesc).waitRead(0x14981f4, 0xffffff00, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:90 +0x2c internal/poll.(*FD).Accept(0x14981e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_unix.go:384 +0x17c net.(*netFD).accept(0x14981e0, 0x79cc, 0x114b771, 0xc27836ad) /usr/lib/go-1.11/src/net/fd_unix.go:238 +0x20 net.(*TCPListener).accept(0x148e5e0, 0x12460, 0x128fc, 0x6b74c0) /usr/lib/go-1.11/src/net/tcpsock_posix.go:139 +0x20 net.(*TCPListener).AcceptTCP(0x148e5e0, 0x14ccd00, 0x633400, 0x468c4) /usr/lib/go-1.11/src/net/tcpsock.go:247 +0x3c net/http.tcpKeepAliveListener.Accept(0x148e5e0, 0x15abeb8, 0xc, 0x1401180, 0x2990e8) /usr/lib/go-1.11/src/net/http/server.go:3232 +0x1c net/http.(*Server).Serve(0x14b6380, 0x431788, 0x148e5e0, 0x0, 0x0) /usr/lib/go-1.11/src/net/http/server.go:2826 +0x1e0 net/http.(*Server).ListenAndServe(0x14b6380, 0xa, 0x1551f5c) /usr/lib/go-1.11/src/net/http/server.go:2764 +0x9c sonda2/src.(*WebServer).Init(0x1518090) /home/pi/go/src/sonda2/src/ws.go:38 +0x268 created by main.main /home/pi/go/src/sonda2/sonda2.go:84 +0xa4 goroutine 34 [select]: github.com/eclipse/paho%2emqtt%2egolang.keepalive(0x1540000) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/ping.go:41 +0x1b0 created by github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect.func1 /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/client.go:340 +0xd24 goroutine 37 [select]: github.com/eclipse/paho%2emqtt%2egolang.alllogic(0x1540000) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/net.go:215 +0x1b4 created by github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect.func1 /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/client.go:354 +0xacc goroutine 38 [select]: github.com/eclipse/paho%2emqtt%2egolang.outgoing(0x1540000) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/net.go:152 +0x1cc created by github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect.func1 /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/client.go:355 +0xae8 goroutine 39 [IO wait]: internal/poll.runtime_pollWait(0x66329fc0, 0x72, 0xa0718) /usr/lib/go-1.11/src/runtime/netpoll.go:173 +0x44 internal/poll.(*pollDesc).wait(0x1542064, 0x72, 0xffffff00, 0x430468, 0x670250) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:85 +0x7c internal/poll.(*pollDesc).waitRead(0x1542064, 0x1585100, 0x1, 0x1) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:90 +0x2c internal/poll.(*FD).Read(0x1542050, 0x1585140, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_unix.go:169 +0x14c net.(*netFD).Read(0x1542050, 0x1585140, 0x1, 0x1, 0x1454200, 0x147ad40, 0x1551798) /usr/lib/go-1.11/src/net/fd_unix.go:202 +0x38 net.(*conn).Read(0x151c040, 0x1585140, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/net/net.go:177 +0x58 io.ReadAtLeast(0x42f958, 0x151c040, 0x1585140, 0x1, 0x1, 0x1, 0x360d90, 0x19301, 0x1585140) /usr/lib/go-1.11/src/io/io.go:310 +0x6c io.ReadFull(0x42f958, 0x151c040, 0x1585140, 0x1, 0x1, 0x1, 0x3ac090, 0x42f958) /usr/lib/go-1.11/src/io/io.go:329 +0x40 github.com/eclipse/paho.mqtt.golang/packets.ReadPacket(0x42f958, 0x151c040, 0x151c040, 0x42f958, 0x151c040, 0x0) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/packets/packets.go:105 +0x68 github.com/eclipse/paho%2emqtt%2egolang.incoming(0x1540000) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/net.go:113 +0xf0 created by github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect.func1 /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/client.go:356 +0xb04 goroutine 20 [chan receive]: sonda2/src.(*WebServer).initWebSocket(0x1518090) /home/pi/go/src/sonda2/src/ws.go:43 +0xe0 created by sonda2/src.(*WebServer).Init /home/pi/go/src/sonda2/src/ws.go:30 +0x190 goroutine 9 [chan receive]: main.printResultsThread.func1(0x1482300, 0x1518090, 0x1) /home/pi/go/src/sonda2/sonda2.go:147 +0x24 created by main.printResultsThread /home/pi/go/src/sonda2/sonda2.go:144 +0x48 goroutine 50 [syscall]: syscall.Syscall6(0xfc, 0x9, 0x15a8bd4, 0x40, 0xffffffff, 0x0, 0x0, 0x15862b0, 0xffffffff, 0x0) /usr/lib/go-1.11/src/syscall/asm_linux_arm.s:45 +0x8 syscall.EpollWait(0x9, 0x15a8bd4, 0x40, 0x40, 0xffffffff, 0x2, 0x0, 0x0) /usr/lib/go-1.11/src/syscall/zsyscall_linux_arm.go:1674 +0x54 github.com/kidoman/embd/host/generic.initEpollListener.func1(0x15862b0) /home/pi/go/src/github.com/kidoman/embd/host/generic/interrupt.go:60 +0xd8 created by github.com/kidoman/embd/host/generic.initEpollListener /home/pi/go/src/github.com/kidoman/embd/host/generic/interrupt.go:56 +0x8c goroutine 10 [chan receive]: main.printResultsThread.func2(0x1482330, 0x1518090) /home/pi/go/src/sonda2/sonda2.go:157 +0x24 created by main.printResultsThread /home/pi/go/src/sonda2/sonda2.go:154 +0x78 goroutine 11 [chan receive]: main.printResultsThread.func3(0x1482360, 0x1518090) /home/pi/go/src/sonda2/sonda2.go:167 +0x24 created by main.printResultsThread /home/pi/go/src/sonda2/sonda2.go:164 +0xa8 goroutine 1016785 [IO wait]: internal/poll.runtime_pollWait(0x663298c0, 0x72, 0xa0718) /usr/lib/go-1.11/src/runtime/netpoll.go:173 +0x44 internal/poll.(*pollDesc).wait(0x1732014, 0x72, 0xffffff00, 0x430468, 0x670250) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:85 +0x7c internal/poll.(*pollDesc).waitRead(0x1732014, 0x1742700, 0x1, 0x1) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:90 +0x2c internal/poll.(*FD).Read(0x1732000, 0x17427ed, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_unix.go:169 +0x14c net.(*netFD).Read(0x1732000, 0x17427ed, 0x1, 0x1, 0x1574fdc, 0x2, 0x2) /usr/lib/go-1.11/src/net/fd_unix.go:202 +0x38 net.(*conn).Read(0x151c348, 0x17427ed, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/net/net.go:177 +0x58 net/http.(*connReader).backgroundRead(0x17427e0) /usr/lib/go-1.11/src/net/http/server.go:676 +0x48 created by net/http.(*connReader).startBackgroundRead /usr/lib/go-1.11/src/net/http/server.go:672 +0xb0