This appears not to be a docker-specific problem.

I am running natively on MacOS Sierra and see the same problem. It seems to be 
a Go problem

newt test @repos/apache-mynewt-core/libs/os
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x22f845]

goroutine 1 [running]:
panic(0x406880, 0xc4200120a0)
        /usr/local/Cellar/go/1.7.1/libexec/src/runtime/panic.go:500 +0x1a1
mynewt.apache.org/newt/newt/repo.(*Repo).Name(0x0, 0x1a, 0x0)
        /Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/repo/repo.go:321 
+0x5
mynewt.apache.org/newt/newt/pkg.(*Dependency).setRepoAndName(0xc4204069e0, 
0x664300, 0x0, 0x7fff5fbffb49, 0x1a, 0x7fff5fbffb01, 0xc4204069e0)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/pkg/dependency.go:63 
+0x169
mynewt.apache.org/newt/newt/pkg.(*Dependency).Init(0xc4204069e0, 0x664300, 0x0, 
0x7fff5fbffb49, 0x1a, 0x0, 0x0)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/pkg/dependency.go:74 
+0x57
mynewt.apache.org/newt/newt/pkg.NewDependency(0x664300, 0x0, 0x7fff5fbffb49, 
0x1a, 0x6a23a0, 0x1a, 0x0)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/pkg/dependency.go:84 
+0x8b
mynewt.apache.org/newt/newt/project.(*Project).ResolvePackage(0xc420070f00, 
0x664300, 0xc4200a8f30, 0x7fff5fbffb42, 0x21, 0x4, 0xc420075f20, 0x4)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/project/project.go:531 
+0xfe
mynewt.apache.org/newt/newt/cli.testRunCmd(0xc4200adb00, 0xc420075f10, 0x1, 0x1)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:228 
+0xfe
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc4200adb00,
 0xc420075ed0, 0x1, 0x1, 0xc4200adb00, 0xc420075ed0)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:636
 +0x443
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4200ad200,
 0x4, 0x2c, 0x48ac8a)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:722
 +0x367
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4200ad200,
 0x48ac8a, 0x4)
        
/Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:681
 +0x2b
main.main()
        /Users/dsimmons/dev/go/src/mynewt.apache.org/newt/newt/newt.go:152 
+0x1b6

dg

> On Jan 18, 2017, at 6:59 AM, Li-Chun Ko <[email protected]> wrote:
> 
> Hi all,
> 
> I am a noob here and I am trying to build Mynewt applications with the
> Docker Container (using the Docker Quickstart Terminal).
> 
> I followed the instructions I found here:
> http://mynewt.apache.org/os/get_started/project_create/ and encountered a
> problem in the step when executing this command:
> 
> newt test @apache-mynewt-core/libs/os
> 
> The error messages are shown below.
> I have googled the problem and it seems this caused by the "go" command
> (ref: https://github.com/golang/go/issues/16566).
> However I have no clue, how this problem can be fixed.
> For instance, how do I access the GOPATH parameter from the Docker
> Quickstart Terminal?
> 
> Any suggestion?
> 
> BTW, I am running the Docker Container on a 64 bit Windows 10 platform.
> 
> Br,
> Lichun
> 
> $ ./newt test @repos/apache-mynewt-core/libs/os panic: runtime error:
> invalid memory address or nil pointer dereference [signal SIGSEGV:
> segmentation violation code=0x1 addr=0x0 pc=0x626295] goroutine 1
> [running]: panic(0x7f8480, 0xc420012080)
> /usr/local/go/src/runtime/panic.go:500 +0x1a1
> mynewt.apache.org/newt/newt/repo.(*Repo).Name(0x0, 0x1a, 0x0) /go/src/
> mynewt.apache.org/newt/newt/repo/repo.go:289 +0x5
> mynewt.apache.org/newt/newt/pkg.(*Dependency).setRepoAndName(0xc420322f60,
> 0xa4b180, 0x0, 0x7fffe9ebeef1, 0x1a, 0x7fffe9ebee01, 0xc420322f60) /go/src/
> mynewt.apache.org/newt/newt/pkg/dependency.go:63 +0x169
> mynewt.apache.org/newt/newt/pkg.(*Dependency).Init(0xc420322f60, 0xa4b180,
> 0x0, 0x7fffe9ebeef1, 0x1a, 0x7fffffffffffff, 0x0) /go/src/
> mynewt.apache.org/newt/newt/pkg/dependency.go:74 +0x57
> mynewt.apache.org/newt/newt/pkg.NewDependency(0xa4b180, 0x0,
> 0x7fffe9ebeef1, 0x1a, 0xa89980, 0x1a, 0x0) /go/src/
> mynewt.apache.org/newt/newt/pkg/dependency.go:84 +0x8b
> mynewt.apache.org/newt/newt/project.(*Project).ResolvePackage(0xc420052660,
> 0xa4b180, 0xc42006e3f0, 0x7fffe9ebeeea, 0x21, 0x0, 0x7f3e80, 0xc42000d6e0)
> /go/src/mynewt.apache.org/newt/newt/project/project.go:547 +0xfe
> mynewt.apache.org/newt/newt/cli.testRunCmd(0xc420208b40, 0xc4201c7a00, 0x1,
> 0x1) /go/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:225 +0x119
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc420208b40,
> 0xc4201c79c0, 0x1, 0x1, 0xc420208b40, 0xc4201c79c0) /go/src/
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:636
> +0x443
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420074fc0,
> 0x4, 0x2c, 0x87a8a3) /go/src/
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:722
> +0x367
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420074fc0,
> 0x87a8a3, 0x4) /go/src/
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:681
> +0x2b main.main() /go/src/mynewt.apache.org/newt/newt/newt.go:146 +0x1b6

--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin 
<http://linkedin.com/in/davidgsimmons> • Twitter 
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.
* If you cannot read the PGP.sig attachment, please go to
 * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
 * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!

There are only 2 hard things in computer science: Cache invalidation, naming 
things, and off-by-one errors.


Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to