upspin: cmd/upspinfs: panic when coping files
OS: MacOS Sequoia
What happened: I recreate my upspin server with a different storage once again and was coping my backups to the new server. Something like
$ cp -r ./Books ~/u/user@example.com
It copied some files and than returned an error (I don’t remember the error) that I thought my backup were corrupted but that was not the case.
After looking the upspinfs logs it was a nil pointer dereference.
The logs: issue.log
The culprit seems to be this part of code. In some cases the *DirEntry in line 592 is nil: https://github.com/upspin/upspin/blob/209f0c9c37d75884d380fb31543b770a8d2e0200/cmd/upspinfs/cache.go#L562-L592
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- fix issue #670 — committed to upspin/upspin by presotto 2 years ago
- fix issue #670 — committed to upspin/upspin by presotto 2 years ago
As usual, my first attept at pushing it back was from a now dead branch, so I have yet another change to that branch. Now pushed it to master I believe correctly. I can’t not use git for years and expect to do anythign right.
On Sat, Dec 21, 2024 at 10:21 PM Rodrigo Schio @.***> wrote: