# Invalid memory address or nil pointer dereference

**URL:** <https://forum.rclone.org/t/invalid-memory-address-or-nil-pointer-dereference/26040>\
**Category:** Suspected Bug\
**Created:** [August 19, 2021, 1:28am UTC](https://forum.rclone.org/t/invalid-memory-address-or-nil-pointer-dereference/26040 "2021-08-19T01:28:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WonCheol](https://forum.rclone.org/letter_avatar_proxy/v4/letter/w/85f322/32.png) [@WonCheol](https://forum.rclone.org/u/WonCheol)\
**Post date:** [August 19, 2021, 1:28am UTC](https://forum.rclone.org/t/invalid-memory-address-or-nil-pointer-dereference/26040/1 "2021-08-19T01:28:07Z")

</div>

#### 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`)

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

```

#### The rclone config contents with secrets removed.

```auto
[SNU]
type = drive
scope = drive
team_drive = 

```

#### A log from the command with the `-vv` flag

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [August 19, 2021, 1:31am UTC](https://forum.rclone.org/t/invalid-memory-address-or-nil-pointer-dereference/26040/2 "2021-08-19T01:31:34Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [October 18, 2021, 9:31pm UTC](https://forum.rclone.org/t/invalid-memory-address-or-nil-pointer-dereference/26040/3 "2021-10-18T21:31:40Z")

</div>

Closed on October 18, 2021, 9:31pm UTC

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