Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

segmentation violation while dep ensure #607

Closed
sas1024 opened this issue May 19, 2017 · 2 comments
Closed

segmentation violation while dep ensure #607

sas1024 opened this issue May 19, 2017 · 2 comments

Comments

@sas1024
Copy link

sas1024 commented May 19, 2017

  1. What version of Go are you using (go version)?
    go 1.8.1

  2. What operating system and processor architecture are you using?
    Darwin/amd64

  3. What did you do?
    I was updated my package and want to update this package dependency in another project.

  4. What did you expect to see?
    dep ensure working.

  5. What did you see instead?

$ dep ensure gitlab.devim.team/microservices/employeesvc@master

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x114d608]

goroutine 1 [running]:
github.com/golang/dep/internal/gps/pkgtree.wmToReach.func3(0xc4202bf6e0, 0x1, 0x1, 0xc42033eac1, 0x37)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/pkgtree/pkgtree.go:632 +0x78
github.com/golang/dep/internal/gps/pkgtree.wmToReach.func4(0xc42033eac1, 0x37, 0xc4202bf6e0, 0x1, 0x1, 0xc4202bf601)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/pkgtree/pkgtree.go:771 +0x462
github.com/golang/dep/internal/gps/pkgtree.wmToReach.func4(0xc42033e940, 0x3a, 0xc4202bf6e0, 0x1, 0x1, 0x0)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/pkgtree/pkgtree.go:728 +0xd08
github.com/golang/dep/internal/gps/pkgtree.wmToReach(0xc420552238, 0xc420552201, 0xc4205521f8, 0xc4201704c8)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/pkgtree/pkgtree.go:810 +0xd1c
github.com/golang/dep/internal/gps/pkgtree.PackageTree.ToReachMap(0xc420197a40, 0x2b, 0xc420223b60, 0x10001, 0xc420228390, 0x167f520, 0xc42045f5a0)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/pkgtree/pkgtree.go:501 +0x2c0
github.com/golang/dep/internal/gps.(*solver).getImportsAndConstraintsOf(0xc42019a000, 0xc420197a40, 0x2b, 0x0, 0x0, 0x167f520, 0xc42045f5a0, 0xc420383f80, 0x3, 0x4, ...)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/solver.go:537 +0x1f7
github.com/golang/dep/internal/gps.(*solver).check(0xc42019a000, 0xc420197a40, 0x2b, 0x0, 0x0, 0x167f520, 0xc42045f5a0, 0xc420383f80, 0x3, 0x4, ...)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/satisfy.go:43 +0x1f0
github.com/golang/dep/internal/gps.(*solver).findValidVersion(0xc42019a000, 0xc4203766e0, 0xc420383f80, 0x3, 0x4, 0x0, 0xc420383f80)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/solver.go:807 +0x2d5
github.com/golang/dep/internal/gps.(*solver).createVersionQueue(0xc42019a000, 0xc420197a40, 0x2b, 0x0, 0x0, 0xc420383f80, 0x3, 0x4, 0x0, 0x0, ...)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/solver.go:780 +0xafc
github.com/golang/dep/internal/gps.(*solver).solve(0xc42019a000, 0x0, 0x0, 0x32)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/solver.go:397 +0x471
github.com/golang/dep/internal/gps.(*solver).Solve(0xc42019a000, 0x47, 0x167b220, 0x16c8dc8, 0xc4200180c2)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/internal/gps/solver.go:348 +0xab
main.(*ensureCommand).Run(0xc420137560, 0xc420133780, 0xc420010260, 0x1, 0x1, 0x0, 0x0)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/cmd/dep/ensure.go:148 +0x3c8
main.(*Config).Run(0xc42006cf00, 0xc42006cf00)
        /Users/sas1024/dev/golang/src/github.com/golang/dep/cmd/dep/main.go:159 +0x8b3
main.main()
        /Users/sas1024/dev/golang/src/github.com/golang/dep/cmd/dep/main.go:44 +0x253
@sdboyer
Copy link
Member

sdboyer commented May 19, 2017

Thanks for the report! This is gonna be the same underlying problem as #351.

@sdboyer
Copy link
Member

sdboyer commented Aug 10, 2017

underlying issue has been band-aid-ed

@sdboyer sdboyer closed this as completed Aug 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants