trimoq opened a new issue #1050: Segfault when Scheme not defined
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/1050
 
 
   Wskdeploy crashes with a Segfault when the URL Scheme is not defined in 
`apihost`:
   
   - version: 0.10.0-incubating
   - manifest: the sample from [the 
getting-started-guide](https://openwhisk.apache.org/documentation.html#wskdeploy)
   
   To reproduce the segfault:
   ```
   wsk property set --auth ....
   wsk property set --apihost 192.168.55.5:31001
   wskdeploy
   ```
   in contrast, the following works:
   ```
   wsk property set --auth ....
   wsk property set --apihost https://192.168.55.5:31001
   wskdeploy
   ```
   
   The segfault seems to originate [this 
code](https://github.com/apache/incubator-openwhisk-client-go/blob/47ad3426a4e3632fd17d859303f4074ae7b959ff/whisk/wskprops.go#L72)
 
   
   
   the error:
   ```
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x72e81a]
   
   goroutine 1 [running]:
   
github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/apache/incubator-openwhisk-client-go/whisk.GetUrlBase(0x7fff505c4404,
 0x12, 0x1, 0x1, 0xc4201269c0)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/apache/incubator-openwhisk-client-go/whisk/wskprops.go:72
 +0xea
   
github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/apache/incubator-openwhisk-client-go/whisk.NewClient(0xc420256180,
 0xc420226c80, 0x0, 0x0, 0xc420226c80)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/apache/incubator-openwhisk-client-go/whisk/client.go:130
 +0x778
   
github.com/apache/incubator-openwhisk-wskdeploy/deployers.glob..func5(0xc420226c80,
 0x15, 0x0, 0x0)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/deployers/whiskclient.go:81
 +0x53
   github.com/apache/incubator-openwhisk-wskdeploy/cmd.Deploy(0xb09ba0, 0x1, 
0xc420116238)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/cmd/root.go:231
 +0x4a7
   github.com/apache/incubator-openwhisk-wskdeploy/cmd.RootCmdImp(0xb09ba0, 
0xc42010c7e0, 0x0, 0x6, 0x0, 0x0)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/cmd/root.go:51
 +0x2b
   
github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/spf13/cobra.(*Command).execute(0xb09ba0,
 0xc420092010, 0x6, 0x6, 0xb09ba0, 0xc420092010)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/spf13/cobra/command.go:632
 +0x3e8
   
github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xb09ba0,
 0x0, 0xb0a200, 0x1)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/spf13/cobra/command.go:722
 +0x2fe
   
github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/spf13/cobra.(*Command).Execute(0xb09ba0,
 0x7, 0x7)
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/vendor/github.com/spf13/cobra/command.go:681
 +0x2b
   github.com/apache/incubator-openwhisk-wskdeploy/cmd.Execute()
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/cmd/root.go:65
 +0xe4
   main.main()
        
/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/main.go:26
 +0x20
   ```
   Do we have to set the scheme in the apihost or should the code in 
`GetUrlBase` handle this correctly?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to