Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Build issue with GO

I am trying to create a new app but the build step won't complete.
I've tried creating and compiling a new project from the web page as well as from the CLI, but the result is the same.
The remote build throws a GO error:

$ mos build
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x47 pc=0xf5133c66]

runtime stack:
runtime.throw(0x8892460, 0x2a)
        /usr/lib/go-1.6/src/runtime/panic.go:547 +0x7f
runtime.sigpanic()
        /usr/lib/go-1.6/src/runtime/sigpanic_unix.go:12 +0x59
[...]

In the 2nd case, what is odd is that my version of go is v1.9, and the library is installed in /usr/lib/go/.

$ go env|grep GOROOT
GOROOT="/usr/lib/go"

The build command, however, seems to be looking for files in /usr/lib/go-1.6/. That folder does not exist on my system. Is that from mongoose.cloud? Should I be using go v1.6 instead?

Thanked by 1tsaisb

Comments

  • SergeySergey Dublin, Ireland

    What is the full trace ?

  • tsaisbtsaisb taiwan

    I have the same problem

  • tsaisbtsaisb taiwan

    ~/code/iot/test$ mos build
    fatal error: unexpected signal during runtime execution
    [signal 0xb code=0x1 addr=0x63 pc=0xc5d6ab46]

    runtime stack:
    runtime.throw(0x8894b20, 0x2a)
    /usr/lib/go-1.6/src/runtime/panic.go:547 +0x7f
    runtime.sigpanic()
    /usr/lib/go-1.6/src/runtime/sigpanic_unix.go:12 +0x59

    goroutine 35 [syscall, locked to thread]:
    runtime.cgocall(0x85ace50, 0xd77b6df0, 0x0)
    /usr/lib/go-1.6/src/runtime/cgocall.go:123 +0x112 fp=0xd77b6dc0 sp=0xd77b6da8
    net._C2func_getaddrinfo(0xc5000518, 0x0, 0xd79804a0, 0xd7984058, 0x0, 0x0, 0x0)
    ??:0 +0x47 fp=0xd77b6df0 sp=0xd77b6dc0
    net.cgoLookupIPCNAME(0xd7980160, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/cgo_unix.go:111 +0x342 fp=0xd77b6eac sp=0xd77b6df0
    net.cgoLookupIP(0xd7980160, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd7980160)
    /usr/lib/go-1.6/src/net/cgo_unix.go:163 +0x45 fp=0xd77b6ed8 sp=0xd77b6eac
    net.lookupIP(0xd7980160, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/lookup_unix.go:67 +0x72 fp=0xd77b6f10 sp=0xd77b6ed8
    net.glob.func16(0x8919148, 0xd7980160, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/hook.go:10 +0x44 fp=0xd77b6f30 sp=0xd77b6f10
    net.lookupIPDeadline.func1(0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/lookup.go:106 +0x57 fp=0xd77b6f70 sp=0xd77b6f30
    internal/singleflight.(*Group).doCall(0x8e36790, 0xd798c150, 0xd7980160, 0xf, 0xd7982080)
    /usr/lib/go-1.6/src/internal/singleflight/singleflight.go:93 +0x21 fp=0xd77b6fc8 sp=0xd77b6f70
    runtime.goexit()
    /usr/lib/go-1.6/src/runtime/asm_386.s:1585 +0x1 fp=0xd77b6fcc sp=0xd77b6fc8
    created by internal/singleflight.(*Group).DoChan
    /usr/lib/go-1.6/src/internal/singleflight/singleflight.go:86 +0x30d

    goroutine 1 [running]:
    goroutine running on other thread; stack unavailable

    goroutine 17 [syscall, locked to thread]:
    runtime.goexit()
    /usr/lib/go-1.6/src/runtime/asm_386.s:1585 +0x1

    goroutine 5 [chan receive]:
    cesanta.com/vendor/github.com/golang/glog.(*loggingT).flushDaemon(0x8e36d00)
    /go/src/cesanta.com/vendor/github.com/golang/glog/glog.go:882 +0x61
    created by cesanta.com/vendor/github.com/golang/glog.init.1
    /go/src/cesanta.com/vendor/github.com/golang/glog/glog.go:410 +0x21d

    goroutine 6 [syscall]:
    os/signal.signal_recv(0x0)
    /usr/lib/go-1.6/src/runtime/sigqueue.go:116 +0x11e
    os/signal.loop()
    /usr/lib/go-1.6/src/os/signal/signal_unix.go:22 +0x1a
    created by os/signal.init.1
    /usr/lib/go-1.6/src/os/signal/signal_unix.go:28 +0x36

    goroutine 7 [select]:
    net/http.(Transport).getConn(0xd782c000, 0xd798e000, 0x0, 0xd798a0c0, 0x5, 0xd7980160, 0x13, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/transport.go:711 +0x408
    net/http.(
    Transport).RoundTrip(0xd782c000, 0xd798e000, 0xd782c000, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/transport.go:311 +0x66d
    net/http.send(0xd798e000, 0xc6e00328, 0xd782c000, 0x0, 0x0, 0x0, 0x0, 0xd798a140, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/client.go:260 +0x5ae
    net/http.(Client).send(0x8e369d0, 0xd798e000, 0x0, 0x0, 0x0, 0x0, 0x70, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/client.go:155 +0x127
    net/http.(
    Client).doFollowingRedirects(0x8e369d0, 0xd798e000, 0x8919268, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/client.go:475 +0x734
    net/http.(*Client).Get(0x8e369d0, 0xd798a0c0, 0x39, 0x24, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/client.go:422 +0x92
    net/http.Get(0xd798a0c0, 0x39, 0x87c4180, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/client.go:397 +0x3f
    cesanta.com/mos/update.GetServerMosVersion(0x87c4180, 0x6, 0x0, 0x0, 0x0)
    /go/src/cesanta.com/mos/update/update.go:54 +0x82
    main.doBuild.func1(0xd790e540)
    /go/src/cesanta.com/mos/build.go:145 +0x35
    created by main.doBuild
    /go/src/cesanta.com/mos/build.go:151 +0x11b

    goroutine 34 [select]:
    net.lookupIPDeadline(0xd7980160, 0xf, 0xd168e6c7, 0xe, 0x350a8f6, 0x8e36b00, 0x0, 0x0, 0x0, 0x0, ...)
    /usr/lib/go-1.6/src/net/lookup.go:109 +0x5d3
    net.internetAddrList(0x87be088, 0x3, 0xd7980160, 0x13, 0xd168e6c7, 0xe, 0x350a8f6, 0x8e36b00, 0x0, 0x0, ...)
    /usr/lib/go-1.6/src/net/ipsock.go:252 +0x589
    net.resolveAddrList(0x87c2b10, 0x4, 0x87be088, 0x3, 0xd7980160, 0x13, 0xd168e6c7, 0xe, 0x350a8f6, 0x8e36b00, ...)
    /usr/lib/go-1.6/src/net/dial.go:158 +0x364
    net.(Dialer).Dial(0xd77a2440, 0x87be088, 0x3, 0xd7980160, 0x13, 0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/dial.go:216 +0x14e
    net.(
    Dialer).Dial-fm(0x87be088, 0x3, 0xd7980160, 0x13, 0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/transport.go:38 +0x58
    net/http.(Transport).dial(0xd782c000, 0x87be088, 0x3, 0xd7980160, 0x13, 0x0, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/transport.go:659 +0x68
    net/http.(
    Transport).dialConn(0xd782c000, 0x0, 0xd798a0c0, 0x5, 0xd7980160, 0x13, 0x0, 0x0, 0x0)
    /usr/lib/go-1.6/src/net/http/transport.go:762 +0x19be
    net/http.(Transport).getConn.func4(0xd782c000, 0x0, 0xd798a0c0, 0x5, 0xd7980160, 0x13, 0xd798a180)
    /usr/lib/go-1.6/src/net/http/transport.go:706 +0x4d
    created by net/http.(
    Transport).getConn
    /usr/lib/go-1.6/src/net/http/transport.go:708 +0x201

Sign In or Register to comment.