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

two panic detected #1572

Closed
mrpalide opened this issue May 24, 2023 · 0 comments
Closed

two panic detected #1572

mrpalide opened this issue May 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mrpalide
Copy link
Contributor

Describe the bug

  1. An issue on running visor with old config after current changes in initDmsgHTTPLogServer that get panic as follow
    [2023-05-24T13:41:06.325103382Z] INFO [visor:startup]: Begin startup. 
    public_key=0218905f5d9079bab0b62985a05bd162623b193e948e17e7b719133f2c60b92093
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb3e9f7]
    goroutine 37 [running]:
    github.com/skycoin/skywire/pkg/visor.initDmsgHTTPLogServer({0x1291690?, 0xc00021e780}, 0xc0001c7b00, 0xc000107bc0?)
    /skywire-services/vendor/github.com/skycoin/skywire/pkg/visor/init.go:395 +0x277
    github.com/skycoin/skywire/pkg/visor.withInitCtx.func1({0x1291690, 0xc00021e780}, 0xc00021e780?)
    /skywire-services/vendor/github.com/skycoin/skywire/pkg/visor/init.go:1560 +0xb9
    github.com/skycoin/skywire/pkg/visor/visorinit.(*Module).InitConcurrent(0x189f8c0, {0x1291690?, 0xc00021e780})
    /skywire-services/vendor/github.com/skycoin/skywire/pkg/visor/visorinit/module.go:137 +0x282
    created by github.com/skycoin/skywire/pkg/visor/visorinit.(*Module).InitConcurrent
    /skywire-services/vendor/github.com/skycoin/skywire/pkg/visor/visorinit/module.go:116 +0x117
    
  2. An issue on start skysocks by its skywire-cli command. Panic by following errors:
    mohammed@Mohammeds-MacBook-Air build % ./skywire-cli proxy start dummypk
    panic: runtime error: index out of range [1] with length 1
    goroutine 1 [running, locked to thread]:
    github.com/skycoin/skywire/cmd/skywire-cli/commands/proxy.glob..func1(0x101b75fe0?, {0x1400031d9f0, 0x1, 0x1?})
    /Users/mohammed/Projects/Skycoin/mrpalide/skywire/cmd/skywire-cli/commands/proxy/proxy.go:57 +0x60c
    github.com/spf13/cobra.(*Command).execute(0x101b75fe0, {0x1400031d9c0, 0x1, 0x1})
    /Users/mohammed/Projects/Skycoin/mrpalide/skywire/vendor/github.com/spf13/cobra/command.go:860 +0x4ac
    github.com/spf13/cobra.(*Command).ExecuteC(0x101b72660)
    /Users/mohammed/Projects/Skycoin/mrpalide/skywire/vendor/github.com/spf13/cobra/command.go:974 +0x354
    github.com/spf13/cobra.(*Command).Execute(...)
    /Users/mohammed/Projects/Skycoin/mrpalide/skywire/vendor/github.com/spf13/cobra/command.go:902
    github.com/skycoin/skywire/cmd/skywire-cli/commands.Execute()
    /Users/mohammed/Projects/Skycoin/mrpalide/skywire/cmd/skywire-cli/commands/root.go:224 +0x7c
    main.main()
    /Users/mohammed/Projects/Skycoin/mrpalide/skywire/cmd/skywire-cli/skywire-cli.go:9 +0x1c
    

Environment information:

  • OS: e.g. Mac OS X
  • Platform: the equivalent of uname -smr or uname -smrv e.g. Darwin 22.4.0 arm64
@mrpalide mrpalide added the bug Something isn't working label May 24, 2023
@0pcom 0pcom closed this as completed May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants