Cryptcheck: panic: runtime error: slice bounds out of range

What is the problem you are having with rclone?

I tried to run rclone cryptcheck, but a runtime error was thrown.

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0
- os/version: opensuse-tumbleweed (64 bit)
- os/kernel: 6.5.3-1-default (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.1
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

IDrive e2 (S3)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone cryptcheck "/run/media/.../dir1/dir2" idrivec:dir1/dir2

Previously, files were uploaded from and to the same path by using the following command, and it was done without errors:
rclone copy -P --server-side-across-configs --modify-window 1ms --multi-thread-streams 8 --no-traverse --transfers 8 --rc /run/media/.../dir1/dir2 idrivec:dir1/dir2

(I know --server-side-across-configs is useless here, I just use it by default for when its suitable, I guess the same also applies to --multi-thread-streams)

The rclone config contents with secrets removed.

type = s3
provider = IDrive
access_key_id = *
secret_access_key = *
endpoint = *
no_check_bucket = true
chunk_size = 10Mi
upload_concurrency = 8
directory_markers = true

type = crypt
remote = idrive:idrivec
password = *
password2 = *
filename_encoding = base32768

A log from the command with the -vv flag

2023/09/23 16:52:02 INFO  : Using md5 for hash comparisons
panic: runtime error: slice bounds out of range [56:55]

goroutine 28 [running]:*Fs).list(0xc0008fc2c0, {0x27602a8?, 0x39741c0}, {{0xc00005e377, 0x7}, {0xc001cab880, 0x35}, {0xc00005e37f, 0x37}, 0x0, ...}, ...) +0x1650*Fs).listDir(0xc0008fc2c0, {0x27602a8?, 0x39741c0?}, {0xc00005e377, 0x7}, {0xc001cab880?, 0x0?}, {0xc00005e37f?, 0x1?}, 0x0) +0x1a5*Fs).List(0xc0008fc2c0, {0x27602a8, 0x39741c0}, {0x0?, 0xc0006ac050?}) +0xad*Fs).List(0xc000000e40, {0x27602a8, 0x39741c0}, {0x0?, 0xc000b87560?}) +0x70{0x27602a8, 0x39741c0}, {0x27724b8?, 0xc000000e40}, 0x0, {0x0, 0x0}) +0x72*March).makeListDir.func1({0x0, 0x0}) +0x8b*March).processJob.func2() +0x72
created by*March).processJob in goroutine 66 +0x319

I can see the problem here. Annoyingly I can't replicate it so I'm going to need you to test it.

Can you give this a go please?

v1.65.0-beta.7390.8e0ea44f6.fix-s3-list-crash on branch fix-s3-list-crash (uploaded in 15-30 mins)

Thank you, seems to have been fixed, the reported runtime error that affects v1.64.0 doesn't happen in this test build.

Thanks for testing.

I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.64.1

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.