-
Notifications
You must be signed in to change notification settings - Fork 15
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
virter vm ls segmentation fault when other non-virter libvirt VMs exist #33
Comments
If this helps: I have some other vagrant-libvirt machines (not started by virter) on this machine:
in GDB at the point of the crash:
It looks like it's trying to list some information about this other non-virter libvirt VM, and |
Also, for what it's worth, removing this other non-virter VM, the segfault does go away. |
The crash occurs on this line: Line 110 in d834012
I'm guessing if desc.Metadata == nil {
// not a virter VM
return &VMInfo{Name: vmName}, nil
} Preceding the meta unmarshaling. Does that work? |
… a segfault for non-virter VMs (LINBIT#33)
… a segfault for non-virter VMs (LINBIT#33)
Thanks, that does indeed solve the problem! I've opened #34 with that check. |
… a segfault for non-virter VMs (#33)
Thanks for merging! Not to be a hassle, but if it's convenient for you sometime to put out a release out containing the fix I'd appreciate it. And thanks again for looking at this. |
Not sure exactly when this started happening, but:
I was running v0.28.0 then checked out the latest revision and built from there (e36b0ba) but am getting the same issue.
$ apt-cache policy libvirt0:amd64 libvirt0: Installed: 9.0.0-4+deb12u2 Candidate: 9.0.0-4+deb12u2 Version table: *** 9.0.0-4+deb12u2 500 500 http://ftp.debian.org/debian bookworm/main amd64 Packages 100 /var/lib/dpkg/status
The text was updated successfully, but these errors were encountered: