[GH-ISSUE #8866] Segmentation fault #67801

Closed
opened 2026-05-04 11:44:11 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @YinHangCode on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8866

can't startup.

root@server78:/data1# ollama serve
Segmentation fault
root@server78:/data1#

download from

https://ollama.com/download/ollama-linux-amd64.tgz
root@server78:/data1# sha256sum ollama-linux-amd64.tgz
8d4e054bc512d53115074c19de5a7915df78180f89c014abbae4497e4a813a3c  ollama-linux-amd64.tgz

some troubleshooting information

root@server78:/data1#
root@server78:/data1# command -v ollama
/usr/local/bin/ollama
root@server78:/data1#
root@server78:/data1# ls -ld /usr/local/bin/ollama
-rwx------ 1 root root 2486784 Feb  5 15:53 /usr/local/bin/ollama
root@server78:/data1#
root@server78:/data1#
root@server78:/data1# ldd $(command -v ollama)
ldd: exited with unknown exit code (135)
root@server78:/data1#
root@server78:/data1#
root@server78:/data1# ollama -v
Segmentation fault
root@server78:/data1#
root@server78:/data1#
root@server78:/data1# strace ollama serve
execve("/usr/local/bin/ollama", ["ollama", "serve"], 0x7fffc0964688 /* 25 vars */) = -1 EFAULT (Bad address)
+++ killed by SIGSEGV +++
Segmentation fault
root@server78:/data1#
root@server78:/data1#
root@server78:/data1# sha256sum $(command -v ollama)
377e9be7931fafe30b26c388cdf1a243d6401481d7dd2487501779f80a5407e5  /usr/local/bin/ollama
root@server78:/data1#

OS

Linux

root@server78:/data1# uname -a
Linux server78 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux

GPU

No response

CPU

Intel

root@server78:/data1# arch
x86_64
root@server78:/data1#

Ollama version

0.5.7

Originally created by @YinHangCode on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8866 can't startup. ```shell root@server78:/data1# ollama serve Segmentation fault root@server78:/data1# ``` download from ``` https://ollama.com/download/ollama-linux-amd64.tgz ``` ```shell root@server78:/data1# sha256sum ollama-linux-amd64.tgz 8d4e054bc512d53115074c19de5a7915df78180f89c014abbae4497e4a813a3c ollama-linux-amd64.tgz ``` some troubleshooting information ```shell root@server78:/data1# root@server78:/data1# command -v ollama /usr/local/bin/ollama root@server78:/data1# root@server78:/data1# ls -ld /usr/local/bin/ollama -rwx------ 1 root root 2486784 Feb 5 15:53 /usr/local/bin/ollama root@server78:/data1# root@server78:/data1# root@server78:/data1# ldd $(command -v ollama) ldd: exited with unknown exit code (135) root@server78:/data1# root@server78:/data1# root@server78:/data1# ollama -v Segmentation fault root@server78:/data1# root@server78:/data1# root@server78:/data1# strace ollama serve execve("/usr/local/bin/ollama", ["ollama", "serve"], 0x7fffc0964688 /* 25 vars */) = -1 EFAULT (Bad address) +++ killed by SIGSEGV +++ Segmentation fault root@server78:/data1# root@server78:/data1# root@server78:/data1# sha256sum $(command -v ollama) 377e9be7931fafe30b26c388cdf1a243d6401481d7dd2487501779f80a5407e5 /usr/local/bin/ollama root@server78:/data1# ``` ### OS Linux ```shell root@server78:/data1# uname -a Linux server78 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux ``` ### GPU _No response_ ### CPU Intel ```shell root@server78:/data1# arch x86_64 root@server78:/data1# ``` ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-05-04 11:44:11 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 6, 2025):

The program /usr/local/bin/ollama is not the ollama server, it is too small and has the wrong sha signature.

$ sha256sum ollama-linux-amd64.tgz
8d4e054bc512d53115074c19de5a7915df78180f89c014abbae4497e4a813a3c  ollama-linux-amd64.tgz
$ tar ztf ollama-linux-amd64.tgz ./bin/ollama
$ ls -l bin/ollama 
-rwxr-xr-x 1 rick rick 30064856 Jan 16 17:47 bin/ollama
$ sha256sum bin/ollama 
2b5841fa6326f4b6b96dc5f760f575b15c8bd02daa1d45f98665e1dc42efc793  bin/ollama
<!-- gh-comment-id:2639425666 --> @rick-github commented on GitHub (Feb 6, 2025): The program `/usr/local/bin/ollama` is not the ollama server, it is too small and has the wrong sha signature. ```console $ sha256sum ollama-linux-amd64.tgz 8d4e054bc512d53115074c19de5a7915df78180f89c014abbae4497e4a813a3c ollama-linux-amd64.tgz $ tar ztf ollama-linux-amd64.tgz ./bin/ollama $ ls -l bin/ollama -rwxr-xr-x 1 rick rick 30064856 Jan 16 17:47 bin/ollama $ sha256sum bin/ollama 2b5841fa6326f4b6b96dc5f760f575b15c8bd02daa1d45f98665e1dc42efc793 bin/ollama ```
Author
Owner

@jeeinn commented on GitHub (Feb 14, 2025):

I solved this problem by switching users, hoping to help you. Good luck
su -s /bin/bash ollama

<!-- gh-comment-id:2658047668 --> @jeeinn commented on GitHub (Feb 14, 2025): I solved this problem by switching users, hoping to help you. Good luck `su -s /bin/bash ollama`
Author
Owner

@Tokarev-TT-33 commented on GitHub (Feb 18, 2025):

I solved this problem by removing the wrong symlink.

At first i got the same segmentation fault error

$ ollama --version
Segmentation fault

And I found multiple ollama path.

$ which ollama -a
/usr/local/bin/ollama
/usr/bin/ollama

Current wrong ollama is:

$ which ollama
/usr/local/bin/ollama

So i tried to remove the wrong link.

$ sudo rm $(which ollama)

And it works

$ ollama --version
ollama version is 0.5.11
<!-- gh-comment-id:2664877573 --> @Tokarev-TT-33 commented on GitHub (Feb 18, 2025): I solved this problem by removing the wrong symlink. At first i got the same segmentation fault error ```shell $ ollama --version Segmentation fault ``` And I found multiple ollama path. ```shell $ which ollama -a /usr/local/bin/ollama /usr/bin/ollama ``` Current wrong ollama is: ```shell $ which ollama /usr/local/bin/ollama ``` So i tried to remove the wrong link. ```shell $ sudo rm $(which ollama) ``` And it works ```shell $ ollama --version ollama version is 0.5.11 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#67801