Repository: ollama/ollama (language: go)

Issue:
"GML_ASSERT((int)sched->hash_set.size >= graph->n_nodes + graph->n_leafs) failed"
### What is the issue?

Hi, Thanks for awesome tool. I'm using the 'gemma3' model, but it intermittently encounters errors despite having sufficient memory available. I'm curious about potential causes of these frequent errors.

### Environment 
- GPU : Nvidia GeForce 1080ti x 8
- LLM Model : hf.co/bartowski/google_gemma-3-12b-it-GGUF:Q4_K_M

### nvidia-smi

| NVIDIA-SMI 465.19.01    Driver Version: 465.19.01    CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:1B:00.0 Off |                  N/A |
| 23%   34C    P8     9W / 250W |     10MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce ...  Off  | 00000000:1C:00.0 Off |                  N/A |
| 45%   77C    P2   205W / 250W |   8172MiB / 11178MiB |     93%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   2  NVIDIA GeForce ...  Off  | 00000000:1D:00.0 Off |                  N/A |
| 23%   33C    P8     9W / 250W |   6199MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   3  NVIDIA GeForce ...  Off  | 00000000:1E:00.0 Off |                  N/A |
| 23%   37C    P8    10W / 250W |   6199MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
...

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     15692      G   /usr/lib/xorg/Xorg                  5MiB |
|    1   N/A  N/A     57243      C   /usr/bin/ollama                  8164MiB |



### Relevant log output

```shell
ggml-backend.cpp:1556: GGML_ASSERT((int)sched->hash_set.size >= graph->n_nodes + graph->n_leafs) failed
SIGBUS: bus error
PC=0x7f56f5b53182 m=58 sigcode=2 addr=0x206203c14
signal arrived during cgo execution
goroutine 87 gp=0xc000683340 m=58 mp=0xc001b80808 [syscall]:
runtime.cgocall(0x55aa79b95bd0, 0xc00174f858)
	runtime/cgocall.go:167 +0x4b fp=0xc00174f830 sp=0xc00174f7f8 pc=0x55aa78d6196b
github.com/ollama/ollama/ml/backend/ggml._Cfunc_ggml_backend_sched_graph_compute_async(0x7f5760001350, 0x7f4f18c83080)
	_cgo_gotypes.go:489 +0x4a fp=0xc00174f858 sp=0xc00174f830 pc=0x55aa7915b1aa
github.com/ollama/ollama/ml/backend/ggml.Context.Compute.func1(...)
	github.com/ollama/ollama/ml/backend/ggml/ggml.go:499
github.com/ollama/ollama/ml/backend/ggml.Context.Compute({0xc0001a6140, 0x7f539053ca10, 0x7f4f18c83080, 0x0, 0x2000}, {0x0, 0x0, 0x0?})
	github.com/ollama/ollama/ml/backend/ggml/ggml.go:499 +0xbd fp=0xc00174f8e8 sp=0xc00174f858 pc=0x55aa79163c5d
github.com/ollama/ollama/ml/backend/ggml.(*Context).Compute(0xc0001730e0?, {0x0?, 0xc00256eb10?, 0x5c8?})
	<autogenerated>:1 +0x72 fp=0xc00174f960 sp=0xc00174f8e8 pc=0x55aa791696d2
github.com/ollama/ollama/kvcache.(*Causal).defrag(0xc0001730e0)
	github.com/ollama/ollama/kvcache/causal.go:367 +0x235 fp=0xc00174fa88 sp=0xc00174f960 pc=0x55aa791562f5
github.com/ollama/ollama/kvcache.(*Causal).StartForward(0xc0001730e0, {0x55aa7a048660, 0xc00256eae0}, {{0xc002652800, 0x200, 0x200}, {0x0, 0x0, 0x0}, {0xc002653000, ...}, ...})
	github.com/ollama/ollama/kvcache/causal.go:152 +0x13d fp=0xc00174fb08 sp=0xc00174fa88 pc=0x55aa7915519d
github.com/ollama/ollama/kvcache.(*WrapperCache).StartForward(0xc0003d06a0, {0x55aa7a048660, 0xc00256eae0}, {{0xc002652800, 0x200, 0x200}, {0x0, 0x0, 0x0}, {0xc002653000, ...}, ...})
	github.com/ollama/ollama/kvcache/wrapper.go:46 +0xd6 fp=0xc00174fbe0 sp=0xc00174fb08 pc=0x55aa79159396
github.com/ollama/ollama/model.Forward({0x55aa7a048660, 0xc00256eae0}, {0x55aa7a03fcf0, 0xc00033a070}, {{0xc002652800, 0x200, 0x200}, {0x0, 0x0, 0x0}, ...})
	github.com/ollama/ollama/model/model.go:294 +0xd0 fp=0xc00174fcc8 sp=0xc00174fbe0 pc=0x55aa791907b0
github.com/ollama/ollama/runner/ollamarunner.(*Server).processBatch(0xc00022a5a0)
	github.com/ollama/ollama/runner/ollamarunner/runner.go:423 +0x3bb fp=0xc00174ff98 sp=0xc00174fcc8 pc=0x55aa7921411b
github.com/ollama/ollama/runner/ollamarunner.(*Server).run(0xc00022a5a0, {0x55aa7a041020, 0xc0001fa8c0})
	github.com/ollama/ollama/runner/ollamarunner/runner.go:336 +0x4e fp=0xc00174ffb8 sp=0xc00174ff98 pc=0x55aa79213d0e
github.com/ollama/ollama/runner/ollamarunner.Execute.gowrap2()
	github.com/ollama/ollama/runner/ollamarunner/runner.go:800 +0x28 fp=0xc00174ffe0 sp=0xc00174ffb8 pc=0x55aa79218008
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc00174ffe8 sp=0xc00174ffe0 pc=0x55aa78d6c3a1
created by github.com/ollama/ollama/runner/ollamarunner.Execute in goroutine 1
	github.com/ollama/ollama/runner/ollamarunner/runner.go:800 +0xa9c
goroutine 1 gp=0xc000002380 m=nil [IO wait, 16 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000695648 sp=0xc000695628 pc=0x55aa78d64c6e
runtime.netpollblock(0xc000695698?, 0x78cfe426?, 0xaa?)
	runtime/netpoll.go:575 +0xf7 fp=0xc000695680 sp=0xc000695648 pc=0x55aa78d29a57
internal/poll.runtime_pollWait(0x7f5788279de0, 0x72)
	runtime/netpoll.go:351 +0x85 fp=0xc0006956a0 sp=0xc000695680 pc=0x55aa78d63e85
internal/poll.(*pollDesc).wait(0xc0001fcf80?, 0x900d07efe?, 0x0)
	internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc0006956c8 sp=0xc0006956a0 pc=0x55aa78deb307
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc0001fcf80)
	internal/poll/fd_unix.go:620 +0x295 fp=0xc000695770 sp=0xc0006956c8 pc=0x55aa78df06d5
net.(*netFD).accept(0xc0001fcf80)
	net/fd_unix.go:172 +0x29 fp=0xc000695828 sp=0xc000695770 pc=0x55aa78e634e9
net.(*TCPListener).accept(0xc000229540)
	net/tcpsock_posix.go:159 +0x1b fp=0xc000695878 sp=0xc000695828 pc=0x55aa78e78e9b
net.(*TCPListener).Accept(0xc000229540)
	net/tcpsock.go:380 +0x30 fp=0xc0006958a8 sp=0xc000695878 pc=0x55aa78e77d50
net/http.(*onceCloseListener).Accept(0xc000273dd0?)
	<autogenerated>:1 +0x24 fp=0xc0006958c0 sp=0xc0006958a8 pc=0x55aa7908f384
net/http.(*Server).Serve(0xc0002fd900, {0x55aa7a03ed58, 0xc000229540})
	net/http/server.go:3424 +0x30c fp=0xc0006959f0 sp=0xc0006958c0 pc=0x55aa79066c4c
github.com/ollama/ollama/runner/ollamarunner.Execute({0xc00022a030, 0xe, 0xf})
	github.com/ollama/ollama/runner/ollamarunner/runner.go:824 +0xe29 fp=0xc000695d08 sp=0xc0006959f0 pc=0x55aa79217d49
github.com/ollama/ollama/runner.Execute({0xc00022a010?, 0x0?, 0x0?})
	github.com/ollama/ollama/runner/runner.go:20 +0xc9 fp=0xc000695d30 sp=0xc000695d08 pc=0x55aa792189a9
github.com/ollama/ollama/cmd.NewCLI.func2(0xc0002fd700?, {0x55aa79bb1053?, 0x4?, 0x55aa79bb1057?})
	github.com/ollama/ollama/cmd/cmd.go:1327 +0x45 fp=0xc000695d58 sp=0xc000695d30 pc=0x55aa79966625
github.com/spf13/cobra.(*Command).execute(0xc0003fef08, {0xc0001730e0, 0xf, 0xf})
	github.com/spf13/cobra@v1.7.0/command.go:940 +0x85c fp=0xc000695e78 sp=0xc000695d58 pc=0x55aa78edcb3c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d2908)
	github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 fp=0xc000695f30 sp=0xc000695e78 pc=0x55aa78edd385
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.7.0/command.go:992
github.com/spf13/cobra.(*Command).ExecuteContext(...)
	github.com/spf13/cobra@v1.7.0/command.go:985
main.main()
	github.com/ollama/ollama/main.go:12 +0x4d fp=0xc000695f50 sp=0xc000695f30 pc=0x55aa7996698d
runtime.main()
	runtime/proc.go:283 +0x29d fp=0xc000695fe0 sp=0xc000695f50 pc=0x55aa78d3105d
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000695fe8 sp=0xc000695fe0 pc=0x55aa78d6c3a1
goroutine 2 gp=0xc000002e00 m=nil [force gc (idle), 19 minutes]:
runtime.gopark(0x1be94e24a256c2?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f2fa8 sp=0xc0000f2f88 pc=0x55aa78d64c6e
runtime.goparkunlock(...)
	runtime/proc.go:441
runtime.forcegchelper()
	runtime/proc.go:348 +0xb8 fp=0xc0000f2fe0 sp=0xc0000f2fa8 pc=0x55aa78d31398
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f2fe8 sp=0xc0000f2fe0 pc=0x55aa78d6c3a1
created by runtime.init.7 in goroutine 1
	runtime/proc.go:336 +0x1a
goroutine 3 gp=0xc000003340 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f3780 sp=0xc0000f3760 pc=0x55aa78d64c6e
runtime.goparkunlock(...)
	runtime/proc.go:441
runtime.bgsweep(0xc00003e100)
	runtime/mgcsweep.go:316 +0xdf fp=0xc0000f37c8 sp=0xc0000f3780 pc=0x55aa78d1ba5f
runtime.gcenable.gowrap1()
	runtime/mgc.go:204 +0x25 fp=0xc0000f37e0 sp=0xc0000f37c8 pc=0x55aa78d0fe45
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f37e8 sp=0xc0000f37e0 pc=0x55aa78d6c3a1
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:204 +0x66
goroutine 4 gp=0xc000003500 m=nil [GC scavenge wait]:
runtime.gopark(0x1149cc?, 0xd8481?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f3f78 sp=0xc0000f3f58 pc=0x55aa78d64c6e
runtime.goparkunlock(...)
	runtime/proc.go:441
runtime.(*scavengerState).park(0x55aa7a8a6b20)
	runtime/mgcscavenge.go:425 +0x49 fp=0xc0000f3fa8 sp=0xc0000f3f78 pc=0x55aa78d194a9
runtime.bgscavenge(0xc00003e100)
	runtime/mgcscavenge.go:658 +0x59 fp=0xc0000f3fc8 sp=0xc0000f3fa8 pc=0x55aa78d19a39
runtime.gcenable.gowrap2()
	runtime/mgc.go:205 +0x25 fp=0xc0000f3fe0 sp=0xc0000f3fc8 pc=0x55aa78d0fde5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f3fe8 sp=0xc0000f3fe0 pc=0x55aa78d6c3a1
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:205 +0xa5
goroutine 18 gp=0xc000206380 m=nil [finalizer wait]:
runtime.gopark(0x1b8?, 0xc000002380?, 0x1?, 0x23?, 0xc0000f2688?)
	runtime/proc.go:435 +0xce fp=0xc0000f2630 sp=0xc0000f2610 pc=0x55aa78d64c6e
runtime.runfinq()
	runtime/mfinal.go:196 +0x107 fp=0xc0000f27e0 sp=0xc0000f2630 pc=0x55aa78d0ee07
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f27e8 sp=0xc0000f27e0 pc=0x55aa78d6c3a1
created by runtime.createfing in goroutine 1
	runtime/mfinal.go:166 +0x3d
goroutine 19 gp=0xc000206e00 m=nil [chan receive]:
runtime.gopark(0xc0003314a0?, 0xc001494018?, 0x60?, 0xe7?, 0x55aa78e4a228?)
	runtime/proc.go:435 +0xce fp=0xc0000ee718 sp=0xc0000ee6f8 pc=0x55aa78d64c6e
runtime.chanrecv(0xc000202310, 0x0, 0x1)
	runtime/chan.go:664 +0x445 fp=0xc0000ee790 sp=0xc0000ee718 pc=0x55aa78d01005
runtime.chanrecv1(0x0?, 0x0?)
	runtime/chan.go:506 +0x12 fp=0xc0000ee7b8 sp=0xc0000ee790 pc=0x55aa78d00b92
runtime.unique_runtime_registerUniqueMapCleanup.func2(...)
	runtime/mgc.go:1796
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
	runtime/mgc.go:1799 +0x2f fp=0xc0000ee7e0 sp=0xc0000ee7b8 pc=0x55aa78d12fef
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000ee7e8 sp=0xc0000ee7e0 pc=0x55aa78d6c3a1
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
	runtime/mgc.go:1794 +0x85
goroutine 20 gp=0xc000206fc0 m=nil [GC worker (idle), 20 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000eef38 sp=0xc0000eef18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000eefc8 sp=0xc0000eef38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000eefe0 sp=0xc0000eefc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000eefe8 sp=0xc0000eefe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 21 gp=0xc000207180 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea33c00237bb?, 0x3?, 0x8b?, 0x15?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000ef738 sp=0xc0000ef718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000ef7c8 sp=0xc0000ef738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000ef7e0 sp=0xc0000ef7c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000ef7e8 sp=0xc0000ef7e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 22 gp=0xc000207340 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb335b?, 0x1?, 0x6a?, 0xd1?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000eff38 sp=0xc0000eff18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000effc8 sp=0xc0000eff38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000effe0 sp=0xc0000effc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000effe8 sp=0xc0000effe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 23 gp=0xc000207500 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb401e?, 0x3?, 0x81?, 0xb0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f0738 sp=0xc0000f0718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f07c8 sp=0xc0000f0738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f07e0 sp=0xc0000f07c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f07e8 sp=0xc0000f07e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 24 gp=0xc0002076c0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbaa5f2?, 0x1?, 0x4e?, 0xfc?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f0f38 sp=0xc0000f0f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f0fc8 sp=0xc0000f0f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f0fe0 sp=0xc0000f0fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f0fe8 sp=0xc0000f0fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 25 gp=0xc000207880 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab6455c?, 0x1?, 0xec?, 0xf?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f1738 sp=0xc0000f1718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f17c8 sp=0xc0000f1738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f17e0 sp=0xc0000f17c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f17e8 sp=0xc0000f17e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 26 gp=0xc000207a40 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab4f7f0?, 0x1?, 0xb1?, 0xbc?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f1f38 sp=0xc0000f1f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f1fc8 sp=0xc0000f1f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f1fe0 sp=0xc0000f1fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f1fe8 sp=0xc0000f1fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 27 gp=0xc000207c00 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb5ebc?, 0x3?, 0xbb?, 0xc3?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f8738 sp=0xc0004f8718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f87c8 sp=0xc0004f8738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f87e0 sp=0xc0004f87c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f87e8 sp=0xc0004f87e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 28 gp=0xc000207dc0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab58ae2?, 0x1?, 0xef?, 0x67?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f8f38 sp=0xc0004f8f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f8fc8 sp=0xc0004f8f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f8fe0 sp=0xc0004f8fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f8fe8 sp=0xc0004f8fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 29 gp=0xc0004fc000 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab61e35?, 0x1?, 0x1d?, 0x65?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f9738 sp=0xc0004f9718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f97c8 sp=0xc0004f9738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f97e0 sp=0xc0004f97c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f97e8 sp=0xc0004f97e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 30 gp=0xc0004fc1c0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab58bf6?, 0x3?, 0x5b?, 0x6a?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f9f38 sp=0xc0004f9f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f9fc8 sp=0xc0004f9f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f9fe0 sp=0xc0004f9fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f9fe8 sp=0xc0004f9fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 31 gp=0xc0004fc380 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dacbfb6f?, 0x3?, 0x4a?, 0xd2?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004fa738 sp=0xc0004fa718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004fa7c8 sp=0xc0004fa738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004fa7e0 sp=0xc0004fa7c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004fa7e8 sp=0xc0004fa7e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 32 gp=0xc0004fc540 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab55386?, 0x1?, 0xec?, 0x20?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004faf38 sp=0xc0004faf18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004fafc8 sp=0xc0004faf38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004fafe0 sp=0xc0004fafc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004fafe8 sp=0xc0004fafe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 33 gp=0xc0004fc700 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0xf?, 0x6f?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004fb738 sp=0xc0004fb718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004fb7c8 sp=0xc0004fb738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004fb7e0 sp=0xc0004fb7c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004fb7e8 sp=0xc0004fb7e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 34 gp=0xc0004fc8c0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fba80c1?, 0x3?, 0x53?, 0xf?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004fbf38 sp=0xc0004fbf18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004fbfc8 sp=0xc0004fbf38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004fbfe0 sp=0xc0004fbfc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004fbfe8 sp=0xc0004fbfe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 35 gp=0xc0004fca80 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x34?, 0xbb?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f4738 sp=0xc0004f4718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f47c8 sp=0xc0004f4738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f47e0 sp=0xc0004f47c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f47e8 sp=0xc0004f47e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 36 gp=0xc0004fcc40 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbaac08?, 0x1?, 0xfc?, 0x1c?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f4f38 sp=0xc0004f4f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f4fc8 sp=0xc0004f4f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f4fe0 sp=0xc0004f4fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f4fe8 sp=0xc0004f4fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 37 gp=0xc0004fce00 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0xf4?, 0x5c?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f5738 sp=0xc0004f5718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f57c8 sp=0xc0004f5738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f57e0 sp=0xc0004f57c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f57e8 sp=0xc0004f57e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 38 gp=0xc0004fcfc0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea341deb449f?, 0x3?, 0x3c?, 0x1e?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f5f38 sp=0xc0004f5f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f5fc8 sp=0xc0004f5f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f5fe0 sp=0xc0004f5fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f5fe8 sp=0xc0004f5fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 39 gp=0xc0004fd180 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea33bffe55b9?, 0x3?, 0xec?, 0x2f?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f6738 sp=0xc0004f6718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f67c8 sp=0xc0004f6738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f67e0 sp=0xc0004f67c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f67e8 sp=0xc0004f67e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 40 gp=0xc0004fd340 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0x24?, 0x4b?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f6f38 sp=0xc0004f6f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f6fc8 sp=0xc0004f6f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f6fe0 sp=0xc0004f6fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f6fe8 sp=0xc0004f6fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 41 gp=0xc0004fd500 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x16?, 0xf8?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f7738 sp=0xc0004f7718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f77c8 sp=0xc0004f7738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f77e0 sp=0xc0004f77c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f77e8 sp=0xc0004f77e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 42 gp=0xc0004fd6c0 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x9f?, 0xc9?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0004f7f38 sp=0xc0004f7f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0004f7fc8 sp=0xc0004f7f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0004f7fe0 sp=0xc0004f7fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0004f7fe8 sp=0xc0004f7fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 5 gp=0xc000003a40 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb3d80?, 0x1?, 0x19?, 0x1f?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f4738 sp=0xc0000f4718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f47c8 sp=0xc0000f4738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f47e0 sp=0xc0000f47c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f47e8 sp=0xc0000f47e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 6 gp=0xc000003c00 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fba8152?, 0x3?, 0xa?, 0x0?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f4f38 sp=0xc0000f4f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f4fc8 sp=0xc0000f4f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f4fe0 sp=0xc0000f4fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f4fe8 sp=0xc0000f4fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 7 gp=0xc000003dc0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dae34978?, 0x1?, 0xc8?, 0x7b?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f5738 sp=0xc0000f5718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f57c8 sp=0xc0000f5738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f57e0 sp=0xc0000f57c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f57e8 sp=0xc0000f57e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 8 gp=0xc00012a000 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea341deb47a9?, 0x3?, 0x50?, 0xba?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc0000f5f38 sp=0xc0000f5f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0000f5fc8 sp=0xc0000f5f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0000f5fe0 sp=0xc0000f5fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000f5fe8 sp=0xc0000f5fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 9 gp=0xc00012a1c0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb45c5?, 0x1?, 0xf4?, 0xae?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000130738 sp=0xc000130718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0001307c8 sp=0xc000130738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0001307e0 sp=0xc0001307c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0001307e8 sp=0xc0001307e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 50 gp=0xc000182380 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0x5e?, 0xed?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc00012c738 sp=0xc00012c718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc00012c7c8 sp=0xc00012c738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc00012c7e0 sp=0xc00012c7c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc00012c7e8 sp=0xc00012c7e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 51 gp=0xc000182540 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34da8003e2?, 0x3?, 0xdd?, 0x89?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc00012cf38 sp=0xc00012cf18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc00012cfc8 sp=0xc00012cf38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc00012cfe0 sp=0xc00012cfc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc00012cfe8 sp=0xc00012cfe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 52 gp=0xc000182700 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x67?, 0x38?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc00012d738 sp=0xc00012d718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc00012d7c8 sp=0xc00012d738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc00012d7e0 sp=0xc00012d7c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc00012d7e8 sp=0xc00012d7e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 43 gp=0xc0004fd880 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab6e64c?, 0x1?, 0x6a?, 0xe4?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000504738 sp=0xc000504718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005047c8 sp=0xc000504738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005047e0 sp=0xc0005047c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005047e8 sp=0xc0005047e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 44 gp=0xc0004fda40 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbaa795?, 0x3?, 0x5d?, 0x19?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000504f38 sp=0xc000504f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000504fc8 sp=0xc000504f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000504fe0 sp=0xc000504fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000504fe8 sp=0xc000504fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 45 gp=0xc0004fdc00 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab600dc?, 0x1?, 0xa2?, 0x65?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000505738 sp=0xc000505718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005057c8 sp=0xc000505738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005057e0 sp=0xc0005057c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005057e8 sp=0xc0005057e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 46 gp=0xc0004fddc0 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0xb6?, 0xeb?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000505f38 sp=0xc000505f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000505fc8 sp=0xc000505f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000505fe0 sp=0xc000505fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000505fe8 sp=0xc000505fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 47 gp=0xc0004fe000 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0x19?, 0x6e?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000506738 sp=0xc000506718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005067c8 sp=0xc000506738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005067e0 sp=0xc0005067c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005067e8 sp=0xc0005067e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 48 gp=0xc0004fe1c0 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x88?, 0xe1?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000506f38 sp=0xc000506f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000506fc8 sp=0xc000506f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000506fe0 sp=0xc000506fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000506fe8 sp=0xc000506fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 49 gp=0xc0004fe380 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0xd3?, 0x1c?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000507738 sp=0xc000507718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005077c8 sp=0xc000507738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005077e0 sp=0xc0005077c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005077e8 sp=0xc0005077e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 66 gp=0xc0004fe540 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x67?, 0x9b?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000507f38 sp=0xc000507f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000507fc8 sp=0xc000507f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000507fe0 sp=0xc000507fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000507fe8 sp=0xc000507fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 67 gp=0xc0004fe700 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0xe7?, 0x7b?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000500738 sp=0xc000500718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005007c8 sp=0xc000500738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005007e0 sp=0xc0005007c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005007e8 sp=0xc0005007e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 68 gp=0xc0004fe8c0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab57cea?, 0x3?, 0x85?, 0x3a?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000500f38 sp=0xc000500f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000500fc8 sp=0xc000500f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000500fe0 sp=0xc000500fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000500fe8 sp=0xc000500fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 69 gp=0xc0004fea80 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb40d2?, 0x3?, 0xae?, 0x8e?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000501738 sp=0xc000501718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005017c8 sp=0xc000501738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005017e0 sp=0xc0005017c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005017e8 sp=0xc0005017e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 70 gp=0xc0004fec40 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbb40fc?, 0x3?, 0x99?, 0x2a?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000501f38 sp=0xc000501f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000501fc8 sp=0xc000501f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000501fe0 sp=0xc000501fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000501fe8 sp=0xc000501fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 71 gp=0xc0004fee00 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0xb5?, 0x41?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000502738 sp=0xc000502718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005027c8 sp=0xc000502738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005027e0 sp=0xc0005027c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005027e8 sp=0xc0005027e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 72 gp=0xc0004fefc0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dab4f610?, 0x3?, 0x97?, 0xc5?, 0x0?)

....
goroutine 11 gp=0xc00012a540 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x56?, 0xe4?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000131738 sp=0xc000131718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0001317c8 sp=0xc000131738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0001317e0 sp=0xc0001317c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0001317e8 sp=0xc0001317e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 12 gp=0xc00012a700 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0x25?, 0x3c?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000131f38 sp=0xc000131f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000131fc8 sp=0xc000131f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000131fe0 sp=0xc000131fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000131fe8 sp=0xc000131fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 13 gp=0xc00012a8c0 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea34dac6aaf6?, 0x1?, 0x46?, 0xc5?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000132738 sp=0xc000132718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0001327c8 sp=0xc000132738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0001327e0 sp=0xc0001327c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0001327e8 sp=0xc0001327e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 14 gp=0xc00012aa80 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fba7ed7?, 0x3?, 0x31?, 0xd5?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000132f38 sp=0xc000132f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000132fc8 sp=0xc000132f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000132fe0 sp=0xc000132fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000132fe8 sp=0xc000132fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 15 gp=0xc00012ac40 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fba8cca?, 0x3?, 0xf9?, 0x7c?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000133738 sp=0xc000133718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0001337c8 sp=0xc000133738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0001337e0 sp=0xc0001337c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0001337e8 sp=0xc0001337e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 16 gp=0xc00012ae00 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0x8b?, 0x47?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000133f38 sp=0xc000133f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000133fc8 sp=0xc000133f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000133fe0 sp=0xc000133fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000133fe8 sp=0xc000133fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 82 gp=0xc00012afc0 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x3?, 0xb8?, 0xa4?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000508738 sp=0xc000508718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005087c8 sp=0xc000508738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005087e0 sp=0xc0005087c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005087e8 sp=0xc0005087e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 83 gp=0xc00012b180 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0x8?, 0x58?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000508f38 sp=0xc000508f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000508fc8 sp=0xc000508f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000508fe0 sp=0xc000508fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000508fe8 sp=0xc000508fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 84 gp=0xc00012b340 m=nil [GC worker (idle)]:
runtime.gopark(0x55aa7a955280?, 0x1?, 0xae?, 0xac?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000509738 sp=0xc000509718 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc0005097c8 sp=0xc000509738 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc0005097e0 sp=0xc0005097c8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0005097e8 sp=0xc0005097e0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 85 gp=0xc00012b500 m=nil [GC worker (idle)]:
runtime.gopark(0x1bea335fbaa788?, 0x3?, 0xf2?, 0xd3?, 0x0?)
	runtime/proc.go:435 +0xce fp=0xc000509f38 sp=0xc000509f18 pc=0x55aa78d64c6e
runtime.gcBgMarkWorker(0xc000203570)
	runtime/mgc.go:1423 +0xe9 fp=0xc000509fc8 sp=0xc000509f38 pc=0x55aa78d12309
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1339 +0x25 fp=0xc000509fe0 sp=0xc000509fc8 pc=0x55aa78d121e5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000509fe8 sp=0xc000509fe0 pc=0x55aa78d6c3a1
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1339 +0x105
goroutine 96 gp=0xc001c02380 m=nil [select]:
runtime.gopark(0xc000697a08?, 0x2?, 0x0?, 0x6?, 0xc000697864?)
	runtime/proc.go:435 +0xce fp=0xc000697678 sp=0xc000697658 pc=0x55aa78d64c6e
runtime.selectgo(0xc000697a08, 0xc000697860, 0x800?, 0x0, 0x4?, 0x1)
	runtime/select.go:351 +0x837 fp=0xc0006977b0 sp=0xc000697678 pc=0x55aa78d43557
github.com/ollama/ollama/runner/ollamarunner.(*Server).completion(0xc00022a5a0, {0x55aa7a03ef38, 0xc0025dc000}, 0xc0001dc000)
	github.com/ollama/ollama/runner/ollamarunner/runner.go:620 +0xae5 fp=0xc000697ac0 sp=0xc0006977b0 pc=0x55aa79216265
github.com/ollama/ollama/runner/ollamarunner.(*Server).completion-fm({0x55aa7a03ef38?, 0xc0025dc000?}, 0xc000697b40?)
	<autogenerated>:1 +0x36 fp=0xc000697af0 sp=0xc000697ac0 pc=0x55aa79218816
net/http.HandlerFunc.ServeHTTP(0xc0001f0780?, {0x55aa7a03ef38?, 0xc0025dc000?}, 0xc000697b60?)
	net/http/server.go:2294 +0x29 fp=0xc000697b18 sp=0xc000697af0 pc=0x55aa79063289
net/http.(*ServeMux).ServeHTTP(0x55aa78d09325?, {0x55aa7a03ef38, 0xc0025dc000}, 0xc0001dc000)
	net/http/server.go:2822 +0x1c4 fp=0xc000697b68 sp=0xc000697b18 pc=0x55aa79065184
net/http.serverHandler.ServeHTTP({0x55aa7a03b5d0?}, {0x55aa7a03ef38?, 0xc0025dc000?}, 0x1?)
	net/http/server.go:3301 +0x8e fp=0xc000697b98 sp=0xc000697b68 pc=0x55aa79082c0e
net/http.(*conn).serve(0xc000273dd0, {0x55aa7a040fe8, 0xc0003e4e70})
	net/http/server.go:2102 +0x625 fp=0xc000697fb8 sp=0xc000697b98 pc=0x55aa79061785
net/http.(*Server).Serve.gowrap3()
	net/http/server.go:3454 +0x28 fp=0xc000697fe0 sp=0xc000697fb8 pc=0x55aa79067048
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000697fe8 sp=0xc000697fe0 pc=0x55aa78d6c3a1
created by net/http.(*Server).Serve in goroutine 1
	net/http/server.go:3454 +0x485
goroutine 1107 gp=0xc002cc48c0 m=nil [IO wait]:
runtime.gopark(0xc001701808?, 0xc002cbf608?, 0x3e?, 0xa1?, 0xb?)
	runtime/proc.go:435 +0xce fp=0xc002cbf5d8 sp=0xc002cbf5b8 pc=0x55aa78d64c6e
runtime.netpollblock(0x55aa78d880f8?, 0x78cfe426?, 0xaa?)
	runtime/netpoll.go:575 +0xf7 fp=0xc002cbf610 sp=0xc002cbf5d8 pc=0x55aa78d29a57
internal/poll.runtime_pollWait(0x7f5788279cc8, 0x72)
	runtime/netpoll.go:351 +0x85 fp=0xc002cbf630 sp=0xc002cbf610 pc=0x55aa78d63e85
internal/poll.(*pollDesc).wait(0xc0001fc000?, 0xc0033900d1?, 0x0)
	internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc002cbf658 sp=0xc002cbf630 pc=0x55aa78deb307
internal/poll.(*pollDesc).waitRead(...)
	internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc0001fc000, {0xc0033900d1, 0x1, 0x1})
	internal/poll/fd_unix.go:165 +0x27a fp=0xc002cbf6f0 sp=0xc002cbf658 pc=0x55aa78dec5fa
net.(*netFD).Read(0xc0001fc000, {0xc0033900d1?, 0xc000229998?, 0xc002cbf770?})
	net/fd_posix.go:55 +0x25 fp=0xc002cbf738 sp=0xc002cbf6f0 pc=0x55aa78e61545
net.(*conn).Read(0xc0001a2010, {0xc0033900d1?, 0xc001370200?, 0x55aa79159e40?})
	net/net.go:194 +0x45 fp=0xc002cbf780 sp=0xc002cbf738 pc=0x55aa78e6f905
net/http.(*connReader).backgroundRead(0xc0033900c0)
	net/http/server.go:690 +0x37 fp=0xc002cbf7c8 sp=0xc002cbf780 pc=0x55aa7905b657
net/http.(*connReader).startBackgroundRead.gowrap2()
	net/http/server.go:686 +0x25 fp=0xc002cbf7e0 sp=0xc002cbf7c8 pc=0x55aa7905b585
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc002cbf7e8 sp=0xc002cbf7e0 pc=0x55aa78d6c3a1
created by net/http.(*connReader).startBackgroundRead in goroutine 96
	net/http/server.go:686 +0xb6
rax    0x7f575840c1b0
rbx    0x7f5738006370

rcx    0x521
rdx    0x206203c14
rdi    0x7f57582415a0
rsi    0x1
rbp    0x7f57583f2440
rsp    0x7f53abffe9d0
r8     0x0
r9     0x7f509804d810
r10    0x55aa78a412ac

r11    0x246
r12    0x7f5760001280
r13    0x7f57582415a0
r14    0x0
r15    0x7f5758002e40
rip    0x7f56f5b53182
rflags 0x10206
cs     0x33
fs     0x0
gs     0x0
```

### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.6.2


Discussion / hints:

Fix patch:
diff --git a/kvcache/causal.go b/kvcache/causal.go
index edf6666dab6..e470f6fe848 100644
--- a/kvcache/causal.go
+++ b/kvcache/causal.go
@@ -321,7 +321,8 @@ func (c *Causal) defrag() {
 	ctx := c.backend.NewContext()
 
 	// For every move, 6 tensors are required per layer (2 views and a
-	// copy for each of k and v).
+	// copy for each of k and v). We also need to refer to the original
+	// k and v cache tensors - once per layer, not per move.
 	layers := 0
 	for _, key := range c.keys {
 		if key == nil {
@@ -330,7 +331,7 @@ func (c *Causal) defrag() {
 		layers++
 	}
 
-	maxMoves := ctx.MaxGraphNodes() / (6 * layers)
+	maxMoves := (ctx.MaxGraphNodes() - 2*layers) / (6 * layers)
 	moves := 0
 
 	var pendingSrc, pendingDst, pendingLen int


Test patch: