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

Panic when shutting down "misuse of an invalid handle" #672

Closed
1 of 5 tasks
pwagland opened this issue Mar 28, 2023 · 2 comments
Closed
1 of 5 tasks

Panic when shutting down "misuse of an invalid handle" #672

pwagland opened this issue Mar 28, 2023 · 2 comments

Comments

@pwagland
Copy link

pwagland commented Mar 28, 2023

Description

Calling colima stop causes a panic message to be printed:

colima stop
INFO[0000] stopping colima
INFO[0000] stopping ...                                  context=docker
tINFO[0004] stopping ...                                  context=vm
> [hostagent] Received SIGINT, shutting down the host agent
> [hostagent] panic: runtime/cgo: misuse of an invalid Handle
> github.com/spf13/cobra.(*Command).ExecuteC(0x140001ba600)
> 	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x340
> github.com/spf13/cobra.(*Command).Execute(...)
> 	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:968
> main.main()
> 	/private/tmp/lima-20230228-12249-xydhn3/lima-0.15.0/cmd/limactl/main.go:24 +0x20
FATA[0159] error stopping vm: error at 'stopping': exit status 2

Colima did stop.

Version

Colima Version: 0.5.4
Lima Version: 0.15.0
Qemu Version: 7.2.0

colima version 0.5.4
git commit: feef417

runtime: docker
arch: aarch64
client: v20.10.21-rd
server: v20.10.20

Operating System

  • macOS Intel <= 12 (Monterrey)
  • macOS Intel >= 13 (Ventura)
  • macOS M1 <= 12 (Monterrey)
  • macOS M1 >= 13 (Ventura)
  • Linux

Output of colima status

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs

Reproduction Steps

  1. Run colima stop
  2. Be unlucky

I'm not consistently unlucky, and only rarely see this.

Expected behaviour

No panic should be printed when colima shuts down.

Additional context

No response

@abiosoft
Copy link
Owner

The error is a known issue upstream in Lima lima-vm/lima#1381 and further upstream in VZ Code-Hex/vz#124.

It is pretty harmless less and you can discard with Ctrl+C.

@abiosoft
Copy link
Owner

Closing in favour of upstream issues.

@abiosoft abiosoft mentioned this issue Apr 13, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants