fatal error: runtime: out of memory runtime stack: runtime.throw(0x56348047bf50, 0x16) /usr/lib/golang/src/runtime/panic.go:605 +0x97 runtime.sysMap(0xc772d00000, 0x200000, 0x0, 0x563480d33e58) /usr/lib/golang/src/runtime/mem_linux.go:216 +0x1d2 runtime.(*mheap).sysAlloc(0x563480d1a580, 0x200000, 0x38000b0c01) /usr/lib/golang/src/runtime/malloc.go:470 +0xd9 runtime.(*mheap).grow(0x563480d1a580, 0x100, 0x0) /usr/lib/golang/src/runtime/mheap.go:887 +0x62 runtime.(*mheap).allocSpanLocked(0x563480d1a580, 0x100, 0x563480d33e68, 0x563480cd8f60) /usr/lib/golang/src/runtime/mheap.go:800 +0x336 runtime.(*mheap).alloc_m(0x563480d1a580, 0x100, 0x101, 0x0) /usr/lib/golang/src/runtime/mheap.go:666 +0x11c runtime.(*mheap).alloc.func1() /usr/lib/golang/src/runtime/mheap.go:733 +0x4f runtime.systemstack(0xc420087f08) /usr/lib/golang/src/runtime/asm_amd64.s:360 +0xa1 runtime.(*mheap).alloc(0x563480d1a580, 0x100, 0x7f49c3010101, 0xc420023260) /usr/lib/golang/src/runtime/mheap.go:732 +0xa3 runtime.largeAlloc(0x1ffe00, 0x56347fe30101, 0xc4201f4618) /usr/lib/golang/src/runtime/malloc.go:827 +0x9a runtime.mallocgc.func1() /usr/lib/golang/src/runtime/malloc.go:722 +0x48 runtime.systemstack(0xc42001e600) /usr/lib/golang/src/runtime/asm_amd64.s:344 +0x72 runtime.mstart() /usr/lib/golang/src/runtime/proc.go:1135 goroutine 66 [running]: runtime.systemstack_switch() /usr/lib/golang/src/runtime/asm_amd64.s:298 fp=0xc43dd29220 sp=0xc43dd29218 pc=0x56347fe33280 runtime.mallocgc(0x1ffe00, 0x5634808425c0, 0xc43dd29301, 0xc4201f4600) /usr/lib/golang/src/runtime/malloc.go:721 +0x7c0 fp=0xc43dd292c8 sp=0xc43dd29220 pc=0x56347fded360 runtime.makeslice(0x5634808425c0, 0x1ffe00, 0x1ffe00, 0x80000, 0x0, 0x0) /usr/lib/golang/src/runtime/slice.go:54 +0x79 fp=0xc43dd292f8 sp=0xc43dd292c8 pc=0x56347fe1e729 bytes.makeSlice(0x1ffe00, 0x0, 0x0, 0x0) /usr/lib/golang/src/bytes/buffer.go:231 +0x79 fp=0xc43dd29338 sp=0xc43dd292f8 pc=0x56347fed19b9 bytes.(*Buffer).ReadFrom(0xc43dd293e0, 0x7f49c3f7aa70, 0xc772153c60, 0xc77203ec00, 0x0, 0x200) /usr/lib/golang/src/bytes/buffer.go:203 +0x293 fp=0xc43dd293b0 sp=0xc43dd29338 pc=0x56347fed18f3 io/ioutil.readAll(0x7f49c3f7aa70, 0xc772153c60, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/lib/golang/src/io/ioutil/ioutil.go:33 +0x12e fp=0xc43dd29458 sp=0xc43dd293b0 pc=0x56347ff1f78e io/ioutil.ReadAll(0x7f49c3f7aa70, 0xc772153c60, 0x563480138000, 0xc75e14efa0, 0xc43dd294f8, 0x56347fdeb2aa, 0x563480898a80) /usr/lib/golang/src/io/ioutil/ioutil.go:42 +0x40 fp=0xc43dd294a8 sp=0xc43dd29458 pc=0x56347ff1f870 github.com/restic/restic/internal/backend.LoadAll.func1(0x7f49c3f7aa70, 0xc772153c60, 0xc772153c60, 0x7f49c3f7aa70) internal/backend/utils.go:14 +0x44 fp=0xc43dd29508 sp=0xc43dd294a8 pc=0x56348012d0a4 github.com/restic/restic/internal/cache.(*Backend).Load(0xc42008b890, 0x563480cd01c0, 0xc420142140, 0x56348046d122, 0x5, 0xc7723117c0, 0x40, 0x0, 0x0, 0xc7722de8c0, ...) internal/cache/backend.go:167 +0xe8f fp=0xc43dd29870 sp=0xc43dd29508 pc=0x563480133c0f github.com/restic/restic/internal/backend.LoadAll(0x563480cd01c0, 0xc420142140, 0x563480cd3c80, 0xc42008b890, 0x56348046d122, 0x5, 0xc7723117c0, 0x40, 0x4153e705c3ee4f4d, 0x7e01343092c3d35a, ...) internal/backend/utils.go:13 +0xf8 fp=0xc43dd298f0 sp=0xc43dd29870 pc=0x56348012c078 github.com/restic/restic/internal/repository.(*Repository).LoadAndDecrypt(0xc420215ab0, 0x563480cd01c0, 0xc420142140, 0x56348046d122, 0x5, 0xf2dcd86b23e67280, 0xee4b1282adb79603, 0x1c64e3abbca58f3e, 0xe6002a71ae956098, 0xc43dd29da0, ...) internal/repository/repository.go:76 +0x1d8 fp=0xc43dd29b20 sp=0xc43dd298f0 pc=0x56348014a448 github.com/restic/restic/internal/repository.LoadIndexWithDecoder(0x563480cd01c0, 0xc420142140, 0x563480cd5520, 0xc420215ab0, 0xf2dcd86b23e67280, 0xee4b1282adb79603, 0x1c64e3abbca58f3e, 0xe6002a71ae956098, 0x56348096e1a0, 0xc43dd29e00, ...) internal/repository/index.go:555 +0x14c fp=0xc43dd29c60 sp=0xc43dd29b20 pc=0x56348014347c github.com/restic/restic/internal/repository.LoadIndex(0x563480cd01c0, 0xc420142140, 0x563480cd5520, 0xc420215ab0, 0xf2dcd86b23e67280, 0xee4b1282adb79603, 0x1c64e3abbca58f3e, 0xe6002a71ae956098, 0x0, 0x40, ...) internal/repository/repository.go:499 +0x9a fp=0xc43dd29d08 sp=0xc43dd29c60 pc=0x56348014eb0a github.com/restic/restic/internal/repository.(*Repository).LoadIndex.func1(0x563480cd01c0, 0xc420142140, 0xf2dcd86b23e67280, 0xee4b1282adb79603, 0x1c64e3abbca58f3e, 0xe6002a71ae956098, 0x0, 0x0) internal/repository/repository.go:399 +0x90 fp=0xc43dd29e18 sp=0xc43dd29d08 pc=0x563480152830 github.com/restic/restic/internal/repository.ParallelWorkFuncParseID.func1(0x563480cd01c0, 0xc420142140, 0xc731929529, 0x40, 0x0, 0x0) internal/repository/parallel.go:63 +0x201 fp=0xc43dd29f18 sp=0xc43dd29e18 pc=0x563480152761 github.com/restic/restic/internal/repository.FilesInParallel.func2(0x8, 0x56348096f400) internal/repository/parallel.go:40 +0xbf fp=0xc43dd29f88 sp=0xc43dd29f18 pc=0x56348015250f github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go.func1(0xc420142180, 0xc42009e150) vendor/golang.org/x/sync/errgroup/errgroup.go:58 +0x59 fp=0xc43dd29fd0 sp=0xc43dd29f88 pc=0x563480131ac9 runtime.goexit() /usr/lib/golang/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc43dd29fd8 sp=0xc43dd29fd0 pc=0x56347fe35e71 created by github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go vendor/golang.org/x/sync/errgroup/errgroup.go:55 +0x68 goroutine 1 [runnable]: github.com/restic/restic/internal/repository.(*Repository).LoadIndex(0xc420215ab0, 0x563480cd01c0, 0xc420142b00, 0x7f49c3f39b90, 0x56348046c601) internal/repository/repository.go:420 +0x1d8 main.pruneRepository(0xc420014052, 0x28, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) cmd/restic/cmd_prune.go:110 +0x78 main.runPrune(0xc420014052, 0x28, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) cmd/restic/cmd_prune.go:85 +0x189 main.glob..func18(0x563480cbbfe0, 0x563480d31f10, 0x0, 0x0, 0x0, 0x0) cmd/restic/cmd_prune.go:25 +0x5f github.com/restic/restic/vendor/github.com/spf13/cobra.(*Command).execute(0x563480cbbfe0, 0x563480d31f10, 0x0, 0x0, 0x563480cbbfe0, 0x563480d31f10) vendor/github.com/spf13/cobra/command.go:762 +0x477 github.com/restic/restic/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x563480cbaa80, 0x19, 0x19, 0xc4201c3de0) vendor/github.com/spf13/cobra/command.go:852 +0x336 github.com/restic/restic/vendor/github.com/spf13/cobra.(*Command).Execute(0x563480cbaa80, 0x23, 0xc4201c3eb0) vendor/github.com/spf13/cobra/command.go:800 +0x2d main.main() cmd/restic/main.go:86 +0x1e0 goroutine 4 [syscall, 2 minutes]: os/signal.signal_recv(0x0) /usr/lib/golang/src/runtime/sigqueue.go:131 +0xa8 os/signal.loop() /usr/lib/golang/src/os/signal/signal_unix.go:22 +0x24 created by os/signal.init.0 /usr/lib/golang/src/os/signal/signal_unix.go:28 +0x43 goroutine 5 [chan receive, 2 minutes]: github.com/restic/restic/internal/restic.init.0.func1.1() internal/restic/lock.go:257 +0x112 created by github.com/restic/restic/internal/restic.init.0.func1 internal/restic/lock.go:254 +0x37 goroutine 6 [select, 2 minutes, locked to thread]: runtime.gopark(0x56348096f318, 0x0, 0x56348046e5ca, 0x6, 0x18, 0x1) /usr/lib/golang/src/runtime/proc.go:287 +0x132 runtime.selectgo(0xc420054f50, 0xc420088240) /usr/lib/golang/src/runtime/select.go:395 +0x114f runtime.ensureSigM.func1() /usr/lib/golang/src/runtime/signal_unix.go:511 +0x226 runtime.goexit() /usr/lib/golang/src/runtime/asm_amd64.s:2337 +0x1 goroutine 7 [chan receive, 2 minutes]: github.com/restic/restic/internal/restic.init.2.func1(0xc420088180) internal/restic/progress_unix.go:17 +0xbc created by github.com/restic/restic/internal/restic.init.2 internal/restic/progress_unix.go:16 +0xb7 goroutine 33 [chan receive, 2 minutes]: main.CleanupHandler(0xc420132060) cmd/restic/cleanup.go:62 +0x69 created by main.init.0 cmd/restic/cleanup.go:24 +0x73 goroutine 46 [select, 2 minutes]: main.refreshLocks(0x563480d11a60, 0xc420088300) cmd/restic/lock.go:72 +0x256 created by main.lockRepository cmd/restic/lock.go:49 +0x3d2 goroutine 47 [semacquire, 2 minutes]: sync.runtime_Semacquire(0xc420142194) /usr/lib/golang/src/runtime/sema.go:56 +0x3b sync.(*WaitGroup).Wait(0xc420142188) /usr/lib/golang/src/sync/waitgroup.go:131 +0x74 github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Wait(0xc420142180, 0xc42009e1b0, 0xc420134240) vendor/golang.org/x/sync/errgroup/errgroup.go:41 +0x33 github.com/restic/restic/internal/repository.FilesInParallel(0x563480cd01c0, 0xc420142140, 0x7f49c3efd580, 0xc42008b890, 0x56348046d122, 0x5, 0x4, 0xc4201f20a0, 0x0, 0x0) internal/repository/parallel.go:49 +0x26c github.com/restic/restic/internal/repository.(*Repository).LoadIndex.func2(0xc420088360, 0xc4201341e0, 0x563480cd01c0, 0xc420142b00, 0xc420215ab0, 0xc4200980c0) internal/repository/repository.go:415 +0xeb created by github.com/restic/restic/internal/repository.(*Repository).LoadIndex internal/repository/repository.go:413 +0x151 goroutine 48 [runnable]: github.com/restic/restic/internal/repository.FilesInParallel.func1.1(0x1e95ff, 0xc770802029, 0x40, 0x40, 0xc61d872708) internal/repository/parallel.go:29 +0x104 github.com/restic/restic/internal/backend.(*RetryBackend).List.func1.1(0x1e95ff, 0xc770802029, 0x40, 0x40, 0x1) internal/backend/backend_retry.go:133 +0xd9 github.com/restic/restic/internal/backend/local.(*Local).List.func1(0xc770802000, 0x69, 0x563480cd2740, 0xc770806000, 0x0, 0x0, 0x0, 0x0) internal/backend/local/local.go:267 +0x2ae path/filepath.walk(0xc770802000, 0x69, 0x563480cd2740, 0xc770806000, 0xc42020c240, 0x0, 0x0) /usr/lib/golang/src/path/filepath/path.go:356 +0x83 path/filepath.walk(0xc4201fc630, 0x28, 0x563480cd2740, 0xc420282410, 0xc42020c240, 0x0, 0x0) /usr/lib/golang/src/path/filepath/path.go:381 +0x3a2 path/filepath.Walk(0xc4201fc630, 0x28, 0xc42020c240, 0x1, 0xc42020c240) /usr/lib/golang/src/path/filepath/path.go:403 +0x11f github.com/restic/restic/internal/fs.Walk(0xc4201fc630, 0x28, 0xc42020c240, 0xc4201fc630, 0x28) internal/fs/file.go:99 +0x41 github.com/restic/restic/internal/backend/local.(*Local).List(0xc4201ff920, 0x563480cd01c0, 0xc420142140, 0x56348046d122, 0x5, 0xc4201f45d0, 0x5c44a001, 0xc4201f45d0) internal/backend/local/local.go:238 +0x199 github.com/restic/restic/internal/limiter.(*rateLimitedBackend).List(0xc42020f200, 0x563480cd01c0, 0xc420142140, 0x56348046d122, 0x5, 0xc4201f45d0, 0xbf0945eeada57e9b, 0x368e6652) :1 +0x74 github.com/restic/restic/internal/backend.(*RetryBackend).List.func1(0xc4201fa560, 0xc4201fa560) internal/backend/backend_retry.go:127 +0x12e github.com/restic/restic/vendor/github.com/cenkalti/backoff.RetryNotify(0xc4222bde40, 0x563480ccafc0, 0xc4201fa560, 0xc4222bdd88, 0xc4201fa560, 0xc4201fa560) vendor/github.com/cenkalti/backoff/retry.go:37 +0x8a github.com/restic/restic/internal/backend.(*RetryBackend).retry(0xc42020f240, 0x563480cd01c0, 0xc42020c200, 0xc4222fe770, 0xb, 0xc42027de40, 0xb, 0x0) internal/backend/backend_retry.go:36 +0x13d github.com/restic/restic/internal/backend.(*RetryBackend).List(0xc42020f240, 0x563480cd01c0, 0xc420142140, 0x56348046d122, 0x5, 0xc4201fa520, 0x0, 0x0) internal/backend/backend_retry.go:126 +0x278 github.com/restic/restic/internal/cache.(*Backend).List(0xc42008b890, 0x563480cd01c0, 0xc420142140, 0x56348046d122, 0x5, 0xc4201fa520, 0x0, 0x0) :1 +0x74 github.com/restic/restic/internal/repository.FilesInParallel.func1(0x0, 0x0) internal/repository/parallel.go:28 +0x130 github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go.func1(0xc420142180, 0xc420142280) vendor/golang.org/x/sync/errgroup/errgroup.go:58 +0x59 created by github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go vendor/golang.org/x/sync/errgroup/errgroup.go:55 +0x68 goroutine 65 [running]: goroutine running on other thread; stack unavailable created by github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go vendor/golang.org/x/sync/errgroup/errgroup.go:55 +0x68 goroutine 67 [runnable]: github.com/restic/restic/internal/repository.(*Index).store(...) internal/repository/index.go:49 github.com/restic/restic/internal/repository.DecodeIndex(0xc76e780010, 0x1eedb9, 0x1ffdf0, 0x56348046d122, 0x5, 0x89526d34ab4f5d80) internal/repository/index.go:478 +0x47c github.com/restic/restic/internal/repository.LoadIndexWithDecoder(0x563480cd01c0, 0xc420142140, 0x563480cd5520, 0xc420215ab0, 0x89526d34ab4f5d80, 0x5b676393791c2f6f, 0x77915bb790f65e8a, 0x4a90e46328ee8c2a, 0x56348096e1a0, 0xc4661e7e00, ...) internal/repository/index.go:560 +0x189 github.com/restic/restic/internal/repository.LoadIndex(0x563480cd01c0, 0xc420142140, 0x563480cd5520, 0xc420215ab0, 0x89526d34ab4f5d80, 0x5b676393791c2f6f, 0x77915bb790f65e8a, 0x4a90e46328ee8c2a, 0x0, 0x40, ...) internal/repository/repository.go:499 +0x9a github.com/restic/restic/internal/repository.(*Repository).LoadIndex.func1(0x563480cd01c0, 0xc420142140, 0x89526d34ab4f5d80, 0x5b676393791c2f6f, 0x77915bb790f65e8a, 0x4a90e46328ee8c2a, 0x0, 0x0) internal/repository/repository.go:399 +0x90 github.com/restic/restic/internal/repository.ParallelWorkFuncParseID.func1(0x563480cd01c0, 0xc420142140, 0xc73d0633d9, 0x40, 0x0, 0x0) internal/repository/parallel.go:63 +0x201 github.com/restic/restic/internal/repository.FilesInParallel.func2(0x8, 0x56348096f400) internal/repository/parallel.go:40 +0xbf github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go.func1(0xc420142180, 0xc42009e180) vendor/golang.org/x/sync/errgroup/errgroup.go:58 +0x59 created by github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go vendor/golang.org/x/sync/errgroup/errgroup.go:55 +0x68 goroutine 68 [running]: goroutine running on other thread; stack unavailable created by github.com/restic/restic/vendor/golang.org/x/sync/errgroup.(*Group).Go vendor/golang.org/x/sync/errgroup/errgroup.go:55 +0x68