Crash on Raspberry Pi 3



  • I installed sia 1.0.4 from the debian packages, it works, it synchs, but when it gets to around 36% it crashes with this:

    goroutine 57 [chan receive]:
    github.com/inconshreveable/muxado/proto.(*Session).Accept(0x10f502a0, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/proto/session.go:159 +0x60
    github.com/inconshreveable/muxado.(*sessionAdaptor).Accept(0x10f44218, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/adaptor.go:33 +0x54
    github.com/NebulousLabs/Sia/modules/gateway.(*peer).accept(0x10dba960, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/peers.go:51 +0x54
    github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).threadedListenPeer(0x10cbe7e0, 0x10dba960)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:159 +0x128
    created by github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).addPeer
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/peers.go:62 +0x7c
    
    goroutine 100 [IO wait]:
    net.runtime_pollWait(0x75373ca8, 0x72, 0x10e8e0d0)
            /usr/lib/go-1.7/src/runtime/netpoll.go:160 +0x60
    net.(*pollDesc).wait(0x10f403f8, 0x72, 0x0, 0x0)
            /usr/lib/go-1.7/src/net/fd_poll_runtime.go:73 +0x34
    net.(*pollDesc).waitRead(0x10f403f8, 0x0, 0x0)
            /usr/lib/go-1.7/src/net/fd_poll_runtime.go:78 +0x30
    net.(*netFD).Read(0x10f403c0, 0x10e8e0d0, 0x8, 0x8, 0x0, 0x7eb3f0, 0x10c76000)
            /usr/lib/go-1.7/src/net/fd_unix.go:243 +0x1f0
    net.(*conn).Read(0x10cb77d0, 0x10e8e0d0, 0x8, 0x8, 0x0, 0x0, 0x0)
            /usr/lib/go-1.7/src/net/net.go:173 +0xb8
    github.com/inconshreveable/muxado/proto/frame.(*BasicTransport).Read(0x10fce000, 0x10e8e0d0, 0x8, 0x8, 0x8, 0x0, 0x0)
            <autogenerated>:139 +0x90
    io.ReadAtLeast(0x7ea460, 0x10fce000, 0x10e8e0d0, 0x8, 0x8, 0x8, 0x0, 0x0, 0x0)
            /usr/lib/go-1.7/src/io/io.go:307 +0xdc
    io.ReadFull(0x7ea460, 0x10fce000, 0x10e8e0d0, 0x8, 0x8, 0x8, 0x0, 0x0)
            /usr/lib/go-1.7/src/io/io.go:325 +0x5c
    github.com/inconshreveable/muxado/proto/frame.(*BasicTransport).ReadFrame(0x10fce000, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/proto/frame/transport.go:34 +0x80
    github.com/inconshreveable/muxado/proto.(*Session).reader(0x10f24000)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/proto/session.go:276 +0xac
    created by github.com/inconshreveable/muxado/proto.NewSession
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/proto/session.go:104 +0x514
    
    goroutine 101 [chan receive]:
    github.com/inconshreveable/muxado/proto.(*Session).Accept(0x10f24000, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/proto/session.go:159 +0x60
    github.com/inconshreveable/muxado.(*sessionAdaptor).Accept(0x10f44010, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/inconshreveable/muxado/adaptor.go:33 +0x54
    github.com/NebulousLabs/Sia/modules/gateway.(*peer).accept(0x10ed8180, 0x0, 0x0, 0x0, 0x0)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/peers.go:51 +0x54
    github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).threadedListenPeer(0x10cbe7e0, 0x10ed8180)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:159 +0x128
    created by github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).addPeer
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/peers.go:62 +0x7c
    
    goroutine 6 [select]:
    github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).threadedListenPeer.func1(0x10ea80c0, 0x10cbe7e0, 0x10ea8100, 0x10ed8180)
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:144 +0x2c8
    created by github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).threadedListenPeer
            /build/sia-qwslgU/sia-1.0.4/obj-arm-linux-gnueabihf/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:156 +0x11c
    

    Any pointers? Thank you!


  • admins

    That does not look like the whole error, The whole error is probably some thousands of lines long.

    v1.0.4 is a very old version. I'm guessing that whatever bug you ran into today does not exist in v1.2.0, the most recent version. We are working with the debian maintainers to try and keep things up to date, but it's a slow process.



  • Thank you. I'll keep an eye on this forum, then.



  • Go seems very easy to crosscompile.

    Like this.
    If you wannt to look into it see the sia github page + google crosscompile golang.
    GOOS=linux GOARCH=arm64 GOPATH=/home/bjdo/go/ make release-std

    I ll do it and upload somewhere, this is totally unstested I have no arm64 device.
    be right back.



  • https://files.slack.com/files-pri/T04U9QBS8-F50T71YUE/download/1.2.0-arm64.tar.gz

    (generally be careful to run stuff provided from any random guy on internet)


Log in to reply