Bug 1760588 - odo service create crash under Win/Cygwin
Summary: odo service create crash under Win/Cygwin
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: odo
Version: 4.2.0
Hardware: Unspecified
OS: Windows
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
Yana Hontyk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-10 21:25 UTC by Yana Hontyk
Modified: 2022-11-07 08:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-07 08:14:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift odo issues 1907 0 'None' closed odo service create crash under Win/Cygwin 2022-11-07 08:14:42 UTC

Description Yana Hontyk 2019-10-10 21:25:22 UTC
Description of problem:
odo service create crash under Win/Cygwin

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. odo service create

Actual results:

    $ odo service create
    ? Which kind of service do you wish to create [Use arrows to move, type to filter]

        database
        datagrid
        decisionserver
        eap
        fuse
        hawtio
        instant-app
        panic: runtime error: invalid memory address or nil pointer dereference
        [signal 0xc0000005 code=0x0 addr=0x10 pc=0x13fb8d6]

    goroutine 1 [running]:
    github.com/openshift/odo/pkg/service.NewServicePlan(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/service/service.go:360 +0xf6
    github.com/openshift/odo/pkg/odo/cli/service/ui.enterServicePropertiesInteractively(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/ui/ui.go:246 +0x99
    github.com/openshift/odo/pkg/odo/cli/service/ui.EnterServicePropertiesInteractively(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/ui/ui.go:240 +0x7d
    github.com/openshift/odo/pkg/odo/cli/service.(*ServiceCreateOptions).Complete(0xc000742680, 0xc00081f500, 0x6, 0xc0006f8b40, 0x2bced18, 0x0, 0x0, 0xc000a402d0, 0x18f9970)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/create.go:117 +0x5c2
    github.com/openshift/odo/pkg/odo/genericclioptions.GenericRun(0x1b2eac0, 0xc000742680, 0xc0006f8b40, 0x2bced18, 0x0, 0x0)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/genericclioptions/runnable.go:15 +0x75
    github.com/openshift/odo/pkg/odo/cli/service.NewCmdServiceCreate.func1(0xc0006f8b40, 0x2bced18, 0x0, 0x0)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/create.go:243 +0x65
    github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).execute(0xc0006f8b40, 0x2bced18, 0x0, 0x0, 0xc0006f8b40, 0x2bced18)
    /home/travis/gopath/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:702 +0x2da
    github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc00078d200, 0x8, 0xc000002180, 0x1519649)
    /home/travis/gopath/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:783 +0x2e3
    github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).Execute(0xc00078d200, 0x19fe890, 0xc000648ae0)
    /home/travis/gopath/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:736 +0x32
    main.main()
    /home/travis/gopath/src/github.com/openshift/odo/cmd/odo/odo.go:65 +0x357


Expected results:

No crash

Additional info:
The crash does not occur under native Windows shell (cmd)


Note You need to log in before you can comment on or make changes to this bug.