Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #25180

@azilber

Description

@azilber

What version of Go are you using (go version)?

go version go1.10.1 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/azilber/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/azilber/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vg/ds0mtz4933sdqmng71x23f0m0000gn/T/go-build180512687=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Ran this example: https://github.com/howtographql/graphql-go

What did you expect to see?

A running app.

What did you see instead?

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

goroutine 7 [running]:
github.com/howtographql/graphql-go/vendor/github.com/mattes/migrate.(*Migrate).lock.func3(0xc420158200, 0xc4200822a0)
	/Users/azilber/go/src/github.com/howtographql/graphql-go/vendor/github.com/mattes/migrate/migrate.go:867 +0x2a
created by github.com/howtographql/graphql-go/vendor/github.com/mattes/migrate.(*Migrate).lock
	/Users/azilber/go/src/github.com/howtographql/graphql-go/vendor/github.com/mattes/migrate/migrate.go:866 +0x154

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions