[GH-ISSUE #7838] AMD ROCm 6.2.4 Ubuntu 24.04 ggml-cuda.cu:132: CUDA error #30771

Closed
opened 2026-04-22 10:40:51 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @unclemusclez on GitHub (Nov 26, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7838

What is the issue?

Not sure why ggml-cuda.cu is being called with AMD:

compiled from origin main

ggml-cuda.cu:132: CUDA error
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No stack.
The program is not being run.
SIGABRT: abort
PC=0x7db2a829eb1c m=5 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 8 gp=0xc0000e01c0 m=5 mp=0xc000100008 [syscall]:
runtime.cgocall(0x5bd31a6880f0, 0xc000062b20)
        runtime/cgocall.go:167 +0x4b fp=0xc000062af8 sp=0xc000062ac0 pc=0x5bd31a43d7ab
github.com/ollama/ollama/llama._Cfunc_llama_decode(0x7daffb4d09f0, {0x9, 0x7daffb4a59b0, 0x0, 0x0, 0x7daffb5686d0, 0x7daffb4e2da0, 0x7daffb473a40, 0x7daffb4e23b0, 0x0, ...})
        _cgo_gotypes.go:551 +0x52 fp=0xc000062b20 sp=0xc000062af8 pc=0x5bd31a4e7252
github.com/ollama/ollama/llama.(*Context).Decode.func1(0x5bd31a683d4b?, 0x7daffb4d09f0?)
        github.com/ollama/ollama/llama/llama.go:169 +0xd8 fp=0xc000062c40 sp=0xc000062b20 pc=0x5bd31a4e9818
github.com/ollama/ollama/llama.(*Context).Decode(0xc000388000?, 0x0?)
        github.com/ollama/ollama/llama/llama.go:169 +0x17 fp=0xc000062c88 sp=0xc000062c40 pc=0x5bd31a4e9677
main.(*Server).processBatch(0xc0000ac1b0, 0xc00030e000, 0xc000062f10)
        github.com/ollama/ollama/llama/runner/runner.go:427 +0x385 fp=0xc000062ed0 sp=0xc000062c88 pc=0x5bd31a682d05
main.(*Server).run(0xc0000ac1b0, {0x5bd31a9c4960, 0xc00008a0a0})
        github.com/ollama/ollama/llama/runner/runner.go:327 +0x199 fp=0xc000062fb8 sp=0xc000062ed0 pc=0x5bd31a682619
main.main.gowrap2()
        github.com/ollama/ollama/llama/runner/runner.go:922 +0x28 fp=0xc000062fe0 sp=0xc000062fb8 pc=0x5bd31a687048
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000062fe8 sp=0xc000062fe0 pc=0x5bd31a44b1a1
created by main.main in goroutine 1
        github.com/ollama/ollama/llama/runner/runner.go:922 +0xc52

goroutine 1 gp=0xc0000061c0 m=nil [IO wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000027858 sp=0xc000027838 pc=0x5bd31a44356e
runtime.netpollblock(0xc0000278a8?, 0x1a3dbf86?, 0xd3?)
        runtime/netpoll.go:575 +0xf7 fp=0xc000027890 sp=0xc000027858 pc=0x5bd31a408337
internal/poll.runtime_pollWait(0x7db2a69cc008, 0x72)
        runtime/netpoll.go:351 +0x85 fp=0xc0000278b0 sp=0xc000027890 pc=0x5bd31a442865
internal/poll.(*pollDesc).wait(0xc0000da100?, 0x2c?, 0x0)
        internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc0000278d8 sp=0xc0000278b0 pc=0x5bd31a498187
internal/poll.(*pollDesc).waitRead(...)
        internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0xc0000da100)
        internal/poll/fd_unix.go:620 +0x295 fp=0xc000027980 sp=0xc0000278d8 pc=0x5bd31a4996f5
net.(*netFD).accept(0xc0000da100)
        net/fd_unix.go:172 +0x29 fp=0xc000027a38 sp=0xc000027980 pc=0x5bd31a511be9
net.(*TCPListener).accept(0xc00002e740)
        net/tcpsock_posix.go:159 +0x1e fp=0xc000027a88 sp=0xc000027a38 pc=0x5bd31a52223e
net.(*TCPListener).Accept(0xc00002e740)
        net/tcpsock.go:372 +0x30 fp=0xc000027ab8 sp=0xc000027a88 pc=0x5bd31a521570
net/http.(*onceCloseListener).Accept(0xc0000ac240?)
        <autogenerated>:1 +0x24 fp=0xc000027ad0 sp=0xc000027ab8 pc=0x5bd31a660144
net/http.(*Server).Serve(0xc0000d84b0, {0x5bd31a9c4378, 0xc00002e740})
        net/http/server.go:3330 +0x30c fp=0xc000027c00 sp=0xc000027ad0 pc=0x5bd31a651e8c
main.main()
        github.com/ollama/ollama/llama/runner/runner.go:942 +0xfc7 fp=0xc000027f50 sp=0xc000027c00 pc=0x5bd31a686dc7
runtime.main()
        runtime/proc.go:272 +0x29d fp=0xc000027fe0 sp=0xc000027f50 pc=0x5bd31a40f91d
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000027fe8 sp=0xc000027fe0 pc=0x5bd31a44b1a1

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000050fa8 sp=0xc000050f88 pc=0x5bd31a44356e
runtime.goparkunlock(...)
        runtime/proc.go:430
runtime.forcegchelper()
        runtime/proc.go:337 +0xb8 fp=0xc000050fe0 sp=0xc000050fa8 pc=0x5bd31a40fc58
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000050fe8 sp=0xc000050fe0 pc=0x5bd31a44b1a1
created by runtime.init.7 in goroutine 1
        runtime/proc.go:325 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000051780 sp=0xc000051760 pc=0x5bd31a44356e
runtime.goparkunlock(...)
        runtime/proc.go:430
runtime.bgsweep(0xc00007e000)
        runtime/mgcsweep.go:277 +0x94 fp=0xc0000517c8 sp=0xc000051780 pc=0x5bd31a3fa5d4
runtime.gcenable.gowrap1()
        runtime/mgc.go:203 +0x25 fp=0xc0000517e0 sp=0xc0000517c8 pc=0x5bd31a3eeea5
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000517e8 sp=0xc0000517e0 pc=0x5bd31a44b1a1
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0xc00007e000?, 0x5bd31a8c0bf0?, 0x1?, 0x0?, 0xc000007340?)
        runtime/proc.go:424 +0xce fp=0xc000051f78 sp=0xc000051f58 pc=0x5bd31a44356e
runtime.goparkunlock(...)
        runtime/proc.go:430
runtime.(*scavengerState).park(0x5bd31abadb20)
        runtime/mgcscavenge.go:425 +0x49 fp=0xc000051fa8 sp=0xc000051f78 pc=0x5bd31a3f8009
runtime.bgscavenge(0xc00007e000)
        runtime/mgcscavenge.go:653 +0x3c fp=0xc000051fc8 sp=0xc000051fa8 pc=0x5bd31a3f857c
runtime.gcenable.gowrap2()
        runtime/mgc.go:204 +0x25 fp=0xc000051fe0 sp=0xc000051fc8 pc=0x5bd31a3eee45
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc000051fe8 sp=0xc000051fe0 pc=0x5bd31a44b1a1
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:204 +0xa5

goroutine 5 gp=0xc000007c00 m=nil [finalizer wait]:
runtime.gopark(0xc000050648?, 0x5bd31a3e53a5?, 0xb0?, 0x1?, 0xc0000061c0?)
        runtime/proc.go:424 +0xce fp=0xc000050620 sp=0xc000050600 pc=0x5bd31a44356e
runtime.runfinq()
        runtime/mfinal.go:193 +0x107 fp=0xc0000507e0 sp=0xc000050620 pc=0x5bd31a3edf27
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000507e8 sp=0xc0000507e0 pc=0x5bd31a44b1a1
created by runtime.createfing in goroutine 1
        runtime/mfinal.go:163 +0x3d

goroutine 6 gp=0xc000007dc0 m=nil [chan receive]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:424 +0xce fp=0xc000052718 sp=0xc0000526f8 pc=0x5bd31a44356e
runtime.chanrecv(0xc00008c0e0, 0x0, 0x1)
        runtime/chan.go:639 +0x41c fp=0xc000052790 sp=0xc000052718 pc=0x5bd31a3deb7c
runtime.chanrecv1(0x0?, 0x0?)
        runtime/chan.go:489 +0x12 fp=0xc0000527b8 sp=0xc000052790 pc=0x5bd31a3de752
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
        runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
        runtime/mgc.go:1735 +0x2f fp=0xc0000527e0 sp=0xc0000527b8 pc=0x5bd31a3f1cef
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x5bd31a44b1a1
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
        runtime/mgc.go:1730 +0x96

goroutine 9 gp=0xc0000e0540 m=nil [select]:
runtime.gopark(0xc00026ba50?, 0x2?, 0x6e?, 0xf1?, 0xc00026b834?)
        runtime/proc.go:424 +0xce fp=0xc00026b698 sp=0xc00026b678 pc=0x5bd31a44356e
runtime.selectgo(0xc00026ba50, 0xc00026b830, 0x9?, 0x0, 0x1?, 0x1)
        runtime/select.go:335 +0x7a5 fp=0xc00026b7c0 sp=0xc00026b698 pc=0x5bd31a421825
main.(*Server).completion(0xc0000ac1b0, {0x5bd31a9c44f8, 0xc00024d6c0}, 0xc0002517c0)
        github.com/ollama/ollama/llama/runner/runner.go:667 +0xa25 fp=0xc00026bac0 sp=0xc00026b7c0 pc=0x5bd31a684805
main.(*Server).completion-fm({0x5bd31a9c44f8?, 0xc00024d6c0?}, 0x5bd31a656187?)
        <autogenerated>:1 +0x36 fp=0xc00026baf0 sp=0xc00026bac0 pc=0x5bd31a687836
net/http.HandlerFunc.ServeHTTP(0xc0000c40e0?, {0x5bd31a9c44f8?, 0xc00024d6c0?}, 0x0?)
        net/http/server.go:2220 +0x29 fp=0xc00026bb18 sp=0xc00026baf0 pc=0x5bd31a64ed49
net/http.(*ServeMux).ServeHTTP(0x5bd31a3e53a5?, {0x5bd31a9c44f8, 0xc00024d6c0}, 0xc0002517c0)
        net/http/server.go:2747 +0x1ca fp=0xc00026bb68 sp=0xc00026bb18 pc=0x5bd31a650bea
net/http.serverHandler.ServeHTTP({0x5bd31a9c3560?}, {0x5bd31a9c44f8?, 0xc00024d6c0?}, 0x6?)
        net/http/server.go:3210 +0x8e fp=0xc00026bb98 sp=0xc00026bb68 pc=0x5bd31a657aee
net/http.(*conn).serve(0xc0000ac240, {0x5bd31a9c4928, 0xc0000990e0})
        net/http/server.go:2092 +0x5d0 fp=0xc00026bfb8 sp=0xc00026bb98 pc=0x5bd31a64d970
net/http.(*Server).Serve.gowrap3()
        net/http/server.go:3360 +0x28 fp=0xc00026bfe0 sp=0xc00026bfb8 pc=0x5bd31a652288
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc00026bfe8 sp=0xc00026bfe0 pc=0x5bd31a44b1a1
created by net/http.(*Server).Serve in goroutine 1
        net/http/server.go:3360 +0x485

goroutine 547 gp=0xc000299dc0 m=nil [IO wait]:
runtime.gopark(0x5bd31a3e9885?, 0x0?, 0x0?, 0x0?, 0xb?)
        runtime/proc.go:424 +0xce fp=0xc0002d6da8 sp=0xc0002d6d88 pc=0x5bd31a44356e
runtime.netpollblock(0x5bd31a47eb18?, 0x1a3dbf86?, 0xd3?)
        runtime/netpoll.go:575 +0xf7 fp=0xc0002d6de0 sp=0xc0002d6da8 pc=0x5bd31a408337
internal/poll.runtime_pollWait(0x7db2a69cbf00, 0x72)
        runtime/netpoll.go:351 +0x85 fp=0xc0002d6e00 sp=0xc0002d6de0 pc=0x5bd31a442865
internal/poll.(*pollDesc).wait(0xc0000da180?, 0xc000099211?, 0x0)
        internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc0002d6e28 sp=0xc0002d6e00 pc=0x5bd31a498187
internal/poll.(*pollDesc).waitRead(...)
        internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc0000da180, {0xc000099211, 0x1, 0x1})
        internal/poll/fd_unix.go:165 +0x27a fp=0xc0002d6ec0 sp=0xc0002d6e28 pc=0x5bd31a498cda
net.(*netFD).Read(0xc0000da180, {0xc000099211?, 0xc0002d6f48?, 0x5bd31a444c10?})
        net/fd_posix.go:55 +0x25 fp=0xc0002d6f08 sp=0xc0002d6ec0 pc=0x5bd31a510b05
net.(*conn).Read(0xc0000540e0, {0xc000099211?, 0x0?, 0x5bd31ac56a20?})
        net/net.go:189 +0x45 fp=0xc0002d6f50 sp=0xc0002d6f08 pc=0x5bd31a51a505
net.(*TCPConn).Read(0x5bd31ab6ddb0?, {0xc000099211?, 0x0?, 0x0?})
        <autogenerated>:1 +0x25 fp=0xc0002d6f80 sp=0xc0002d6f50 pc=0x5bd31a5275a5
net/http.(*connReader).backgroundRead(0xc000099200)
        net/http/server.go:690 +0x37 fp=0xc0002d6fc8 sp=0xc0002d6f80 pc=0x5bd31a6482f7
net/http.(*connReader).startBackgroundRead.gowrap2()
        net/http/server.go:686 +0x25 fp=0xc0002d6fe0 sp=0xc0002d6fc8 pc=0x5bd31a648225
runtime.goexit({})
        runtime/asm_amd64.s:1700 +0x1 fp=0xc0002d6fe8 sp=0xc0002d6fe0 pc=0x5bd31a44b1a1
created by net/http.(*connReader).startBackgroundRead in goroutine 9
        net/http/server.go:686 +0xb6

rax    0x0
rbx    0xdc5e
rcx    0x7db2a829eb1c
rdx    0x6
rdi    0xdc5a
rsi    0xdc5e
rbp    0x7db14bdf7690
rsp    0x7db14bdf7650
r8     0x0
r9     0x0
r10    0x8
r11    0x246
r12    0x6
r13    0x84
r14    0x16
r15    0x7db2a8a3f67f
rip    0x7db2a829eb1c
rflags 0x246
cs     0x33
fs     0x0
gs     0x0

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

0.4.4 origin main

Originally created by @unclemusclez on GitHub (Nov 26, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7838 ### What is the issue? Not sure why `ggml-cuda.cu` is being called with AMD: compiled from origin main ``` ggml-cuda.cu:132: CUDA error Could not attach to process. If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf ptrace: Operation not permitted. No stack. The program is not being run. SIGABRT: abort PC=0x7db2a829eb1c m=5 sigcode=18446744073709551610 signal arrived during cgo execution goroutine 8 gp=0xc0000e01c0 m=5 mp=0xc000100008 [syscall]: runtime.cgocall(0x5bd31a6880f0, 0xc000062b20) runtime/cgocall.go:167 +0x4b fp=0xc000062af8 sp=0xc000062ac0 pc=0x5bd31a43d7ab github.com/ollama/ollama/llama._Cfunc_llama_decode(0x7daffb4d09f0, {0x9, 0x7daffb4a59b0, 0x0, 0x0, 0x7daffb5686d0, 0x7daffb4e2da0, 0x7daffb473a40, 0x7daffb4e23b0, 0x0, ...}) _cgo_gotypes.go:551 +0x52 fp=0xc000062b20 sp=0xc000062af8 pc=0x5bd31a4e7252 github.com/ollama/ollama/llama.(*Context).Decode.func1(0x5bd31a683d4b?, 0x7daffb4d09f0?) github.com/ollama/ollama/llama/llama.go:169 +0xd8 fp=0xc000062c40 sp=0xc000062b20 pc=0x5bd31a4e9818 github.com/ollama/ollama/llama.(*Context).Decode(0xc000388000?, 0x0?) github.com/ollama/ollama/llama/llama.go:169 +0x17 fp=0xc000062c88 sp=0xc000062c40 pc=0x5bd31a4e9677 main.(*Server).processBatch(0xc0000ac1b0, 0xc00030e000, 0xc000062f10) github.com/ollama/ollama/llama/runner/runner.go:427 +0x385 fp=0xc000062ed0 sp=0xc000062c88 pc=0x5bd31a682d05 main.(*Server).run(0xc0000ac1b0, {0x5bd31a9c4960, 0xc00008a0a0}) github.com/ollama/ollama/llama/runner/runner.go:327 +0x199 fp=0xc000062fb8 sp=0xc000062ed0 pc=0x5bd31a682619 main.main.gowrap2() github.com/ollama/ollama/llama/runner/runner.go:922 +0x28 fp=0xc000062fe0 sp=0xc000062fb8 pc=0x5bd31a687048 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc000062fe8 sp=0xc000062fe0 pc=0x5bd31a44b1a1 created by main.main in goroutine 1 github.com/ollama/ollama/llama/runner/runner.go:922 +0xc52 goroutine 1 gp=0xc0000061c0 m=nil [IO wait]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:424 +0xce fp=0xc000027858 sp=0xc000027838 pc=0x5bd31a44356e runtime.netpollblock(0xc0000278a8?, 0x1a3dbf86?, 0xd3?) runtime/netpoll.go:575 +0xf7 fp=0xc000027890 sp=0xc000027858 pc=0x5bd31a408337 internal/poll.runtime_pollWait(0x7db2a69cc008, 0x72) runtime/netpoll.go:351 +0x85 fp=0xc0000278b0 sp=0xc000027890 pc=0x5bd31a442865 internal/poll.(*pollDesc).wait(0xc0000da100?, 0x2c?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc0000278d8 sp=0xc0000278b0 pc=0x5bd31a498187 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc0000da100) internal/poll/fd_unix.go:620 +0x295 fp=0xc000027980 sp=0xc0000278d8 pc=0x5bd31a4996f5 net.(*netFD).accept(0xc0000da100) net/fd_unix.go:172 +0x29 fp=0xc000027a38 sp=0xc000027980 pc=0x5bd31a511be9 net.(*TCPListener).accept(0xc00002e740) net/tcpsock_posix.go:159 +0x1e fp=0xc000027a88 sp=0xc000027a38 pc=0x5bd31a52223e net.(*TCPListener).Accept(0xc00002e740) net/tcpsock.go:372 +0x30 fp=0xc000027ab8 sp=0xc000027a88 pc=0x5bd31a521570 net/http.(*onceCloseListener).Accept(0xc0000ac240?) <autogenerated>:1 +0x24 fp=0xc000027ad0 sp=0xc000027ab8 pc=0x5bd31a660144 net/http.(*Server).Serve(0xc0000d84b0, {0x5bd31a9c4378, 0xc00002e740}) net/http/server.go:3330 +0x30c fp=0xc000027c00 sp=0xc000027ad0 pc=0x5bd31a651e8c main.main() github.com/ollama/ollama/llama/runner/runner.go:942 +0xfc7 fp=0xc000027f50 sp=0xc000027c00 pc=0x5bd31a686dc7 runtime.main() runtime/proc.go:272 +0x29d fp=0xc000027fe0 sp=0xc000027f50 pc=0x5bd31a40f91d runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc000027fe8 sp=0xc000027fe0 pc=0x5bd31a44b1a1 goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:424 +0xce fp=0xc000050fa8 sp=0xc000050f88 pc=0x5bd31a44356e runtime.goparkunlock(...) runtime/proc.go:430 runtime.forcegchelper() runtime/proc.go:337 +0xb8 fp=0xc000050fe0 sp=0xc000050fa8 pc=0x5bd31a40fc58 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc000050fe8 sp=0xc000050fe0 pc=0x5bd31a44b1a1 created by runtime.init.7 in goroutine 1 runtime/proc.go:325 +0x1a goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:424 +0xce fp=0xc000051780 sp=0xc000051760 pc=0x5bd31a44356e runtime.goparkunlock(...) runtime/proc.go:430 runtime.bgsweep(0xc00007e000) runtime/mgcsweep.go:277 +0x94 fp=0xc0000517c8 sp=0xc000051780 pc=0x5bd31a3fa5d4 runtime.gcenable.gowrap1() runtime/mgc.go:203 +0x25 fp=0xc0000517e0 sp=0xc0000517c8 pc=0x5bd31a3eeea5 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc0000517e8 sp=0xc0000517e0 pc=0x5bd31a44b1a1 created by runtime.gcenable in goroutine 1 runtime/mgc.go:203 +0x66 goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]: runtime.gopark(0xc00007e000?, 0x5bd31a8c0bf0?, 0x1?, 0x0?, 0xc000007340?) runtime/proc.go:424 +0xce fp=0xc000051f78 sp=0xc000051f58 pc=0x5bd31a44356e runtime.goparkunlock(...) runtime/proc.go:430 runtime.(*scavengerState).park(0x5bd31abadb20) runtime/mgcscavenge.go:425 +0x49 fp=0xc000051fa8 sp=0xc000051f78 pc=0x5bd31a3f8009 runtime.bgscavenge(0xc00007e000) runtime/mgcscavenge.go:653 +0x3c fp=0xc000051fc8 sp=0xc000051fa8 pc=0x5bd31a3f857c runtime.gcenable.gowrap2() runtime/mgc.go:204 +0x25 fp=0xc000051fe0 sp=0xc000051fc8 pc=0x5bd31a3eee45 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc000051fe8 sp=0xc000051fe0 pc=0x5bd31a44b1a1 created by runtime.gcenable in goroutine 1 runtime/mgc.go:204 +0xa5 goroutine 5 gp=0xc000007c00 m=nil [finalizer wait]: runtime.gopark(0xc000050648?, 0x5bd31a3e53a5?, 0xb0?, 0x1?, 0xc0000061c0?) runtime/proc.go:424 +0xce fp=0xc000050620 sp=0xc000050600 pc=0x5bd31a44356e runtime.runfinq() runtime/mfinal.go:193 +0x107 fp=0xc0000507e0 sp=0xc000050620 pc=0x5bd31a3edf27 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc0000507e8 sp=0xc0000507e0 pc=0x5bd31a44b1a1 created by runtime.createfing in goroutine 1 runtime/mfinal.go:163 +0x3d goroutine 6 gp=0xc000007dc0 m=nil [chan receive]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:424 +0xce fp=0xc000052718 sp=0xc0000526f8 pc=0x5bd31a44356e runtime.chanrecv(0xc00008c0e0, 0x0, 0x1) runtime/chan.go:639 +0x41c fp=0xc000052790 sp=0xc000052718 pc=0x5bd31a3deb7c runtime.chanrecv1(0x0?, 0x0?) runtime/chan.go:489 +0x12 fp=0xc0000527b8 sp=0xc000052790 pc=0x5bd31a3de752 runtime.unique_runtime_registerUniqueMapCleanup.func1(...) runtime/mgc.go:1732 runtime.unique_runtime_registerUniqueMapCleanup.gowrap1() runtime/mgc.go:1735 +0x2f fp=0xc0000527e0 sp=0xc0000527b8 pc=0x5bd31a3f1cef runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x5bd31a44b1a1 created by unique.runtime_registerUniqueMapCleanup in goroutine 1 runtime/mgc.go:1730 +0x96 goroutine 9 gp=0xc0000e0540 m=nil [select]: runtime.gopark(0xc00026ba50?, 0x2?, 0x6e?, 0xf1?, 0xc00026b834?) runtime/proc.go:424 +0xce fp=0xc00026b698 sp=0xc00026b678 pc=0x5bd31a44356e runtime.selectgo(0xc00026ba50, 0xc00026b830, 0x9?, 0x0, 0x1?, 0x1) runtime/select.go:335 +0x7a5 fp=0xc00026b7c0 sp=0xc00026b698 pc=0x5bd31a421825 main.(*Server).completion(0xc0000ac1b0, {0x5bd31a9c44f8, 0xc00024d6c0}, 0xc0002517c0) github.com/ollama/ollama/llama/runner/runner.go:667 +0xa25 fp=0xc00026bac0 sp=0xc00026b7c0 pc=0x5bd31a684805 main.(*Server).completion-fm({0x5bd31a9c44f8?, 0xc00024d6c0?}, 0x5bd31a656187?) <autogenerated>:1 +0x36 fp=0xc00026baf0 sp=0xc00026bac0 pc=0x5bd31a687836 net/http.HandlerFunc.ServeHTTP(0xc0000c40e0?, {0x5bd31a9c44f8?, 0xc00024d6c0?}, 0x0?) net/http/server.go:2220 +0x29 fp=0xc00026bb18 sp=0xc00026baf0 pc=0x5bd31a64ed49 net/http.(*ServeMux).ServeHTTP(0x5bd31a3e53a5?, {0x5bd31a9c44f8, 0xc00024d6c0}, 0xc0002517c0) net/http/server.go:2747 +0x1ca fp=0xc00026bb68 sp=0xc00026bb18 pc=0x5bd31a650bea net/http.serverHandler.ServeHTTP({0x5bd31a9c3560?}, {0x5bd31a9c44f8?, 0xc00024d6c0?}, 0x6?) net/http/server.go:3210 +0x8e fp=0xc00026bb98 sp=0xc00026bb68 pc=0x5bd31a657aee net/http.(*conn).serve(0xc0000ac240, {0x5bd31a9c4928, 0xc0000990e0}) net/http/server.go:2092 +0x5d0 fp=0xc00026bfb8 sp=0xc00026bb98 pc=0x5bd31a64d970 net/http.(*Server).Serve.gowrap3() net/http/server.go:3360 +0x28 fp=0xc00026bfe0 sp=0xc00026bfb8 pc=0x5bd31a652288 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc00026bfe8 sp=0xc00026bfe0 pc=0x5bd31a44b1a1 created by net/http.(*Server).Serve in goroutine 1 net/http/server.go:3360 +0x485 goroutine 547 gp=0xc000299dc0 m=nil [IO wait]: runtime.gopark(0x5bd31a3e9885?, 0x0?, 0x0?, 0x0?, 0xb?) runtime/proc.go:424 +0xce fp=0xc0002d6da8 sp=0xc0002d6d88 pc=0x5bd31a44356e runtime.netpollblock(0x5bd31a47eb18?, 0x1a3dbf86?, 0xd3?) runtime/netpoll.go:575 +0xf7 fp=0xc0002d6de0 sp=0xc0002d6da8 pc=0x5bd31a408337 internal/poll.runtime_pollWait(0x7db2a69cbf00, 0x72) runtime/netpoll.go:351 +0x85 fp=0xc0002d6e00 sp=0xc0002d6de0 pc=0x5bd31a442865 internal/poll.(*pollDesc).wait(0xc0000da180?, 0xc000099211?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc0002d6e28 sp=0xc0002d6e00 pc=0x5bd31a498187 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc0000da180, {0xc000099211, 0x1, 0x1}) internal/poll/fd_unix.go:165 +0x27a fp=0xc0002d6ec0 sp=0xc0002d6e28 pc=0x5bd31a498cda net.(*netFD).Read(0xc0000da180, {0xc000099211?, 0xc0002d6f48?, 0x5bd31a444c10?}) net/fd_posix.go:55 +0x25 fp=0xc0002d6f08 sp=0xc0002d6ec0 pc=0x5bd31a510b05 net.(*conn).Read(0xc0000540e0, {0xc000099211?, 0x0?, 0x5bd31ac56a20?}) net/net.go:189 +0x45 fp=0xc0002d6f50 sp=0xc0002d6f08 pc=0x5bd31a51a505 net.(*TCPConn).Read(0x5bd31ab6ddb0?, {0xc000099211?, 0x0?, 0x0?}) <autogenerated>:1 +0x25 fp=0xc0002d6f80 sp=0xc0002d6f50 pc=0x5bd31a5275a5 net/http.(*connReader).backgroundRead(0xc000099200) net/http/server.go:690 +0x37 fp=0xc0002d6fc8 sp=0xc0002d6f80 pc=0x5bd31a6482f7 net/http.(*connReader).startBackgroundRead.gowrap2() net/http/server.go:686 +0x25 fp=0xc0002d6fe0 sp=0xc0002d6fc8 pc=0x5bd31a648225 runtime.goexit({}) runtime/asm_amd64.s:1700 +0x1 fp=0xc0002d6fe8 sp=0xc0002d6fe0 pc=0x5bd31a44b1a1 created by net/http.(*connReader).startBackgroundRead in goroutine 9 net/http/server.go:686 +0xb6 rax 0x0 rbx 0xdc5e rcx 0x7db2a829eb1c rdx 0x6 rdi 0xdc5a rsi 0xdc5e rbp 0x7db14bdf7690 rsp 0x7db14bdf7650 r8 0x0 r9 0x0 r10 0x8 r11 0x246 r12 0x6 r13 0x84 r14 0x16 r15 0x7db2a8a3f67f rip 0x7db2a829eb1c rflags 0x246 cs 0x33 fs 0x0 gs 0x0 ``` ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version 0.4.4 origin main
GiteaMirror added the bug label 2026-04-22 10:40:51 -05:00
Author
Owner

@unclemusclez commented on GitHub (Dec 3, 2024):

Makefile is being depreciated with llama.cpp. not sure if it is related, but i was having similar issues just trying to compile ggml with make as opposed to cmake

<!-- gh-comment-id:2513562652 --> @unclemusclez commented on GitHub (Dec 3, 2024): `Makefile` is being depreciated with `llama.cpp`. not sure if it is related, but i was having similar issues just trying to compile `ggml` with `make` as opposed to `cmake`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30771