-
-
Notifications
You must be signed in to change notification settings - Fork 52
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: runtime/cgo: misuse of an invalid Handle on RequestStop and waiting for vm stopped state #124
Comments
I can handle it next month... 🙏 |
btw, is this using Kernel which is supported RequestStop? |
I also observe this on Mac M1 Max (Ventura 13.2.1) arm64 when running colima v0.5.4
|
I am running Ventura 13.2.1 (22D68), CPU Apple M1 Max, from the Apple docs RequestStop seems to be supported since macOS 11.0+.
|
@pmalek @ryancurrah I'm sorry I didn't notice! @ryancurrah I know supported the RequestStop API from macOS 11.0+. I mentioned to Linux Kernel one. |
Ah that makes more sense now. Thanks! |
I'm working this! |
I've probably fixed it. I don't have the code to reproduce it at hand, which is worrying, but I'll see how this goes! If there are still problems, we expect the issue to be opened again with reproduced code. |
Btw, I just published the latest version for this |
Thank you for the fix :) But even then a panic occurs if we call Status() directly after the RequestStop() is called. But unfortunately i still don't have vz specific reproducible code. So i will keep this issue closed. PS: Lima issue is hopefully fixed now by not using Status() method lima-vm/lima#1494 |
@balajiv113 Oh... What does it mean when we know this sequence and you don't reproduce it? 🤔
|
@Code-Hex Root cause Due to which, in change observer https://github.com/Code-Hex/vz/blob/main/virtualization.go#L157 while converting unsafe.pointer to cgo.Handler, the uintptr value is different / invalid Possible Solution Reproduction Test
Test will take time as it has to wait till stateHandle gets finalised. Do let me know if you need any more input. I hope we can reopen this issue as we now have a test to reproduce |
@balajiv113 Thanks! I handle this issue on Wednesday 🙏 |
@balajiv113 I apologize for not being able to keep the promise I made earlier. Due to a hectic workload, I was unable to complete today's tasks. It appears that the release will be pushed back to next week 🙇 |
@Code-Hex No problem at all. Please do enjoy your day off 🎉 |
@balajiv113 I'm working on this! |
@balajiv113 I released this fix as https://github.com/Code-Hex/vz/releases/tag/v3.0.6 |
@Code-Hex, Thanks a lot. |
Describe the bug
Issue is similar to the #119. But now it happens mainly during RequestStop and waiting for vm state to change to stop
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No panic occurs during stop
Environment that you use to compile (please complete the following information):
Xcode 14.1 Build version 14B47b
]ProductName: macOS, ProductVersion: 13.2, BuildVersion: 22D49
]x86_64
]go version go1.20.1 darwin/amd64
]Additional context
lima-vm/lima#1381
The text was updated successfully, but these errors were encountered: