goroutine 2463717 [running]: runtime/pprof.writeGoroutineStacks(0x42fb20, 0x197e000, 0x18, 0x1c374) /usr/lib/go-1.11/src/runtime/pprof/pprof.go:678 +0x80 runtime/pprof.writeGoroutine(0x42fb20, 0x197e000, 0x2, 0x4, 0x33) /usr/lib/go-1.11/src/runtime/pprof/pprof.go:667 +0x30 runtime/pprof.(*Profile).WriteTo(0x69dc20, 0x42fb20, 0x197e000, 0x2, 0x197e000, 0x3bf4a3) /usr/lib/go-1.11/src/runtime/pprof/pprof.go:328 +0x2d8 net/http/pprof.handler.ServeHTTP(0x197a041, 0x9, 0x431688, 0x197e000, 0x18b6280) /usr/lib/go-1.11/src/net/http/pprof/pprof.go:245 +0x1b0 net/http/pprof.Index(0x431688, 0x197e000, 0x18b6280) /usr/lib/go-1.11/src/net/http/pprof/pprof.go:268 +0x4f0 net/http.HandlerFunc.ServeHTTP(0x3db750, 0x431688, 0x197e000, 0x18b6280) /usr/lib/go-1.11/src/net/http/server.go:1964 +0x34 net/http.(*ServeMux).ServeHTTP(0x6a5910, 0x431688, 0x197e000, 0x18b6280) /usr/lib/go-1.11/src/net/http/server.go:2361 +0x108 net/http.serverHandler.ServeHTTP(0x1926080, 0x431688, 0x197e000, 0x18b6280) /usr/lib/go-1.11/src/net/http/server.go:2741 +0x74 net/http.(*conn).serve(0x1885020, 0x431888, 0x1c82d60) /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 [runnable]: 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 20 [select, 5811 minutes]: github.com/eclipse/paho%2emqtt%2egolang.(*router).matchAndDispatch.func1(0x18900c0, 0x18821b0, 0x194c000, 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 35 [chan receive]: sonda2/src.(*WebServer).initWebSocket(0x188c210) /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 25 [IO wait]: internal/poll.runtime_pollWait(0x6475dd40, 0x72, 0x0) /usr/lib/go-1.11/src/runtime/netpoll.go:173 +0x44 internal/poll.(*pollDesc).wait(0x1958014, 0x72, 0x191a400, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:85 +0x7c internal/poll.(*pollDesc).waitRead(0x1958014, 0xffffff00, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:90 +0x2c internal/poll.(*FD).Accept(0x1958000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_unix.go:384 +0x17c net.(*netFD).accept(0x1958000, 0x13d7d, 0x22281a22, 0xc28f4779) /usr/lib/go-1.11/src/net/fd_unix.go:238 +0x20 net.(*TCPListener).accept(0x191c0a8, 0x12460, 0x128fc, 0x6b6f00) /usr/lib/go-1.11/src/net/tcpsock_posix.go:139 +0x20 net.(*TCPListener).AcceptTCP(0x191c0a8, 0x1885060, 0x5ca66400, 0x468c4) /usr/lib/go-1.11/src/net/tcpsock.go:247 +0x3c net/http.tcpKeepAliveListener.Accept(0x191c0a8, 0x19566b8, 0xc, 0x1801180, 0x2990e8) /usr/lib/go-1.11/src/net/http/server.go:3232 +0x1c net/http.(*Server).Serve(0x1926080, 0x431788, 0x191c0a8, 0x0, 0x0) /usr/lib/go-1.11/src/net/http/server.go:2826 +0x1e0 net/http.(*Server).ListenAndServe(0x1926080, 0xa, 0x195675c) /usr/lib/go-1.11/src/net/http/server.go:2764 +0x9c sonda2/src.(*WebServer).Init(0x188c210) /home/pi/go/src/sonda2/src/ws.go:38 +0x268 created by main.main /home/pi/go/src/sonda2/sonda2.go:84 +0xa4 goroutine 19 [select]: github.com/eclipse/paho%2emqtt%2egolang.keepalive(0x194c000) /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 21 [select, 5811 minutes]: github.com/eclipse/paho%2emqtt%2egolang.errorWatch(0x194c000) /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 22 [select]: github.com/eclipse/paho%2emqtt%2egolang.alllogic(0x194c000) /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 23 [select]: github.com/eclipse/paho%2emqtt%2egolang.outgoing(0x194c000) /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 24 [IO wait]: internal/poll.runtime_pollWait(0x6475dfc0, 0x72, 0xa0718) /usr/lib/go-1.11/src/runtime/netpoll.go:173 +0x44 internal/poll.(*pollDesc).wait(0x194e064, 0x72, 0xffffff00, 0x430468, 0x670250) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:85 +0x7c internal/poll.(*pollDesc).waitRead(0x194e064, 0x188ae00, 0x1, 0x1) /usr/lib/go-1.11/src/internal/poll/fd_poll_runtime.go:90 +0x2c internal/poll.(*FD).Read(0x194e050, 0x188ae3e, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_unix.go:169 +0x14c net.(*netFD).Read(0x194e050, 0x188ae3e, 0x1, 0x1, 0x1854200, 0x187b340, 0x1955f98) /usr/lib/go-1.11/src/net/fd_unix.go:202 +0x38 net.(*conn).Read(0x188e588, 0x188ae3e, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/net/net.go:177 +0x58 io.ReadAtLeast(0x42f958, 0x188e588, 0x188ae3e, 0x1, 0x1, 0x1, 0x360d90, 0x19301, 0x188ae3e) /usr/lib/go-1.11/src/io/io.go:310 +0x6c io.ReadFull(0x42f958, 0x188e588, 0x188ae3e, 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, 0x188e588, 0x188e588, 0x42f958, 0x188e588, 0x0) /home/pi/go/src/github.com/eclipse/paho.mqtt.golang/packets/packets.go:105 +0x68 github.com/eclipse/paho%2emqtt%2egolang.incoming(0x194c000) /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 32 [chan receive]: main.printResultsThread.func1(0x188c360, 0x188c210, 0x1) /home/pi/go/src/sonda2/sonda2.go:147 +0x24 created by main.printResultsThread /home/pi/go/src/sonda2/sonda2.go:144 +0x48 goroutine 30 [runnable]: syscall.Syscall6(0xfc, 0x8, 0x1990bd4, 0x40, 0xffffffff, 0x0, 0x0, 0x1, 0x1990bd4, 0x0) /usr/lib/go-1.11/src/syscall/asm_linux_arm.s:45 +0x8 syscall.EpollWait(0x8, 0x1990bd4, 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(0x189a5b0) /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 33 [chan receive]: main.printResultsThread.func2(0x188c390, 0x188c210) /home/pi/go/src/sonda2/sonda2.go:157 +0x24 created by main.printResultsThread /home/pi/go/src/sonda2/sonda2.go:154 +0x78 goroutine 50 [chan receive]: main.printResultsThread.func3(0x188c3c0, 0x188c210) /home/pi/go/src/sonda2/sonda2.go:167 +0x24 created by main.printResultsThread /home/pi/go/src/sonda2/sonda2.go:164 +0xa8 goroutine 2463720 [runnable]: syscall.Syscall(0x3, 0xd, 0x1c82d8d, 0x1, 0xffffffff, 0x0, 0xb) /usr/lib/go-1.11/src/syscall/asm_linux_arm.s:14 +0x8 syscall.read(0xd, 0x1c82d8d, 0x1, 0x1, 0x1853500, 0x0, 0x0) /usr/lib/go-1.11/src/syscall/zsyscall_linux_arm.go:732 +0x40 syscall.Read(0xd, 0x1c82d8d, 0x1, 0x1, 0x1928000, 0x0, 0x0) /usr/lib/go-1.11/src/syscall/syscall_unix.go:172 +0x34 internal/poll.(*FD).Read(0x1958050, 0x1c82d8d, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/internal/poll/fd_unix.go:165 +0xf0 net.(*netFD).Read(0x1958050, 0x1c82d8d, 0x1, 0x1, 0x1829fdc, 0x2, 0x2) /usr/lib/go-1.11/src/net/fd_unix.go:202 +0x38 net.(*conn).Read(0x191c178, 0x1c82d8d, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/lib/go-1.11/src/net/net.go:177 +0x58 net/http.(*connReader).backgroundRead(0x1c82d80) /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