Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV when using . as package path #118

Open
petergtz opened this issue Aug 23, 2021 · 0 comments
Open

SIGSEGV when using . as package path #118

petergtz opened this issue Aug 23, 2021 · 0 comments
Labels

Comments

@petergtz
Copy link
Owner

$ ~/workplace/go/src/github.com/petergtz/alexa-journal
± |master {1} U:7 ?:3 ✗| → pegomock generate --use-experimental-model-gen . JournalProvider
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x12f4b95]

goroutine 1 [running]:
github.com/petergtz/pegomock/modelgen/loader.GenerateModel(0x7ffeefbff60f, 0x1, 0x7ffeefbff611, 0xf, 0x0, 0x100eddb, 0x100eddb)
	/Volumes/workplace/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/modelgen/loader/loader.go:22 +0xd5
github.com/petergtz/pegomock/pegomock/filehandling.GenerateMockSourceCode(0xc00009a240, 0x2, 0x2, 0x0, 0x0, 0xc0000de018, 0x12, 0x0, 0x0, 0x0, ...)
	/Volumes/workplace/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/pegomock/filehandling/filehandling.go:102 +0x21a
github.com/petergtz/pegomock/pegomock/filehandling.GenerateMockFile(0xc00009a240, 0x2, 0x2, 0xc0000da060, 0x5b, 0x0, 0x0, 0xc0000de018, 0x12, 0x0, ...)
	/Volumes/workplace/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/pegomock/filehandling/filehandling.go:64 +0xdd
github.com/petergtz/pegomock/pegomock/filehandling.GenerateMockFileInOutputDir(0xc00009a240, 0x2, 0x2, 0xc00002c0a4, 0x3e, 0x0, 0x0, 0x0, 0x0, 0xc0000de018, ...)
	/Volumes/workplace/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/pegomock/filehandling/filehandling.go:40 +0x18d
main.Run(0xc0000200a0, 0x5, 0x5, 0x1401fd0, 0xc000010020, 0x1401fb0, 0xc000010010, 0xc0000d8000, 0xc0000da000)
	/Volumes/workplace/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/pegomock/main.go:116 +0x218c
main.main()
	/Volumes/workplace/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/pegomock/main.go:37 +0xa8
@petergtz petergtz added the bug label Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant