Skip to content

Conversation

@norio-nomura
Copy link
Contributor

Fix crashing on using external usernet:

$ limactl restart docker --progress
INFO[0000] Sending SIGINT to hostagent process 83134    
INFO[0000] Waiting for the host agent and the driver processes to shut down 
INFO[0000] [hostagent] Received SIGINT, shutting down the host agent 
INFO[0000] [hostagent] Shutting down the host agent     
INFO[0000] [hostagent] Shutting down VZ                 
INFO[0000] [hostagent] [VZ] - vm state change: stopped  
INFO[0001] [hostagent] panic: runtime error: invalid memory address or nil pointer dereference 
INFO[0001] [hostagent] [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10117ee7c] 
INFO[0001] [hostagent] goroutine 49 [running]:          
INFO[0001] [hostagent] github.com/lima-vm/lima/v2/pkg/driver/vz.startVM.func2() 
INFO[0001] [hostagent] 	/Users/norio/ghq/github.com/lima-vm/lima/pkg/driver/vz/vm_darwin.go:146 +0x47c 
INFO[0001] [hostagent] created by github.com/lima-vm/lima/v2/pkg/driver/vz.startVM in goroutine 1 
INFO[0001] [hostagent] 	/Users/norio/ghq/github.com/lima-vm/lima/pkg/driver/vz/vm_darwin.go:81 +0x190 

introduced on #3949

Fix crashing on using external usernet.

Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@jandubois jandubois added this to the v2.0.0 milestone Sep 10, 2025
@jandubois jandubois merged commit 5775c22 into lima-vm:master Sep 10, 2025
88 of 90 checks passed
@norio-nomura
Copy link
Contributor Author

Thanks! 🙏🏻

@norio-nomura norio-nomura deleted the vz-stopUsernet-may-nil branch September 11, 2025 00:26
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

Successfully merging this pull request may close these issues.

2 participants