Invalid memory address or nil pointer dereference

What is the problem you are having with rclone?

Error messages, but works anyway.

What is your rclone version (output from rclone version)

rclone v1.56.0

  • os/version: arch rolling (64 bit)
  • os/kernel: 5.13.10-arch1-1 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.6
  • go/linking: dynamic
  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

OS: EndeavourOS Linux amd_64

I have been using Manjaro Linux and the same problem started to occur recently. For more reasons I've started to be unsatisfied with the OS and decided to install EndeavourOS instead of Manjaro. The problem still happens on the fresh-installed EndeavourOS.

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

Google Drive, Dropbox, Box, Samba, SFTP

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

sudo rclone mount SNU:/ /mnt/SNU --allow-other --daemon

The rclone config contents with secrets removed.

[SNU]
type = drive
scope = drive
team_drive = 

A log from the command with the -vv flag

2021/08/19 10:09:15 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "mount" "SNU:/" "/mnt/SNU" "--allow-other" "--daemon" "-vv"]
2021/08/19 10:09:15 DEBUG : Creating backend with remote "SNU:/"
2021/08/19 10:09:15 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/08/19 10:09:16 DEBUG : Google drive root '': 'root_folder_id = (snipped)' - save this in the config to speed up startup
2021/08/19 10:09:16 DEBUG : fs cache: renaming cache item "SNU:/" to be canonical "SNU:"
(NO END OF MESSAGES. The messages below is when interrupted by ctrl+C:)

^C2021/08/19 10:11:28 INFO  : Signal received: interrupt
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x55fe87164971]

goroutine 38 [running]:
github.com/rclone/rclone/cmd/mountlib.(*MountPoint).Wait.func1.1()
	github.com/rclone/rclone/cmd/mountlib/mount.go:256 +0x51
sync.(*Once).doSlow(0xc0003971e0, 0xc00006ae38)
	sync/once.go:68 +0xee
sync.(*Once).Do(...)
	sync/once.go:59
github.com/rclone/rclone/cmd/mountlib.(*MountPoint).Wait.func1()
	github.com/rclone/rclone/cmd/mountlib/mount.go:254 +0x65
github.com/rclone/rclone/lib/atexit.Run.func1()
	github.com/rclone/rclone/lib/atexit/atexit.go:104 +0x7f
sync.(*Once).doSlow(0x55fe88802080, 0x55fe87b0c718)
	sync/once.go:68 +0xee
sync.(*Once).Do(...)
	sync/once.go:59
github.com/rclone/rclone/lib/atexit.Run()
	github.com/rclone/rclone/lib/atexit/atexit.go:102 +0xb8
github.com/rclone/rclone/lib/atexit.Register.func1.1()
	github.com/rclone/rclone/lib/atexit/atexit.go:52 +0xea
created by github.com/rclone/rclone/lib/atexit.Register.func1
	github.com/rclone/rclone/lib/atexit/atexit.go:44 +0x96

Many posts on this. 1.56 has a known bug with the daemon.

You can grab the beta or wait for a point release.