Repository navigation
Closed
Description
I experience a segfault using a Proton Drive remote using:
- os/version: debian 13.4 (64 bit)
- os/kernel: 6.19.11+deb13-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.9
- go/linking: static
- go/tags: none
rclone copy protondrive: ./protondrive/ -P
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1c57e66]
goroutine 83 [running]:
github.com/rclone/rclone/backend/protondrive.(*Object).Open(0xc000d8e5a0, {0x3369e78, 0xc000b945f0}, {0xc000cce130, 0x1, 0xc00006a0a0?})
github.com/rclone/rclone/backend/protondrive/protondrive.go:907 +0x46
github.com/rclone/rclone/fs/operations.(*ReOpen).open(0xc000e020f0)
github.com/rclone/rclone/fs/operations/reopen.go:148 +0x109
github.com/rclone/rclone/fs/operations.NewReOpen({0x3369e78, 0xc000b945f0}, {0x3386e40, 0xc000d8e5a0}, 0xa, {0xc000cce120, 0x1, 0x1})
github.com/rclone/rclone/fs/operations/reopen.go:103 +0x505
github.com/rclone/rclone/fs/operations.Open({0x3369e78, 0xc000b945f0}, {0x3386e40, 0xc000d8e5a0}, {0xc000cce120, 0x1, 0x1})
github.com/rclone/rclone/fs/operations/reopen.go:125 +0x6b
github.com/rclone/rclone/fs/operations.(*copy).manualCopy(0xc000174cf0, {0x3369e78, 0xc000b945f0})
github.com/rclone/rclone/fs/operations/copy.go:265 +0x4da
github.com/rclone/rclone/fs/operations.(*copy).copy(0xc000174cf0, {0x3369e78, 0xc000b945f0})
github.com/rclone/rclone/fs/operations/copy.go:314 +0x170
github.com/rclone/rclone/fs/operations.Copy({0x3369e78, 0xc000b945f0}, {0x33862e0, 0xc000bec0c0}, {0x0, 0x0}, {0xc0005bfe30, 0x9}, {0x3386e40, 0xc000d8e5a0})
github.com/rclone/rclone/fs/operations/copy.go:416 +0x4dc
github.com/rclone/rclone/fs/sync.(*syncCopyMove).pairCopyOrMove(0xc000851408, {0x3369e78, 0xc000b945f0}, 0xc000b94550, {0x33862e0, 0xc000bec0c0}, 0x19, 0x0?)
github.com/rclone/rclone/fs/sync/sync.go:505 +0x1fe
created by github.com/rclone/rclone/fs/sync.(*syncCopyMove).startTransfers in goroutine 1
github.com/rclone/rclone/fs/sync/sync.go:535 +0x7dThis goes away if instead I call clone copy protondrive: ./protondrive/ -P --min-size 1Ki, but it still occurs if I append min_size = 1Ki to the config file.
Here are some details (replacing private info with XXX):
XXX@XXX:/srv/dev-disk-by-uuid-XXX/XXX$ rclone copy -vv protondrive_: ./protondrive/ -P
2026/04/26 08:17:38 DEBUG : rclone: Version "v1.73.5" starting with parameters ["rclone" "copy" "-vv" "protondrive:" "./protondrive/" "-P"]
2026/04/26 08:17:38 DEBUG : Creating backend with remote "protondrive:"
2026/04/26 08:17:38 DEBUG : Using config file from "/home/XXX/.config/rclone/rclone.conf"
2026/04/26 08:17:38 DEBUG : proton drive root link ID '': Has cached credentials
2026/04/26 08:17:40 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
2026/04/26 08:17:40 DEBUG : Creating backend with remote "./protondrive/"
2026/04/26 08:17:40 DEBUG : fs cache: renaming cache item "./protondrive/" to be canonical "/srv/dev-disk-by-uuid-XXX/XXX/XXX"
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Need to transfer - File not found at Destination
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Need to transfer - File not found at Destination
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: file sha1 digest missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : XXX: Original file size missing
2026/04/26 08:17:41 DEBUG : Local file system at /srv/dev-disk-by-uuid-XXX/XXX/protondrive: Waiting for checks to finish
2026/04/26 08:17:41 DEBUG : XXX: file sha1 digest missing
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 0, -, Listed 2
Transferred: 0 / 2, 0%
Elapsed time: 0.6s
Transferring:
* XXX: transferringpanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1c57e66]
goroutine 86 [running]:
github.com/rclone/rclone/backend/protondrive.(*Object).Open(0xc000b70780, {0x3369e78, 0xc000c5c0a0}, {0xc0005aa680, 0x1, 0xc000365020?})
github.com/rclone/rclone/backend/protondrive/protondrive.go:907 +0x46
github.com/rclone/rclone/fs/operations.(*ReOpen).open(0xc000ada3c0)
github.com/rclone/rclone/fs/operations/reopen.go:148 +0x109
github.com/rclone/rclone/fs/operations.NewReOpen({0x3369e78, 0xc000c5c0a0}, {0x3386e40, 0xc000b70780}, 0xa, {0xc0005aa2f0, 0x1, 0x1})
github.com/rclone/rclone/fs/operations/reopen.go:103 +0x505
github.com/rclone/rclone/fs/operations.Open({0x3369e78, 0xc000c5c0a0}, {0x3386e40, 0xc000b70780}, {0xc0005aa2f0, 0x1, 0x1})
github.com/rclone/rclone/fs/operations/reopen.go:125 +0x6b
github.com/rclone/rclone/fs/operations.(*copy).manualCopy(0xc000259a70, {0x3369e78, 0xc000c5c0a0})
github.com/rclone/rclone/fs/operations/copy.go:265 +0x4da
github.com/rclone/rclone/fs/operations.(*copy).copy(0xc000259a70, {0x3369e78, 0xc000c5c0a0})
github.com/rclone/rclone/fs/operations/copy.go:314 +0x170
github.com/rclone/rclone/fs/operations.Copy({0x3369e78, 0xc000c5c0a0}, {0x33862e0, 0xc000768780}, {0x0, 0x0}, {0xc0001469a8, 0x16}, {0x3386e40, 0xc000b70780})
github.com/rclone/rclone/fs/operations/copy.go:416 +0x4dc
github.com/rclone/rclone/fs/sync.(*syncCopyMove).pairCopyOrMove(0xc000c1d188, {0x3369e78, 0xc000c5c0a0}, 0xc000c5c000, {0x33862e0, 0xc000768780}, 0x19, 0x39?)
github.com/rclone/rclone/fs/sync/sync.go:505 +0x1fe
created by github.com/rclone/rclone/fs/sync.(*syncCopyMove).startTransfers in goroutine 1
github.com/rclone/rclone/fs/sync/sync.go:535 +0x7d
Metadata
Metadata
Assignees
Labels
No labels
Activity
koenieee commentedon Apr 27, 2026
Same issue for me
ncw commentedon Apr 28, 2026
Please give this a go
v1.74.0-beta.9677.45dc27ef3.fix-9377-proton on branch fix-9377-proton (uploaded in 15-30 mins)
ncw commentedon Apr 29, 2026
Did that work @courtiol @koenieee ? If I know it works I can put it in the v1.74 release. Thanks
courtiol commentedon Apr 29, 2026
I am afraid not...
tycooon33 commentedon Apr 30, 2026
What is the problem you are having with rclone?
I tested the same command mentioned in this issue with Proton Drive and I am not experiencing the problem. The transfer works as expected.
What is your rclone version (output from
rclone version)?Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Which cloud storage system are you using? (e.g. Google Drive)
The command you were trying to run (e.g.
rclone copy /tmp remote:tmp)A log from the command with the
-vvflagAdditional information
The upload from local to Proton Drive works correctly.
ncw commentedon May 2, 2026
@courtiol I wonder what else is wrong. Can you do that test again please, but post the backtrace too and then I can investigate.
courtiol commentedon May 4, 2026
(Sorry for the delay, doing 18h-long work days at the moment... and about to disappear for 2 weeks.)
I am not sure if you want me to run a specific debugging cmd or if you just want to tail of the output.
If the latter, here it is:
This time, there seems to be new token related issues, but that should not be the reason for a segfault.
ncw commentedon May 4, 2026
That is a different segfault in the proton drive library! I've patched that - please give this a go - thanks
v1.75.0-beta.9690.e19fb98fd.fix-9377-proton on branch fix-9377-proton (uploaded in 15-30 mins)
courtiol commentedon May 4, 2026
For some reason, I cannot connect but this probably has nothing to do with this.
I can report that I no longer see a segfault! Tx a lot.
Fix nil pointer exception in DownloadFileByID when attrs are missing
protondrive: fix segfault when copying files missing revision metadata
ncw commentedon May 5, 2026
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.73.1
protondrive: fix segfault when copying files missing revision metadata
protondrive: fix segfault when copying files missing revision metadata