loft-sh / loft

Namespace & Virtual Cluster Manager for Kubernetes - Lightweight Virtual Clusters, Self-Service Provisioning for Engineers and 70% Cost Savings with Sleep Mode
https://loft.sh/docs/introduction
Other
714 stars 64 forks source link

Loft seg-faults after update #172

Closed withinboredom closed 2 years ago

withinboredom commented 2 years ago

Updated loft:

sudo loft upgrade
[sudo] password for withinboredom:
[done] √ Successfully updated to version 2.0.3
[info]   Release note:

### Changes
- **ui**: New dock functionality to view multiple logs and terminal instances
![image](https://user-images.githubusercontent.com/10119814/145376556-fa883e52-2d15-4e8e-b791-99570ed7266e.png)
- **ui**: Fixed an issue where virtual cluster templates would route to space templates
- **api**: Integrated SAML directly into Loft
- **api**: Fixed an issue where Loft would disable access keys automatically
- **api**: Fixed an issue where Loft would hide failed clusters
- **api**: Update k8s dependencies to v1.23

Now segfaults on any command:

loft create vcluster test --template development-cluster
Segmentation fault
withinboredom:~/code/swytch-placer$ loft create vcluster --template development-cluster test
Segmentation fault
withinboredom:~/code/swytch-placer$ loft create vcluster --help
Segmentation fault
withinboredom:~/code/swytch-placer$ loft --help
Segmentation fault

Here's the result from dmesg:

[60324.445231] potentially unexpected fatal signal 11.
[60324.445234] CPU: 4 PID: 9049 Comm: loft Not tainted 5.10.60.1-microsoft-standard-WSL2 #1
[60324.445239] RIP: 0033:0x7f8c7311f2fb
[60324.445242] Code: Unable to access opcode bytes at RIP 0x7f8c7311f2d1.
[60324.445243] RSP: 002b:00007fff83e8d348 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
[60324.445246] RAX: fffffffffffffff2 RBX: 0000561e44d85d60 RCX: 00007f8c7311f2fb
[60324.445248] RDX: 0000561e450bfe80 RSI: 0000561e44d7b8a0 RDI: 0000561e44e078a0
[60324.445249] RBP: 0000561e44e078a0 R08: 0000561e44d7b8a0 R09: 0000000000000000
[60324.445251] R10: 0000000000000008 R11: 0000000000000246 R12: 00000000ffffffff
[60324.445253] R13: 0000561e44d7b8a0 R14: 0000561e450bfe80 R15: 0000561e44d7ccb0
[60324.445254] FS:  0000000000000000 GS:  0000000000000000

I also pulled the latest release directly (https://github.com/loft-sh/loft/releases/download/v2.0.3/loft-linux-amd64) and it seg-faults.

2.0.3-beta.15 doesn't exhibit this behavior. Might be a bad build?

LukasGentele commented 2 years ago

@withinboredom Thanks for reporting this. It looks like something went wrong when uploading this file. May have been a network issue corrupting this particular file or preventing it from uploading completely. I triggered a reupload of all release assets and it looks solved to me. Would you mind confirming that this issue is resolved for you as well? Thanks.

withinboredom commented 2 years ago

Yep! It's fixed! Thanks so much!