[ 
https://issues.apache.org/jira/browse/MYNEWT-873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christopher Collins resolved MYNEWT-873.
----------------------------------------
    Resolution: Duplicate

> newt crashes during 'newt install'
> ----------------------------------
>
>                 Key: MYNEWT-873
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-873
>             Project: Mynewt
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>          Components: Newt
>    Affects Versions: v1_3_0_rel
>            Reporter: Marko Kiiskila
>            Assignee: Sterling Hughes
>            Priority: Major
>
> There might, or might not have been, an attempt to run 'newt install' before 
> for this project.
> Network was slow, so they might've stopped the fetch in the middle. But I'm 
> not certain
> of that.
> nu@mc-117:~/myproj$ newt install
> panic: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x75d4ce]
> goroutine 1 [running]:
> mynewt.apache.org/newt/newt/repo.(*Version).ToNuVersion(...)
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/repo/version.go:162
> mynewt.apache.org/newt/newt/repo.(*Repo).CheckNewtCompatibility(0xc420094e10, 
> 0x0, 0x1, 0x2, 0x0, 0x0, 0x0, 0x1)
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/repo/repo.go:796 
> +0x5e
> mynewt.apache.org/newt/newt/project.(*Project).loadRepo(0xc420064ae0, 
> 0xc4200157a0, 0x12, 0xc4200cc0e0, 0x1, 0x1)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:427 
> +0x51c
> mynewt.apache.org/newt/newt/project.(*Project).loadConfig(0xc420064ae0, 0x0, 
> 0xc42007dbc0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:505 
> +0x421
> mynewt.apache.org/newt/newt/project.(*Project).Init(0xc420064ae0, 
> 0xc420014184, 0x10, 0x1c, 0x8363c0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:544 
> +0xed
> mynewt.apache.org/newt/newt/project.NewProject(0xc420014184, 0x10, 
> 0xc420014184, 0x10, 0x0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:135 
> +0x58
> mynewt.apache.org/newt/newt/project.LoadProject(0xc420014184, 0x10, 
> 0xc420057bd8, 0xc420062080, 0xc420000180)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:719 
> +0x7d
> mynewt.apache.org/newt/newt/project.initProject(0xc420014184, 0x10, 
> 0xc420014184, 0x10)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:74 
> +0x39
> mynewt.apache.org/newt/newt/project.initialize(0x4, 0xc420057c90)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:92 
> +0x89
> mynewt.apache.org/newt/newt/project.TryGetProject(0x4, 0xc420019138, 0x4)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:100 
> +0x22
> mynewt.apache.org/newt/newt/cli.TryGetProject(0x0)
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/cli/util.go:208 
> +0x26
> mynewt.apache.org/newt/newt/cli.installRunCmd(0xc420161200, 0xb6fcf8, 0x0, 
> 0x0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/cli/project_cmds.go:76 
> +0x26
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc420161200,
>  0xb6fcf8, 0x0, 0x0, 0xc420161200, 0xb6fcf8)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:636
>  +0x234
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4200ced80,
>  0xc42016e000, 0xc42016e900, 0xc42016e6c0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:722
>  +0x2fe
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4200ced80,
>  0xc42007d290, 0xc420057f10)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:681
>  +0x2b
> main.main()
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/newt.go:170 +0x1ac
> gnu@mc-117:~/myproj$ cd ..
> gnu@mc-117:~$ cd adafruit/
> gnu@mc-117:~/adafruit$ cd myproj/
> gnu@mc-117:~/adafruit/myproj$ newt install
> panic: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x75d4ce]
> goroutine 1 [running]:
> mynewt.apache.org/newt/newt/repo.(*Version).ToNuVersion(...)
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/repo/version.go:162
> mynewt.apache.org/newt/newt/repo.(*Repo).CheckNewtCompatibility(0xc4200aae10, 
> 0x0, 0x1, 0x2, 0x0, 0x0, 0x0, 0x1)
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/repo/repo.go:796 
> +0x5e
> mynewt.apache.org/newt/newt/project.(*Project).loadRepo(0xc42009ea80, 
> 0xc4200a71a0, 0x12, 0xc4200e20e0, 0x1, 0x1)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:427 
> +0x51c
> mynewt.apache.org/newt/newt/project.(*Project).loadConfig(0xc42009ea80, 0x0, 
> 0xc420083bc0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:505 
> +0x421
> mynewt.apache.org/newt/newt/project.(*Project).Init(0xc42009ea80, 
> 0xc420014184, 0x19, 0x25, 0x8363c0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:544 
> +0xed
> mynewt.apache.org/newt/newt/project.NewProject(0xc420014184, 0x19, 
> 0xc420014184, 0x19, 0x0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:135 
> +0x58
> mynewt.apache.org/newt/newt/project.LoadProject(0xc420014184, 0x19, 
> 0xc420057bd8, 0xc420090040, 0xc420000180)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:719 
> +0x7d
> mynewt.apache.org/newt/newt/project.initProject(0xc420014184, 0x19, 
> 0xc420014184, 0x19)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:74 
> +0x39
> mynewt.apache.org/newt/newt/project.initialize(0x4, 0xc420057c90)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:92 
> +0x89
> mynewt.apache.org/newt/newt/project.TryGetProject(0x4, 0xc42008b058, 0x4)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/project/project.go:100 
> +0x22
> mynewt.apache.org/newt/newt/cli.TryGetProject(0x0)
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/cli/util.go:208 
> +0x26
> mynewt.apache.org/newt/newt/cli.installRunCmd(0xc42017b200, 0xb6fcf8, 0x0, 
> 0x0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/cli/project_cmds.go:76 
> +0x26
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc42017b200,
>  0xb6fcf8, 0x0, 0x0, 0xc42017b200, 0xb6fcf8)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:636
>  +0x234
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4200e4d80,
>  0xc420188000, 0xc420188900, 0xc4201886c0)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:722
>  +0x2fe
> mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4200e4d80,
>  0xc420083290, 0xc420057f10)
>     
> /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:681
>  +0x2b
> main.main()
>     /tmp/mynewt.YXJAfVKhPc/src/mynewt.apache.org/newt/newt/newt.go:170 +0x1ac



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to