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

[ bug ] pouch logs panic #1198

Closed
shaloulcy opened this issue Apr 24, 2018 · 3 comments
Closed

[ bug ] pouch logs panic #1198

shaloulcy opened this issue Apr 24, 2018 · 3 comments
Labels
areas/log kind/bug This is bug report for project kind/panic

Comments

@shaloulcy
Copy link
Contributor

Ⅰ. Issue Description

pouch logs command panic

Ⅱ. Describe what happened

pouch logs ebb3b6
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe8856d]

goroutine 1 [running]:
main.(*LogsCommand).runLogs(0xc420433600, 0xc420379b80, 0x1, 0x1, 0x0, 0x0)
	/tmp/pouchbuild/src/github.com/alibaba/pouch/cli/logs.go:71 +0xfd
main.(*LogsCommand).Init.func1(0xc4203fc6c0, 0xc420379b80, 0x1, 0x1, 0x0, 0x0)
	/tmp/pouchbuild/src/github.com/alibaba/pouch/cli/logs.go:40 +0x48
github.com/alibaba/pouch/vendor/github.com/spf13/cobra.(*Command).execute(0xc4203fc6c0, 0xc420379b50, 0x1, 0x1, 0xc4203fc6c0, 0xc420379b50)
	/tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/spf13/cobra/command.go:742 +0x49b
github.com/alibaba/pouch/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420281d40, 0xc420153e98, 0x1, 0x1)
	/tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/spf13/cobra/command.go:827 +0x30e
github.com/alibaba/pouch/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420281d40, 0x1, 0xc420379ae0)
	/tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/spf13/cobra/command.go:780 +0x2b
main.(*Cli).Run(0xc420078080, 0x164c7e0, 0xc420378240)
	/tmp/pouchbuild/src/github.com/alibaba/pouch/cli/cli.go:78 +0x2f
main.main()
	/tmp/pouchbuild/src/github.com/alibaba/pouch/cli/main.go:49 +0x977

Ⅲ. Describe what you expected to happen

expect to output the container log

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • pouch version (use pouch version):
GoVersion:       go1.9.1
KernelVersion:   4.4.0-116-generic
Os:              linux
Version:         0.4.0
APIVersion:      1.24
Arch:            amd64
BuildTime:       Wed, 18 Apr 2018 11:16:54 +0800
GitCommit:       5caea368e2adae0f173049bec2020d4e882dda66
  • OS (e.g. from /etc/os-release):
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
  • Kernel (e.g. uname -a):
Linux ubuntu-1 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools:
  • Others:
@pouchrobot
Copy link
Collaborator

Thanks for your report, @shaloulcy
😱 This is a priority/P0 issue.
Seems to be severe enough.
ping @alibaba/pouch , PTAL.

@oiooj
Copy link
Contributor

oiooj commented Apr 24, 2018

Fixed in #1192

@HusterWan
Copy link
Contributor

HusterWan commented Apr 25, 2018

@shaloulcy thanks for your feedback, since this panic has been solved in #1192 , i will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/log kind/bug This is bug report for project kind/panic
Projects
None yet
Development

No branches or pull requests

4 participants