[GH-ISSUE #2643] SIGSEGV: when running new Gemma 7B instruct model on Mac - Apple M2 Pro #79244

Closed
opened 2026-05-09 04:33:42 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @fooinha on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2643

OLLAMA_HOST=127.0.0.1:11434 ./Ollama serve
2024-02-21 16:30:07.726 Ollama[57354:11721047] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
time=2024-02-21T16:30:13.732Z level=INFO source=images.go:706 msg="total blobs: 28"
time=2024-02-21T16:30:13.741Z level=INFO source=images.go:713 msg="total unused blobs removed: 0"
time=2024-02-21T16:30:13.744Z level=INFO source=routes.go:1014 msg="Listening on 127.0.0.1:11434 (version 0.1.25)"
time=2024-02-21T16:30:13.744Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..."
time=2024-02-21T16:30:13.759Z level=INFO source=payload_common.go:146 msg="Dynamic LLM libraries [metal]"
[GIN] 2024/02/21 - 16:30:31 | 200 | 1.418541ms | 127.0.0.1 | HEAD "/"
[GIN] 2024/02/21 - 16:30:31 | 200 | 5.206709ms | 127.0.0.1 | POST "/api/show"
[GIN] 2024/02/21 - 16:30:31 | 200 | 1.440625ms | 127.0.0.1 | POST "/api/show"
time=2024-02-21T16:30:32.690Z level=INFO source=dyn_ext_server.go:90 msg="Loading Dynamic llm server: /var/folders/8x/8wzccvjd5q91rs8g53hj8gtr0000gp/T/ollama3945128941/metal/libext_server.dylib"
time=2024-02-21T16:30:32.690Z level=INFO source=dyn_ext_server.go:145 msg="Initializing llama server"
SIGSEGV: segmentation violation
PC=0x181adcdc4 m=12 sigcode=2
signal arrived during cgo execution

goroutine 43 [syscall]:
runtime.cgocall(0x1045988fc, 0x140004aa708)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/cgocall.go:157 +0x44 fp=0x140004aa6d0 sp=0x140004aa690 pc=0x104055fb4
github.com/jmorganca/ollama/llm._Cfunc_dyn_llama_server_init(
{0x84550370, 0x10c186534, 0x10c186fe8, 0x10c1870c8, 0x10c1872bc, 0x10c187df8, 0x10c188e58, 0x10c188e44, 0x10c188f08, 0x10c18991c, ...}, ...)
_cgo_gotypes.go:288 +0x30 fp=0x140004aa700 sp=0x140004aa6d0 pc=0x1043c9fd0
github.com/jmorganca/ollama/llm.newDynExtServer.func7(0x1045b2d9b?, 0xc?)
/Users/jmorgan/workspace/ollama/llm/dyn_ext_server.go:148 +0xe0 fp=0x140004aa7f0 sp=0x140004aa700 pc=0x1043cb220
github.com/jmorganca/ollama/llm.newDynExtServer({0x14000030240, 0x5b}, {0x14000294280, 0x71}, {0x0, 0x0, }, {, _, }, ...)
/Users/jmorgan/workspace/ollama/llm/dyn_ext_server.go:148 +0x8f8 fp=0x140004aaa90 sp=0x140004aa7f0 pc=0x1043caf28
github.com/jmorganca/ollama/llm.newLlmServer({{0x0, 0x0, 0x0}, {
, }, {, }}, {, }, {, ...}, ...)
/Users/jmorgan/workspace/ollama/llm/llm.go:158 +0x308 fp=0x140004aac50 sp=0x140004aaa90 pc=0x1043c7918
github.com/jmorganca/ollama/llm.New({0x14000444640, 0x41}, {0x14000294280, 0x71}, {0x0, 0x0, }, {, _, _}, ...)
/Users/jmorgan/workspace/ollama/llm/llm.go:123 +0x3d8 fp=0x140004aae90 sp=0x140004aac50 pc=0x1043c7468
github.com/jmorganca/ollama/server.load(0x14000316000?, 0x14000316000, {{0x0, 0x1770, 0x200, 0x1, 0xffffffffffffffff, 0x0, 0x0, 0x1, ...}, ...}, ...)
/Users/jmorgan/workspace/ollama/server/routes.go:85 +0x308 fp=0x140004ab010 sp=0x140004aae90 pc=0x104577ed8
github.com/jmorganca/ollama/server.ChatHandler(0x140002d4100)
/Users/jmorgan/workspace/ollama/server/routes.go:1163 +0x528 fp=0x140004ab720 sp=0x140004ab010 pc=0x1045814b8
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/jmorganca/ollama/server.(*Server).GenerateRoutes.func1(0x140002d4100)
/Users/jmorgan/workspace/ollama/server/routes.go:938 +0x78 fp=0x140004ab760 sp=0x140004ab720 pc=0x104580308
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x140002d4100)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 +0x80 fp=0x140004ab7b0 sp=0x140004ab760 pc=0x10455c5b0
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x140002d4100)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 +0xb0 fp=0x140004ab960 sp=0x140004ab7b0 pc=0x10455b950
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x14000480820, 0x140002d4100)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x524 fp=0x140004abaf0 sp=0x140004ab960 pc=0x10455aa84
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x14000480820, {0x1048fd390?, 0x140001322a0}, 0x140002d4000)
/Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1a0 fp=0x140004abb30 sp=0x140004abaf0 pc=0x10455a3d0
net/http.serverHandler.ServeHTTP({0x1048fb660?}, {0x1048fd390?, 0x140001322a0?}, 0x6?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2938 +0xbc fp=0x140004abb60 sp=0x140004abb30 pc=0x1042e389c
net/http.(*conn).serve(0x14000496cf0, {0x1048fe968, 0x1400032c7e0})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2009 +0x518 fp=0x140004abfa0 sp=0x140004abb60 pc=0x1042dfc98
net/http.(*Server).Serve.func3()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x30 fp=0x140004abfd0 sp=0x140004abfa0 pc=0x1042e3fb0
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004abfd0 sp=0x140004abfd0 pc=0x1040bb954
created by net/http.(*Server).Serve in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x4cc

goroutine 1 [IO wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140002d17b0 sp=0x140002d1790 pc=0x10408a498
runtime.netpollblock(0x14000465848?, 0x413fe44?, 0x1?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140002d17f0 sp=0x140002d17b0 pc=0x104083b78
internal/poll.runtime_pollWait(0x10bb70aa0, 0x72)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140002d1820 sp=0x140002d17f0 pc=0x1040b5380
internal/poll.(*pollDesc).wait(0x14000422000?, 0x0?, 0x0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140002d1850 sp=0x140002d1820 pc=0x10413b4a8
internal/poll.(*pollDesc).waitRead(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0x14000422000)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:611 +0x250 fp=0x140002d1900 sp=0x140002d1850 pc=0x10413ff30
net.(*netFD).accept(0x14000422000)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_unix.go:172 +0x28 fp=0x140002d19c0 sp=0x140002d1900 pc=0x1041ab998
net.(*TCPListener).accept(0x140003f5520)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/tcpsock_posix.go:152 +0x28 fp=0x140002d19f0 sp=0x140002d19c0 pc=0x1041bfa18
net.(*TCPListener).Accept(0x140003f5520)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/tcpsock.go:315 +0x2c fp=0x140002d1a30 sp=0x140002d19f0 pc=0x1041bebfc
net/http.(*onceCloseListener).Accept(0x14000496cf0?)
:1 +0x30 fp=0x140002d1a50 sp=0x140002d1a30 pc=0x104305910
net/http.(*Server).Serve(0x1400007a000, {0x1048fd180, 0x140003f5520})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3056 +0x2b8 fp=0x140002d1b80 sp=0x140002d1a50 pc=0x1042e3c58
github.com/jmorganca/ollama/server.Serve({0x1048fd180, 0x140003f5520})
/Users/jmorgan/workspace/ollama/server/routes.go:1041 +0x394 fp=0x140002d1c70 sp=0x140002d1b80 pc=0x104580704
github.com/jmorganca/ollama/cmd.RunServer(0x14000420300?, {0x104d2c780?, 0x4?, 0x10459aa68?})
/Users/jmorgan/workspace/ollama/cmd/cmd.go:705 +0x178 fp=0x140002d1d10 sp=0x140002d1c70 pc=0x104590e78
github.com/spf13/cobra.(*Command).execute(0x140003b7800, {0x104d2c780, 0x0, 0x0})
/Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940 +0x658 fp=0x140002d1e50 sp=0x140002d1d10 pc=0x104375258
github.com/spf13/cobra.(*Command).ExecuteC(0x140003b6c00)
/Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x320 fp=0x140002d1f10 sp=0x140002d1e50 pc=0x104375980
github.com/spf13/cobra.(*Command).Execute(...)
/Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:985
main.main()
/Users/jmorgan/workspace/ollama/main.go:11 +0x54 fp=0x140002d1f30 sp=0x140002d1f10 pc=0x1045981a4
runtime.main()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:267 +0x2bc fp=0x140002d1fd0 sp=0x140002d1f30 pc=0x10408a06c
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140002d1fd0 sp=0x140002d1fd0 pc=0x1040bb954

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005af90 sp=0x1400005af70 pc=0x10408a498
runtime.goparkunlock(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:404
runtime.forcegchelper()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:322 +0xb8 fp=0x1400005afd0 sp=0x1400005af90 pc=0x10408a328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400005afd0 sp=0x1400005afd0 pc=0x1040bb954
created by runtime.init.6
in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:310 +0x24

goroutine 18 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000056760 sp=0x14000056740 pc=0x10408a498
runtime.goparkunlock(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:404
runtime.bgsweep(0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgcsweep.go:321 +0x108 fp=0x140000567b0 sp=0x14000056760 pc=0x104076c78
runtime.gcenable.func1()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:200 +0x28 fp=0x140000567d0 sp=0x140000567b0 pc=0x10406b6d8
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000567d0 sp=0x140000567d0 pc=0x1040bb954
created by runtime.gcenable in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:200 +0x6c

goroutine 19 [GC scavenge wait]:
runtime.gopark(0x44b6fe4
?, 0x6553f100?, 0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000056f50 sp=0x14000056f30 pc=0x10408a498
runtime.goparkunlock(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:404
runtime.(*scavengerState).park(0x104cf69c0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgcscavenge.go:425 +0x5c fp=0x14000056f80 sp=0x14000056f50 pc=0x10407447c
runtime.bgscavenge(0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgcscavenge.go:658 +0xac fp=0x14000056fb0 sp=0x14000056f80 pc=0x104074a3c
runtime.gcenable.func2()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:201 +0x28 fp=0x14000056fd0 sp=0x14000056fb0 pc=0x10406b678
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000056fd0 sp=0x14000056fd0 pc=0x1040bb954
created by runtime.gcenable in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:201 +0xac

goroutine 20 [finalizer wait]:
runtime.gopark(0x14000092820?, 0x1a0?, 0xe8?, 0xa5?, 0x10432a82c?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005a580 sp=0x1400005a560 pc=0x10408a498
runtime.runfinq()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mfinal.go:193 +0x108 fp=0x1400005a7d0 sp=0x1400005a580 pc=0x10406a7c8
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400005a7d0 sp=0x1400005a7d0 pc=0x1040bb954
created by runtime.createfing in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mfinal.go:163 +0x80

goroutine 21 [GC worker (idle)]:
runtime.gopark(0x1b941735489e9?, 0x3?, 0xb4?, 0x2d?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000057730 sp=0x14000057710 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140000577d0 sp=0x14000057730 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s
:1197 +0x4 fp=0x140000577d0 sp=0x140000577d0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x1b9417354a6e1?, 0x3?, 0xd9?, 0x40?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000486730 sp=0x14000486710 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140004867d0 sp=0x14000486730 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004867d0 sp=0x140004867d0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 22 [GC worker (idle)]:
runtime.gopark(0x1b94173558683?, 0x1?, 0x36?, 0x5?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000057f30 sp=0x14000057f10 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000057fd0 sp=0x14000057f30 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000057fd0 sp=0x14000057fd0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 23 [GC worker (idle)]:
runtime.gopark(0x1b941734e3a06?, 0x3?, 0xf2?, 0xa2?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000058730 sp=0x14000058710 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:
1293 +0xd8 fp=0x140000587d0 sp=0x14000058730 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000587d0 sp=0x140000587d0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x1b94173531bdc?, 0x3?, 0x5d?, 0xa5?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000486f30 sp=0x14000486f10 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000486fd0 sp=0x14000486f30 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000486fd0 sp=0x14000486fd0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 3 [GC worker (idle)]:
runtime.gopark(0x1b94173531e77?, 0x3?, 0xce?, 0x88?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005b730 sp=0x1400005b710 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400005b7d0 sp=0x1400005b730 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s
:1197 +0x4 fp=0x1400005b7d0 sp=0x1400005b7d0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 36 [GC worker (idle)]:
runtime.gopark(0x104d2e6a0?, 0x1?, 0xd4?, 0x71?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000487730 sp=0x14000487710 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140004877d0 sp=0x14000487730 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004877d0 sp=0x140004877d0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 4 [GC worker (idle)]:
runtime.gopark(0x1b94173531c83?, 0x3?, 0x2c?, 0xbc?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005bf30 sp=0x1400005bf10 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400005bfd0 sp=0x1400005bf30 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400005bfd0 sp=0x1400005bfd0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 37 [GC worker (idle)]:
runtime.gopark(0x1b9417359dea8?, 0x3?, 0x66?, 0x42?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000487f30 sp=0x14000487f10 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000487fd0 sp=0x14000487f30 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000487fd0 sp=0x14000487fd0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 38 [GC worker (idle)]:
runtime.gopark(0x104d2e6a0?, 0x3?, 0x56?, 0xa3?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000488730 sp=0x14000488710 pc=0x10408a498
runtime.gcBgMarkWorker()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140004887d0 sp=0x14000488730 pc=0x10406d328
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004887d0 sp=0x140004887d0 pc=0x1040bb954
created by runtime.gcBgMarkStartWorkers in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 5 [select, locked to thread]:
runtime.gopark(0x14000489fa0?, 0x2?, 0xa8?, 0x9e?, 0x14000489f9c?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000489e40 sp=0x14000489e20 pc=0x10408a498
runtime.selectgo(0x14000489fa0, 0x14000489f98, 0x0?, 0x0, 0x0?, 0x1)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/select.go:327 +0x608 fp=0x14000489f50 sp=0x14000489e40 pc=0x10409acc8
runtime.ensureSigM.func1()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/signal_unix.go:1014 +0x168 fp=0x14000489fd0 sp=0x14000489f50 pc=0x1040b1b08
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000489fd0 sp=0x14000489fd0 pc=0x1040bb954
created by runtime.ensureSigM in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/signal_unix.go:997 +0xd8

goroutine 39 [syscall]:
runtime.sigNoteSleep(0x0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/os_darwin.go:124 +0x20 fp=0x14000483790 sp=0x14000483750 pc=0x104084b40
os/signal.signal_recv()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/sigqueue.go:149 +0x2c fp=0x140004837b0 sp=0x14000483790 pc=0x1040b78ec
os/signal.loop()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/os/signal/signal_unix.go:23 +0x1c fp=0x140004837d0 sp=0x140004837b0 pc=0x10430d75c
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004837d0 sp=0x140004837d0 pc=0x1040bb954
created by os/signal.Notify.func1.1 in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/os/signal/signal.go:151 +0x28

goroutine 24 [chan receive]:
runtime.gopark(0xd4?, 0x104cf78a0?, 0x28?, 0x97?, 0x104066da0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140000f96f0 sp=0x140000f96d0 pc=0x10408a498
runtime.chanrecv(0x1400044aa80, 0x0, 0x1)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/chan.go:583 +0x414 fp=0x140000f9770 sp=0x140000f96f0 pc=0x1040582e4
runtime.chanrecv1(0x104896a20?, 0x2e047c7fd0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/chan.go:442 +0x14 fp=0x140000f97a0 sp=0x140000f9770 pc=0x104057e94
github.com/jmorganca/ollama/server.Serve.func2()
/Users/jmorgan/workspace/ollama/server/routes.go:1023 +0x2c fp=0x140000f97d0 sp=0x140000f97a0 pc=0x10458079c
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000f97d0 sp=0x140000f97d0 pc=0x1040bb954
created by github.com/jmorganca/ollama/server.Serve in goroutine 1
/Users/jmorgan/workspace/ollama/server/routes.go:1022 +0x334

goroutine 26 [IO wait]:
runtime.gopark(0xffffffffffffffff?, 0xffffffffffffffff?, 0x23?, 0x0?, 0x1040d0a20?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140002cb890 sp=0x140002cb870 pc=0x10408a498
runtime.netpollblock(0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140002cb8d0 sp=0x140002cb890 pc=0x104083b78
internal/poll.runtime_pollWait(0x10bb709a8, 0x72)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140002cb900 sp=0x140002cb8d0 pc=0x1040b5380
internal/poll.(*pollDesc).wait(0x1400013a080?, 0x14000149000?, 0x0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140002cb930 sp=0x140002cb900 pc=0x10413b4a8
internal/poll.(*pollDesc).waitRead(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x1400013a080, {0x14000149000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:164 +0x200 fp=0x140002cb9d0 sp=0x140002cb930 pc=0x10413c7f0
net.(*netFD).Read(0x1400013a080, {0x14000149000?, 0x140002cba58?, 0x10413b8bc?})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_posix.go:55 +0x28 fp=0x140002cba20 sp=0x140002cb9d0 pc=0x1041a9d88
net.(*conn).Read(0x14000604028, {0x14000149000?, 0x1401219076b?, 0x14000388098?})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/net.go:179 +0x34 fp=0x140002cba70 sp=0x140002cba20 pc=0x1041b7264
net.(*TCPConn).Read(0x14000388090?, {0x14000149000?, 0x0?, 0x0?})
:1 +0x2c fp=0x140002cbaa0 sp=0x140002cba70 pc=0x1041c88fc
net/http.(*connReader).Read(0x14000388090, {0x14000149000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:791 +0x224 fp=0x140002cbb00 sp=0x140002cbaa0 pc=0x1042da7b4
bufio.(*Reader).fill(0x1400013e7e0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:113 +0xf8 fp=0x140002cbb40 sp=0x140002cbb00 pc=0x10426e088
bufio.(*Reader).Peek(0x1400013e7e0, 0x4)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:151 +0x60 fp=0x140002cbb60 sp=0x140002cbb40 pc=0x10426e1f0
net/http.(*conn).serve(0x140002a0000, {0x1048fe968, 0x1400032c7e0})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2044 +0x64c fp=0x140002cbfa0 sp=0x140002cbb60 pc=0x1042dfdcc
net/http.(*Server).Serve.func3()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x30 fp=0x140002cbfd0 sp=0x140002cbfa0 pc=0x1042e3fb0
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140002cbfd0 sp=0x140002cbfd0 pc=0x1040bb954
created by net/http.(*Server).Serve in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x4cc

goroutine 41 [IO wait]:
runtime.gopark(0xffffffffffffffff?, 0xffffffffffffffff?, 0x23?, 0x0?, 0x1040d0a20?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140002cf890 sp=0x140002cf870 pc=0x10408a498
runtime.netpollblock(0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140002cf8d0 sp=0x140002cf890 pc=0x104083b78
internal/poll.runtime_pollWait(0x10bb708b0, 0x72)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140002cf900 sp=0x140002cf8d0 pc=0x1040b5380
internal/poll.(*pollDesc).wait(0x140003dc080?, 0x14000495000?, 0x0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140002cf930 sp=0x140002cf900 pc=0x10413b4a8
internal/poll.(*pollDesc).waitRead(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x140003dc080, {0x14000495000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:164 +0x200 fp=0x140002cf9d0 sp=0x140002cf930 pc=0x10413c7f0
net.(*netFD).Read(0x140003dc080, {0x14000495000?, 0x140004afa58?, 0x10413b8bc?})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_posix.go:55 +0x28 fp=0x140002cfa20 sp=0x140002cf9d0 pc=0x1041a9d88
net.(*conn).Read(0x140004a2000, {0x14000495000?, 0x140121b9c91?, 0x14000388608?})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/net.go:179 +0x34 fp=0x140002cfa70 sp=0x140002cfa20 pc=0x1041b7264
net.(*TCPConn).Read(0x14000388600?, {0x14000495000?, 0x0?, 0x0?})
:1 +0x2c fp=0x140002cfaa0 sp=0x140002cfa70 pc=0x1041c88fc
net/http.(*connReader).Read(0x14000388600, {0x14000495000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:791 +0x224 fp=0x140002cfb00 sp=0x140002cfaa0 pc=0x1042da7b4
bufio.(*Reader).fill(0x1400013ede0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:113 +0xf8 fp=0x140002cfb40 sp=0x140002cfb00 pc=0x10426e088
bufio.(*Reader).Peek(0x1400013ede0, 0x4)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:151 +0x60 fp=0x140002cfb60 sp=0x140002cfb40 pc=0x10426e1f0
net/http.(*conn).serve(0x14000496120, {0x1048fe968, 0x1400032c7e0})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2044 +0x64c fp=0x140002cffa0 sp=0x140002cfb60 pc=0x1042dfdcc
net/http.(*Server).Serve.func3()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x30 fp=0x140002cffd0 sp=0x140002cffa0 pc=0x1042e3fb0
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140002cffd0 sp=0x140002cffd0 pc=0x1040bb954
created by net/http.(*Server).Serve in goroutine 1
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x4cc

goroutine 27 [IO wait]:
runtime.gopark(0xffffffffffffffff?, 0xffffffffffffffff?, 0x23?, 0x0?, 0x1040d0a20?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140000fa540 sp=0x140000fa520 pc=0x10408a498
runtime.netpollblock(0x0?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140000fa580 sp=0x140000fa540 pc=0x104083b78
internal/poll.runtime_pollWait(0x10bb707b8, 0x72)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140000fa5b0 sp=0x140000fa580 pc=0x1040b5380
internal/poll.(*pollDesc).wait(0x140003dc200?, 0x1400040fab1?, 0x0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140000fa5e0 sp=0x140000fa5b0 pc=0x10413b4a8
internal/poll.(*pollDesc).waitRead(...)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x140003dc200, {0x1400040fab1, 0x1, 0x1})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:164 +0x200 fp=0x140000fa680 sp=0x140000fa5e0 pc=0x10413c7f0
net.(*netFD).Read(0x140003dc200, {0x1400040fab1?
, 0x0?, 0x0?})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_posix.go:55 +0x28 fp=0x140000fa6d0 sp=0x140000fa680 pc=0x1041a9d88
net.(*conn).Read(0x140004a21c8, {0x1400040fab1?, 0x0?, 0x0?})
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/net.go:179 +0x34 fp=0x140000fa720 sp=0x140000fa6d0 pc=0x1041b7264
net.(*TCPConn).Read(0x0?, {0x1400040fab1?, 0x0?, 0x0?})
:1 +0x2c fp=0x140000fa750 sp=0x140000fa720 pc=0x1041c88fc
net/http.(*connReader).backgroundRead(0x1400040faa0)
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:683 +0x40 fp=0x140000fa7b0 sp=0x140000fa750 pc=0x1042da230
net/http.(*connReader).startBackgroundRead.func2()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:679 +0x28 fp=0x140000fa7d0 sp=0x140000fa7b0 pc=0x1042da158
runtime.goexit()
/opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000fa7d0 sp=0x140000fa7d0 pc=0x1040bb954
created by net/http.(*connReader).startBackgroundRead in goroutine 43
/opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:679 +0xc8

r0 0x0
r1 0x0
r2 0x2
r3 0x181adcd05
r4 0x67
r5 0x6f
r6 0x61
r7 0xed0
r8 0x0
r9 0x5
r10 0x10527f370
r11 0xc0452f67cb792c67
r12 0x2de4b19f0114bd9f
r13 0xc949d7c7509e6557
r14 0xa8566ef1c8cc9fa
r15 0xbe41013c00000000
r16 0x181adcdc0
r17 0x1e0c4c3c8
r18 0x0
r19 0x0
r20 0x1716463a0
r21 0x10c351080
r22 0x600002cc4030
r23 0x171646580
r24 0x171646438
r25 0x1400082d8a8
r26 0x171646418
r27 0x1716468c0
r28 0x171646410
r29 0x171646310
lr 0x10c21ea8c
sp 0x1716460b0
pc 0x181adcdc4
fault 0x0
time=2024-02-21T16:30:33.746Z level=INFO source=images.go:706 msg="total blobs: 28"
time=2024-02-21T16:30:33.752Z level=INFO source=images.go:713 msg="total unused blobs removed: 0"
time=2024-02-21T16:30:33.756Z level=INFO source=routes.go:1014 msg="Listening on 127.0.0.1:11434 (version 0.1.25)"
time=2024-02-21T16:30:33.756Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..."
time=2024-02-21T16:30:33.771Z level=INFO source=payload_common.go:146 msg="Dynamic LLM libraries [metal]"

Originally created by @fooinha on GitHub (Feb 21, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2643 OLLAMA_HOST=127.0.0.1:11434 ./Ollama serve 2024-02-21 16:30:07.726 Ollama[57354:11721047] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES. time=2024-02-21T16:30:13.732Z level=INFO source=images.go:706 msg="total blobs: 28" time=2024-02-21T16:30:13.741Z level=INFO source=images.go:713 msg="total unused blobs removed: 0" time=2024-02-21T16:30:13.744Z level=INFO source=routes.go:1014 msg="Listening on 127.0.0.1:11434 (version 0.1.25)" time=2024-02-21T16:30:13.744Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..." time=2024-02-21T16:30:13.759Z level=INFO source=payload_common.go:146 msg="Dynamic LLM libraries [metal]" [GIN] 2024/02/21 - 16:30:31 | 200 | 1.418541ms | 127.0.0.1 | HEAD "/" [GIN] 2024/02/21 - 16:30:31 | 200 | 5.206709ms | 127.0.0.1 | POST "/api/show" [GIN] 2024/02/21 - 16:30:31 | 200 | 1.440625ms | 127.0.0.1 | POST "/api/show" time=2024-02-21T16:30:32.690Z level=INFO source=dyn_ext_server.go:90 msg="Loading Dynamic llm server: /var/folders/8x/8wzccvjd5q91rs8g53hj8gtr0000gp/T/ollama3945128941/metal/libext_server.dylib" time=2024-02-21T16:30:32.690Z level=INFO source=dyn_ext_server.go:145 msg="Initializing llama server" SIGSEGV: segmentation violation PC=0x181adcdc4 m=12 sigcode=2 signal arrived during cgo execution goroutine 43 [syscall]: runtime.cgocall(0x1045988fc, 0x140004aa708) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/cgocall.go:157 +0x44 fp=0x140004aa6d0 sp=0x140004aa690 pc=0x104055fb4 github.com/jmorganca/ollama/llm._Cfunc_dyn_llama_server_init( {0x84550370, 0x10c186534, 0x10c186fe8, 0x10c1870c8, 0x10c1872bc, 0x10c187df8, 0x10c188e58, 0x10c188e44, 0x10c188f08, 0x10c18991c, ...}, ...) _cgo_gotypes.go:288 +0x30 fp=0x140004aa700 sp=0x140004aa6d0 pc=0x1043c9fd0 github.com/jmorganca/ollama/llm.newDynExtServer.func7(0x1045b2d9b?, 0xc?) /Users/jmorgan/workspace/ollama/llm/dyn_ext_server.go:148 +0xe0 fp=0x140004aa7f0 sp=0x140004aa700 pc=0x1043cb220 github.com/jmorganca/ollama/llm.newDynExtServer({0x14000030240, 0x5b}, {0x14000294280, 0x71}, {0x0, 0x0, _}, {_, _, _}, ...) /Users/jmorgan/workspace/ollama/llm/dyn_ext_server.go:148 +0x8f8 fp=0x140004aaa90 sp=0x140004aa7f0 pc=0x1043caf28 github.com/jmorganca/ollama/llm.newLlmServer({{0x0, 0x0, 0x0}, {_, _}, {_, _}}, {_, _}, {_, ...}, ...) /Users/jmorgan/workspace/ollama/llm/llm.go:158 +0x308 fp=0x140004aac50 sp=0x140004aaa90 pc=0x1043c7918 github.com/jmorganca/ollama/llm.New({0x14000444640, 0x41}, {0x14000294280, 0x71}, {0x0, 0x0, _}, {_, _, _}, ...) /Users/jmorgan/workspace/ollama/llm/llm.go:123 +0x3d8 fp=0x140004aae90 sp=0x140004aac50 pc=0x1043c7468 github.com/jmorganca/ollama/server.load(0x14000316000?, 0x14000316000, {{0x0, 0x1770, 0x200, 0x1, 0xffffffffffffffff, 0x0, 0x0, 0x1, ...}, ...}, ...) /Users/jmorgan/workspace/ollama/server/routes.go:85 +0x308 fp=0x140004ab010 sp=0x140004aae90 pc=0x104577ed8 github.com/jmorganca/ollama/server.ChatHandler(0x140002d4100) /Users/jmorgan/workspace/ollama/server/routes.go:1163 +0x528 fp=0x140004ab720 sp=0x140004ab010 pc=0x1045814b8 github.com/gin-gonic/gin.(*Context).Next(...) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/jmorganca/ollama/server.(*Server).GenerateRoutes.func1(0x140002d4100) /Users/jmorgan/workspace/ollama/server/routes.go:938 +0x78 fp=0x140004ab760 sp=0x140004ab720 pc=0x104580308 github.com/gin-gonic/gin.(*Context).Next(...) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x140002d4100) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 +0x80 fp=0x140004ab7b0 sp=0x140004ab760 pc=0x10455c5b0 github.com/gin-gonic/gin.(*Context).Next(...) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.LoggerWithConfig.func1(0x140002d4100) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 +0xb0 fp=0x140004ab960 sp=0x140004ab7b0 pc=0x10455b950 github.com/gin-gonic/gin.(*Context).Next(...) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x14000480820, 0x140002d4100) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x524 fp=0x140004abaf0 sp=0x140004ab960 pc=0x10455aa84 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x14000480820, {0x1048fd390?, 0x140001322a0}, 0x140002d4000) /Users/jmorgan/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1a0 fp=0x140004abb30 sp=0x140004abaf0 pc=0x10455a3d0 net/http.serverHandler.ServeHTTP({0x1048fb660?}, {0x1048fd390?, 0x140001322a0?}, 0x6?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2938 +0xbc fp=0x140004abb60 sp=0x140004abb30 pc=0x1042e389c net/http.(*conn).serve(0x14000496cf0, {0x1048fe968, 0x1400032c7e0}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2009 +0x518 fp=0x140004abfa0 sp=0x140004abb60 pc=0x1042dfc98 net/http.(*Server).Serve.func3() /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x30 fp=0x140004abfd0 sp=0x140004abfa0 pc=0x1042e3fb0 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004abfd0 sp=0x140004abfd0 pc=0x1040bb954 created by net/http.(*Server).Serve in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x4cc goroutine 1 [IO wait]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140002d17b0 sp=0x140002d1790 pc=0x10408a498 runtime.netpollblock(0x14000465848?, 0x413fe44?, 0x1?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140002d17f0 sp=0x140002d17b0 pc=0x104083b78 internal/poll.runtime_pollWait(0x10bb70aa0, 0x72) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140002d1820 sp=0x140002d17f0 pc=0x1040b5380 internal/poll.(*pollDesc).wait(0x14000422000?, 0x0?, 0x0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140002d1850 sp=0x140002d1820 pc=0x10413b4a8 internal/poll.(*pollDesc).waitRead(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0x14000422000) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:611 +0x250 fp=0x140002d1900 sp=0x140002d1850 pc=0x10413ff30 net.(*netFD).accept(0x14000422000) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_unix.go:172 +0x28 fp=0x140002d19c0 sp=0x140002d1900 pc=0x1041ab998 net.(*TCPListener).accept(0x140003f5520) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/tcpsock_posix.go:152 +0x28 fp=0x140002d19f0 sp=0x140002d19c0 pc=0x1041bfa18 net.(*TCPListener).Accept(0x140003f5520) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/tcpsock.go:315 +0x2c fp=0x140002d1a30 sp=0x140002d19f0 pc=0x1041bebfc net/http.(*onceCloseListener).Accept(0x14000496cf0?) <autogenerated>:1 +0x30 fp=0x140002d1a50 sp=0x140002d1a30 pc=0x104305910 net/http.(*Server).Serve(0x1400007a000, {0x1048fd180, 0x140003f5520}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3056 +0x2b8 fp=0x140002d1b80 sp=0x140002d1a50 pc=0x1042e3c58 github.com/jmorganca/ollama/server.Serve({0x1048fd180, 0x140003f5520}) /Users/jmorgan/workspace/ollama/server/routes.go:1041 +0x394 fp=0x140002d1c70 sp=0x140002d1b80 pc=0x104580704 github.com/jmorganca/ollama/cmd.RunServer(0x14000420300?, {0x104d2c780?, 0x4?, 0x10459aa68?}) /Users/jmorgan/workspace/ollama/cmd/cmd.go:705 +0x178 fp=0x140002d1d10 sp=0x140002d1c70 pc=0x104590e78 github.com/spf13/cobra.(*Command).execute(0x140003b7800, {0x104d2c780, 0x0, 0x0}) /Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940 +0x658 fp=0x140002d1e50 sp=0x140002d1d10 pc=0x104375258 github.com/spf13/cobra.(*Command).ExecuteC(0x140003b6c00) /Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x320 fp=0x140002d1f10 sp=0x140002d1e50 pc=0x104375980 github.com/spf13/cobra.(*Command).Execute(...) /Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992 github.com/spf13/cobra.(*Command).ExecuteContext(...) /Users/jmorgan/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:985 main.main() /Users/jmorgan/workspace/ollama/main.go:11 +0x54 fp=0x140002d1f30 sp=0x140002d1f10 pc=0x1045981a4 runtime.main() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:267 +0x2bc fp=0x140002d1fd0 sp=0x140002d1f30 pc=0x10408a06c runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140002d1fd0 sp=0x140002d1fd0 pc=0x1040bb954 goroutine 2 [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005af90 sp=0x1400005af70 pc=0x10408a498 runtime.goparkunlock(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:404 runtime.forcegchelper() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:322 +0xb8 fp=0x1400005afd0 sp=0x1400005af90 pc=0x10408a328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400005afd0 sp=0x1400005afd0 pc=0x1040bb954 created by runtime.init.6 in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:310 +0x24 goroutine 18 [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000056760 sp=0x14000056740 pc=0x10408a498 runtime.goparkunlock(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:404 runtime.bgsweep(0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgcsweep.go:321 +0x108 fp=0x140000567b0 sp=0x14000056760 pc=0x104076c78 runtime.gcenable.func1() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:200 +0x28 fp=0x140000567d0 sp=0x140000567b0 pc=0x10406b6d8 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000567d0 sp=0x140000567d0 pc=0x1040bb954 created by runtime.gcenable in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:200 +0x6c goroutine 19 [GC scavenge wait]: runtime.gopark(0x44b6fe4 ?, 0x6553f100?, 0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000056f50 sp=0x14000056f30 pc=0x10408a498 runtime.goparkunlock(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:404 runtime.(*scavengerState).park(0x104cf69c0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgcscavenge.go:425 +0x5c fp=0x14000056f80 sp=0x14000056f50 pc=0x10407447c runtime.bgscavenge(0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgcscavenge.go:658 +0xac fp=0x14000056fb0 sp=0x14000056f80 pc=0x104074a3c runtime.gcenable.func2() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:201 +0x28 fp=0x14000056fd0 sp=0x14000056fb0 pc=0x10406b678 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000056fd0 sp=0x14000056fd0 pc=0x1040bb954 created by runtime.gcenable in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:201 +0xac goroutine 20 [finalizer wait]: runtime.gopark(0x14000092820?, 0x1a0?, 0xe8?, 0xa5?, 0x10432a82c?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005a580 sp=0x1400005a560 pc=0x10408a498 runtime.runfinq() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mfinal.go:193 +0x108 fp=0x1400005a7d0 sp=0x1400005a580 pc=0x10406a7c8 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400005a7d0 sp=0x1400005a7d0 pc=0x1040bb954 created by runtime.createfing in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mfinal.go:163 +0x80 goroutine 21 [GC worker (idle)]: runtime.gopark(0x1b941735489e9?, 0x3?, 0xb4?, 0x2d?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000057730 sp=0x14000057710 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140000577d0 sp=0x14000057730 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s :1197 +0x4 fp=0x140000577d0 sp=0x140000577d0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 34 [GC worker (idle)]: runtime.gopark(0x1b9417354a6e1?, 0x3?, 0xd9?, 0x40?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000486730 sp=0x14000486710 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140004867d0 sp=0x14000486730 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004867d0 sp=0x140004867d0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 22 [GC worker (idle)]: runtime.gopark(0x1b94173558683?, 0x1?, 0x36?, 0x5?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000057f30 sp=0x14000057f10 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000057fd0 sp=0x14000057f30 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000057fd0 sp=0x14000057fd0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 23 [GC worker (idle)]: runtime.gopark(0x1b941734e3a06?, 0x3?, 0xf2?, 0xa2?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000058730 sp=0x14000058710 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go: 1293 +0xd8 fp=0x140000587d0 sp=0x14000058730 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000587d0 sp=0x140000587d0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 35 [GC worker (idle)]: runtime.gopark(0x1b94173531bdc?, 0x3?, 0x5d?, 0xa5?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000486f30 sp=0x14000486f10 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000486fd0 sp=0x14000486f30 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000486fd0 sp=0x14000486fd0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 3 [GC worker (idle)]: runtime.gopark(0x1b94173531e77?, 0x3?, 0xce?, 0x88?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005b730 sp=0x1400005b710 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400005b7d0 sp=0x1400005b730 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s :1197 +0x4 fp=0x1400005b7d0 sp=0x1400005b7d0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 36 [GC worker (idle)]: runtime.gopark(0x104d2e6a0?, 0x1?, 0xd4?, 0x71?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000487730 sp=0x14000487710 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140004877d0 sp=0x14000487730 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004877d0 sp=0x140004877d0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 4 [GC worker (idle)]: runtime.gopark(0x1b94173531c83?, 0x3?, 0x2c?, 0xbc?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400005bf30 sp=0x1400005bf10 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400005bfd0 sp=0x1400005bf30 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400005bfd0 sp=0x1400005bfd0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 37 [GC worker (idle)]: runtime.gopark(0x1b9417359dea8?, 0x3?, 0x66?, 0x42?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000487f30 sp=0x14000487f10 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000487fd0 sp=0x14000487f30 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000487fd0 sp=0x14000487fd0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 38 [GC worker (idle)]: runtime.gopark(0x104d2e6a0?, 0x3?, 0x56?, 0xa3?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000488730 sp=0x14000488710 pc=0x10408a498 runtime.gcBgMarkWorker() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140004887d0 sp=0x14000488730 pc=0x10406d328 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004887d0 sp=0x140004887d0 pc=0x1040bb954 created by runtime.gcBgMarkStartWorkers in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/mgc.go:1217 +0x28 goroutine 5 [select, locked to thread]: runtime.gopark(0x14000489fa0?, 0x2?, 0xa8?, 0x9e?, 0x14000489f9c?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000489e40 sp=0x14000489e20 pc=0x10408a498 runtime.selectgo(0x14000489fa0, 0x14000489f98, 0x0?, 0x0, 0x0?, 0x1) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/select.go:327 +0x608 fp=0x14000489f50 sp=0x14000489e40 pc=0x10409acc8 runtime.ensureSigM.func1() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/signal_unix.go:1014 +0x168 fp=0x14000489fd0 sp=0x14000489f50 pc=0x1040b1b08 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000489fd0 sp=0x14000489fd0 pc=0x1040bb954 created by runtime.ensureSigM in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/signal_unix.go:997 +0xd8 goroutine 39 [syscall]: runtime.sigNoteSleep(0x0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/os_darwin.go:124 +0x20 fp=0x14000483790 sp=0x14000483750 pc=0x104084b40 os/signal.signal_recv() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/sigqueue.go:149 +0x2c fp=0x140004837b0 sp=0x14000483790 pc=0x1040b78ec os/signal.loop() /opt/homebrew/Cellar/go/1.21.3/libexec/src/os/signal/signal_unix.go:23 +0x1c fp=0x140004837d0 sp=0x140004837b0 pc=0x10430d75c runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140004837d0 sp=0x140004837d0 pc=0x1040bb954 created by os/signal.Notify.func1.1 in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/os/signal/signal.go:151 +0x28 goroutine 24 [chan receive]: runtime.gopark(0xd4?, 0x104cf78a0?, 0x28?, 0x97?, 0x104066da0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140000f96f0 sp=0x140000f96d0 pc=0x10408a498 runtime.chanrecv(0x1400044aa80, 0x0, 0x1) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/chan.go:583 +0x414 fp=0x140000f9770 sp=0x140000f96f0 pc=0x1040582e4 runtime.chanrecv1(0x104896a20?, 0x2e047c7fd0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/chan.go:442 +0x14 fp=0x140000f97a0 sp=0x140000f9770 pc=0x104057e94 github.com/jmorganca/ollama/server.Serve.func2() /Users/jmorgan/workspace/ollama/server/routes.go:1023 +0x2c fp=0x140000f97d0 sp=0x140000f97a0 pc=0x10458079c runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000f97d0 sp=0x140000f97d0 pc=0x1040bb954 created by github.com/jmorganca/ollama/server.Serve in goroutine 1 /Users/jmorgan/workspace/ollama/server/routes.go:1022 +0x334 goroutine 26 [IO wait]: runtime.gopark(0xffffffffffffffff?, 0xffffffffffffffff?, 0x23?, 0x0?, 0x1040d0a20?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140002cb890 sp=0x140002cb870 pc=0x10408a498 runtime.netpollblock(0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140002cb8d0 sp=0x140002cb890 pc=0x104083b78 internal/poll.runtime_pollWait(0x10bb709a8, 0x72) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140002cb900 sp=0x140002cb8d0 pc=0x1040b5380 internal/poll.(*pollDesc).wait(0x1400013a080?, 0x14000149000?, 0x0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140002cb930 sp=0x140002cb900 pc=0x10413b4a8 internal/poll.(*pollDesc).waitRead(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x1400013a080, {0x14000149000, 0x1000, 0x1000}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:164 +0x200 fp=0x140002cb9d0 sp=0x140002cb930 pc=0x10413c7f0 net.(*netFD).Read(0x1400013a080, {0x14000149000?, 0x140002cba58?, 0x10413b8bc?}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_posix.go:55 +0x28 fp=0x140002cba20 sp=0x140002cb9d0 pc=0x1041a9d88 net.(*conn).Read(0x14000604028, {0x14000149000?, 0x1401219076b?, 0x14000388098?}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/net.go:179 +0x34 fp=0x140002cba70 sp=0x140002cba20 pc=0x1041b7264 net.(*TCPConn).Read(0x14000388090?, {0x14000149000?, 0x0?, 0x0?}) <autogenerated>:1 +0x2c fp=0x140002cbaa0 sp=0x140002cba70 pc=0x1041c88fc net/http.(*connReader).Read(0x14000388090, {0x14000149000, 0x1000, 0x1000}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:791 +0x224 fp=0x140002cbb00 sp=0x140002cbaa0 pc=0x1042da7b4 bufio.(*Reader).fill(0x1400013e7e0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:113 +0xf8 fp=0x140002cbb40 sp=0x140002cbb00 pc=0x10426e088 bufio.(*Reader).Peek(0x1400013e7e0, 0x4) /opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:151 +0x60 fp=0x140002cbb60 sp=0x140002cbb40 pc=0x10426e1f0 net/http.(*conn).serve(0x140002a0000, {0x1048fe968, 0x1400032c7e0}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2044 +0x64c fp=0x140002cbfa0 sp=0x140002cbb60 pc=0x1042dfdcc net/http.(*Server).Serve.func3() /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x30 fp=0x140002cbfd0 sp=0x140002cbfa0 pc=0x1042e3fb0 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140002cbfd0 sp=0x140002cbfd0 pc=0x1040bb954 created by net/http.(*Server).Serve in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x4cc goroutine 41 [IO wait]: runtime.gopark(0xffffffffffffffff?, 0xffffffffffffffff?, 0x23?, 0x0?, 0x1040d0a20?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140002cf890 sp=0x140002cf870 pc=0x10408a498 runtime.netpollblock(0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140002cf8d0 sp=0x140002cf890 pc=0x104083b78 internal/poll.runtime_pollWait(0x10bb708b0, 0x72) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140002cf900 sp=0x140002cf8d0 pc=0x1040b5380 internal/poll.(*pollDesc).wait(0x140003dc080?, 0x14000495000?, 0x0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140002cf930 sp=0x140002cf900 pc=0x10413b4a8 internal/poll.(*pollDesc).waitRead(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x140003dc080, {0x14000495000, 0x1000, 0x1000}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:164 +0x200 fp=0x140002cf9d0 sp=0x140002cf930 pc=0x10413c7f0 net.(*netFD).Read(0x140003dc080, {0x14000495000?, 0x140004afa58?, 0x10413b8bc?}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_posix.go:55 +0x28 fp=0x140002cfa20 sp=0x140002cf9d0 pc=0x1041a9d88 net.(*conn).Read(0x140004a2000, {0x14000495000?, 0x140121b9c91?, 0x14000388608?}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/net.go:179 +0x34 fp=0x140002cfa70 sp=0x140002cfa20 pc=0x1041b7264 net.(*TCPConn).Read(0x14000388600?, {0x14000495000?, 0x0?, 0x0?}) <autogenerated>:1 +0x2c fp=0x140002cfaa0 sp=0x140002cfa70 pc=0x1041c88fc net/http.(*connReader).Read(0x14000388600, {0x14000495000, 0x1000, 0x1000}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:791 +0x224 fp=0x140002cfb00 sp=0x140002cfaa0 pc=0x1042da7b4 bufio.(*Reader).fill(0x1400013ede0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:113 +0xf8 fp=0x140002cfb40 sp=0x140002cfb00 pc=0x10426e088 bufio.(*Reader).Peek(0x1400013ede0, 0x4) /opt/homebrew/Cellar/go/1.21.3/libexec/src/bufio/bufio.go:151 +0x60 fp=0x140002cfb60 sp=0x140002cfb40 pc=0x10426e1f0 net/http.(*conn).serve(0x14000496120, {0x1048fe968, 0x1400032c7e0}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:2044 +0x64c fp=0x140002cffa0 sp=0x140002cfb60 pc=0x1042dfdcc net/http.(*Server).Serve.func3() /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x30 fp=0x140002cffd0 sp=0x140002cffa0 pc=0x1042e3fb0 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140002cffd0 sp=0x140002cffd0 pc=0x1040bb954 created by net/http.(*Server).Serve in goroutine 1 /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:3086 +0x4cc goroutine 27 [IO wait]: runtime.gopark(0xffffffffffffffff?, 0xffffffffffffffff?, 0x23?, 0x0?, 0x1040d0a20?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/proc.go:398 +0xc8 fp=0x140000fa540 sp=0x140000fa520 pc=0x10408a498 runtime.netpollblock(0x0?, 0x0?, 0x0?) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:564 +0x158 fp=0x140000fa580 sp=0x140000fa540 pc=0x104083b78 internal/poll.runtime_pollWait(0x10bb707b8, 0x72) /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/netpoll.go:343 +0xa0 fp=0x140000fa5b0 sp=0x140000fa580 pc=0x1040b5380 internal/poll.(*pollDesc).wait(0x140003dc200?, 0x1400040fab1?, 0x0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140000fa5e0 sp=0x140000fa5b0 pc=0x10413b4a8 internal/poll.(*pollDesc).waitRead(...) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x140003dc200, {0x1400040fab1, 0x1, 0x1}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/internal/poll/fd_unix.go:164 +0x200 fp=0x140000fa680 sp=0x140000fa5e0 pc=0x10413c7f0 net.(*netFD).Read(0x140003dc200, {0x1400040fab1? , 0x0?, 0x0?}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/fd_posix.go:55 +0x28 fp=0x140000fa6d0 sp=0x140000fa680 pc=0x1041a9d88 net.(*conn).Read(0x140004a21c8, {0x1400040fab1?, 0x0?, 0x0?}) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/net.go:179 +0x34 fp=0x140000fa720 sp=0x140000fa6d0 pc=0x1041b7264 net.(*TCPConn).Read(0x0?, {0x1400040fab1?, 0x0?, 0x0?}) <autogenerated>:1 +0x2c fp=0x140000fa750 sp=0x140000fa720 pc=0x1041c88fc net/http.(*connReader).backgroundRead(0x1400040faa0) /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:683 +0x40 fp=0x140000fa7b0 sp=0x140000fa750 pc=0x1042da230 net/http.(*connReader).startBackgroundRead.func2() /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:679 +0x28 fp=0x140000fa7d0 sp=0x140000fa7b0 pc=0x1042da158 runtime.goexit() /opt/homebrew/Cellar/go/1.21.3/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000fa7d0 sp=0x140000fa7d0 pc=0x1040bb954 created by net/http.(*connReader).startBackgroundRead in goroutine 43 /opt/homebrew/Cellar/go/1.21.3/libexec/src/net/http/server.go:679 +0xc8 r0 0x0 r1 0x0 r2 0x2 r3 0x181adcd05 r4 0x67 r5 0x6f r6 0x61 r7 0xed0 r8 0x0 r9 0x5 r10 0x10527f370 r11 0xc0452f67cb792c67 r12 0x2de4b19f0114bd9f r13 0xc949d7c7509e6557 r14 0xa8566ef1c8cc9fa r15 0xbe41013c00000000 r16 0x181adcdc0 r17 0x1e0c4c3c8 r18 0x0 r19 0x0 r20 0x1716463a0 r21 0x10c351080 r22 0x600002cc4030 r23 0x171646580 r24 0x171646438 r25 0x1400082d8a8 r26 0x171646418 r27 0x1716468c0 r28 0x171646410 r29 0x171646310 lr 0x10c21ea8c sp 0x1716460b0 pc 0x181adcdc4 fault 0x0 time=2024-02-21T16:30:33.746Z level=INFO source=images.go:706 msg="total blobs: 28" time=2024-02-21T16:30:33.752Z level=INFO source=images.go:713 msg="total unused blobs removed: 0" time=2024-02-21T16:30:33.756Z level=INFO source=routes.go:1014 msg="Listening on 127.0.0.1:11434 (version 0.1.25)" time=2024-02-21T16:30:33.756Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..." time=2024-02-21T16:30:33.771Z level=INFO source=payload_common.go:146 msg="Dynamic LLM libraries [metal]"
Author
Owner

@seanmavley commented on GitHub (Feb 21, 2024):

Are you using the 0.1.26 of ollama? Check your version with ollama --version

https://github.com/ollama/ollama/releases/tag/v0.1.26

If not, please do first.

According to your logs

"Listening on 127.0.0.1:11434 (version 0.1.25)"

you're still on the 0.1.25, so upgrade

<!-- gh-comment-id:1957295859 --> @seanmavley commented on GitHub (Feb 21, 2024): Are you using the 0.1.26 of ollama? Check your version with `ollama --version` https://github.com/ollama/ollama/releases/tag/v0.1.26 If not, please do first. According to your logs > "Listening on 127.0.0.1:11434 (version 0.1.25)" you're still on the 0.1.25, so upgrade
Author
Owner

@fooinha commented on GitHub (Feb 21, 2024):

With 0.1.26 downloaded from releases github page, it works.

I was testing with the version that is available at https://ollama.com/download/mac

Thanx.

<!-- gh-comment-id:1957326750 --> @fooinha commented on GitHub (Feb 21, 2024): With 0.1.26 downloaded from releases github page, it works. I was testing with the version that is available at https://ollama.com/download/mac Thanx.
Author
Owner

@antoniomika commented on GitHub (Feb 21, 2024):

I'd recommend checking the commit associated with your tag locally as well, it seems as it was changed from b3eac61caca901482409d640453162bd18ef4507 to 2a7553ce09cf1ae5a93a290acd5109f2327cd6da.

<!-- gh-comment-id:1957334765 --> @antoniomika commented on GitHub (Feb 21, 2024): I'd recommend checking the commit associated with your tag locally as well, it seems as it was changed from `b3eac61caca901482409d640453162bd18ef4507` to `2a7553ce09cf1ae5a93a290acd5109f2327cd6da`.
Author
Owner

@jmorganca commented on GitHub (Feb 21, 2024):

Sorry you hit this. Gemma is only available on 0.1.26 and later, and we'll work on better error messages for unsupported models

<!-- gh-comment-id:1958300558 --> @jmorganca commented on GitHub (Feb 21, 2024): Sorry you hit this. Gemma is only available on 0.1.26 and later, and we'll work on better error messages for unsupported models
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#79244