-
-
Notifications
You must be signed in to change notification settings - Fork 693
Closed
Description
Preliminary checklist
- I am using the latest stable version of DDEV (see upgrade guide)
- I have searched existing issues
- I have checked the troubleshooting guide
- I have run
ddev debug testto include output below
Output of ddev debug test
If, for some reason, the file ~/.ddev/project_list.yaml is incomplete, in my case, a line starting with "approot:..." was missing, DDEV returns the following error:
The following is the output of any ddev command, included ddev debug test:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xa3af34]
goroutine 1 [running]:
github.com/ddev/ddev/pkg/ddevapp.(*DdevApp).CheckExistingAppInApproot(0xc000469188)
/home/runner/work/ddev/ddev/pkg/ddevapp/ddevapp.go:1939 +0xb4
github.com/ddev/ddev/pkg/ddevapp.(*DdevApp).Start(0xc000469188)
/home/runner/work/ddev/ddev/pkg/ddevapp/ddevapp.go:1349 +0x10ef
github.com/ddev/ddev/cmd/ddev/cmd.init.func65(0x1343540, {0x136cf20, 0x0, 0x0})
/home/runner/work/ddev/ddev/cmd/ddev/cmd/start.go:135 +0xa05
github.com/spf13/cobra.(*Command).execute(0x1343540, {0x136cf20, 0x0, 0x0})
/home/runner/work/ddev/ddev/vendor/github.com/spf13/cobra/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x1341b60)
/home/runner/work/ddev/ddev/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/work/ddev/ddev/vendor/github.com/spf13/cobra/command.go:1041
github.com/ddev/ddev/cmd/ddev/cmd.Execute()
/home/runner/work/ddev/ddev/cmd/ddev/cmd/root.go:120 +0x1a
main.main()
/home/runner/work/ddev/ddev/cmd/ddev/main.go:27 +0xd3
Expected Behavior
don't crash and inform the user that the configuration file is not compliant.
Actual Behavior
SIGSEGV
Steps To Reproduce
I'm using latest Archlinux with default config.
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels