Questions tagged [segmentation-fault]

A segmentation fault (often shortened to segfault) or bus error occurs when the hardware notifies a Unix-like Operating system about a memory access violation.

Filter by
Sorted by
Tagged with
1 vote
2 answers
48 views

Segmentation fault when running binaries from second drive

When I try to run any executable from my second (NTFS) drive, I get a segmentation fault. If I run the exact same executable from, for example, my home folder, it works just fine. For example: I ...
Syntax's user avatar
  • 13
-5 votes
1 answer
81 views

How to uninstall a package from Debian backports (not a duplicate Q)

I know there are a few Questions here which ask the same question I appear to be asking. I have tried those suggestions 1 & 2, but they do not work in this case. Here's what has happened: pi@...
Seamus's user avatar
  • 2,959
0 votes
1 answer
39 views

What does the "segfault at X" kernel log message mean if X is very large?

I've got a device with bad RAM. Running memtest overnight shows all faulting addresses to be in the 0x7d0000000 - 0x7f0000000 range. I plan to replace the RAM, but until then, I've disabled a 2GB ...
thariqfahry's user avatar
1 vote
0 answers
20 views

How does Xen validate exception handlers installed by Guest OSes?

I don't understand a part of the paper Xen and the art of Virtualization. On the topic of virtualizing exception handling (section 2.1.2), the paper states that each guest OS can register a table that ...
Matteo's user avatar
  • 73
1 vote
2 answers
83 views

Seems that any JavaScript makes my debian laptop crash

I have a Dell, debian stable, laptop working with gnome environment. For several weeks Firefox crashed more and more often, resulting in mouse slows down during fews seconds, and then everything ...
Boudy's user avatar
  • 11
-1 votes
1 answer
62 views

Why do I get different results when running a program with ld-linux.so and when changing the interpreter with patchelf?

What's the difference between running a program with ld + --library-path and with changing the loader with patchelf? To illustrate, here is a binary that wouldn't run as is, presumably because of lack ...
ychaouche's user avatar
  • 998
0 votes
0 answers
485 views

Frequent segmentation faults causing browser and/or system to freeze

I have been having issues for awhile with a new PC I built. I decided to go with Pop!_OS (didn't see a dedicated Pop!_OS forum so here I am) since it is supposed to support a lot engineering and data ...
AKA_Tom's user avatar
0 votes
0 answers
412 views

ydotool: first, backend unavailable, then crash on connection

I'm using the Linux Mint Debian Edition 5 Linux distro. I'm usually satisfied of xdotool I use since years on linux but since few weeks by using it with a browser (chromium, firefox), for long times ...
lm2's user avatar
  • 1
0 votes
0 answers
122 views

Segmentation fault when trying to run multiple programs

So the other day I wanted to install an alternative video editor on my computer (since Camtasia doesn't support Linux). I tried installing DaVinci Resolve. When I ran the installer it asked me to ...
Samir's user avatar
  • 1
0 votes
0 answers
128 views

Debian Sid, legacy nvidia 340.108 driver ruins running Qt software

Debian Sid. With nouveau all working good. But after installing legacy 340.108 nvidia driver for my gf9800 i have Segmentation Fault at launching all Qt GUI software. And opposite, Qt works again ...
Alexander Procenko's user avatar
4 votes
1 answer
118 views

Debug segfault race condition

I can provoke a race condition that gives output similar to this in dmesg: [ 5432.541379] perl[408327]: segfault at 22 ip 0000564eb8af9cc2 sp 00007ffec318cea0 error 6 in perl[564eb8af7000+1a1000] [ ...
Ole Tange's user avatar
  • 35.6k
2 votes
1 answer
130 views

AM335x - Custom Board <SEGV> when running Systemd

I tried asking my question on TI's forum, but I am not getting much feedback, so I thought I'd try my luck here. You can see my ongoing discussion with TI here: https://e2e.ti.com/support/processors-...
Vincent L's user avatar
1 vote
0 answers
192 views

Hint to investigate some SEGFAULT no longer happening when strace-ing

I get an application (webcamoid in its 8.8 version) that used to be working troublefree and which now segfaults systematically at startup (kde-plasma/X11 do not even get the opportunity to open some ...
MC68020's user avatar
  • 7,981
0 votes
0 answers
896 views

Program Exits with Segmentation Fault (SEGV) When Started by a Sytemd Service

I have coded a program to control a USB camera that is connected to an NVidia Xavier NX. The program runs fine and does what it's supposed to do when I run it manually with the command: ./<name-of-...
Batuhan Öksüz's user avatar
4 votes
2 answers
5k views

Bash script segmentation fault

My assignment is to write a bash script that reads a directory and returns the file type of each file within, including all subdirectories. Using the find command is not allowed. I've tried to ...
Gelöschter User's user avatar
0 votes
1 answer
324 views

SIGSEGV address boundary error shortly after waking from sleep

After resuming from a hybrid-sleep, I can log in (swaylock) and initially it seems ok - pwd, journalctl -xe run as expected in the shell still open from when I put it to sleep. After a short while ...
OJFord's user avatar
  • 1,963
2 votes
2 answers
8k views

Core dump not written on segmentation fault

I'm now reading The Shellcoder's Handbook: Discovering and Exploiting Security Holes, 2nd Edition. In the second chapter considered the simple buffer overflow problem like this (C code): int main () { ...
Axel's user avatar
  • 23
0 votes
1 answer
46 views

Tang fails with SEGV

I have a tang server (clevis/tang) in a linux container (LXD). The tangd server is started on receiving a connection throught TCP port 80, according to the tangd.socket configuration: root@tang2:~# ...
Jesús Ángel's user avatar
0 votes
1 answer
601 views

Why can't user process READ memory in kernel address space?

It seems fairly obvious why user processes can't write or modify data on kernel address space. But I can't get my head around why they can't even read the data. I know that a segmentation trap would ...
Mahdi Vakili's user avatar
0 votes
0 answers
208 views

Segmentation fault in vim and vifm

What does this error mean? Vim: Caught deadly signal SEGV Vim: Finished. Segmentation fault (core dumped) Vim: Caught deadly signal SEGV Vim: Finished. I get it randomly when I close vifm or vim in ...
wgm's user avatar
  • 1
2 votes
2 answers
1k views

Capture stdout of a crashing program and shell's "segfault error" message

I have a compiled program main.bin that is supposed to print: hello world another line This program generates a segmentation fault right after printing the first line. If I run it in the shell (zsh), ...
onlycparra's user avatar
1 vote
1 answer
583 views

Segfault when non-sudo

For some weird reason, several programs have started to segfault when I try to run them without escalated privileges. Among these are gnome-abrt and variety which used to run fine without sudo up ...
telometto's user avatar
  • 1,985
0 votes
0 answers
932 views

Dmesg shows segfaults on almost all system applications

Our team has a server equipped with couple of GPUs. We've installed Ubuntu 20.04 on it to run couple of experiments. However, we've experienced random segfaults without running any custom programs of ...
user avatar
0 votes
1 answer
282 views

MS teams makes the whole GUI stall: GpuWatchdog segfault

Since I use microsoft teams on my Debian buster machine, I get a GUI freeze sometimes: The mouse pointer can still be moved on the screen, but no visible feedback on clicks or keyboard presses. Also ...
Philippos's user avatar
  • 13.5k
0 votes
1 answer
166 views

rpc.mountd is segfaulting immediately on launch

After completing a routine apt upgrade on my server and laptop and rebooting everything, I found that $ mount nfs-server:/mnt /mountpoint was just hanging forever. There didn't seem to be any logical ...
i336_'s user avatar
  • 1,017
0 votes
1 answer
388 views

dotnet Segmentation Fault on Ubuntu: i have only 174 MB free RAM

When i run dotnet or dotnet --list-sdks or dotnet --list-runtimes it works, but if i run a project or even dotnet --help or dotnet --info , i get Segmentation fault In /var/log/syslog i see: [ 3110....
HelloWorld's user avatar
3 votes
0 answers
581 views

After upgrade, "everything" starts to segfault

I just upgraded my Ubuntu 20.04. After the upgrade I suddenly started to see a massive amounts of segfaults like this: [ 87.157912] perl[5442]: segfault at 0 ip 0000556a510d9f05 sp 00007fff768ae410 ...
Ole Tange's user avatar
  • 35.6k
0 votes
1 answer
1k views

How can my PCI device driver remap PCI memory to userspace?

I am trying to implement a PCI device driver for a virtual PCI device on QEMU. The device defines a BAR region as RAM, and the driver can do ioremap() this region and access it without any issues. The ...
Κυριάκος Παρασκευάς's user avatar
0 votes
0 answers
159 views

Can you set up segfault logging in Centos7?

I have a problem that one of my PHP CLI scripts mysteriously stops running after several hours of uptime. There's no trace in any logfiles, nothing. It seems to just suddenly terminate for no obvious ...
Vilx-'s user avatar
  • 497
1 vote
1 answer
801 views

divide error: 0000 [#1] PREEMPT SMP NOPTI

In the past 3 days, my desktop system keeps crashing multiple times per day. It completely freezes and is unresponsive, but all of the apps still run (I can hear music/video playing correctly). I can ...
Tomáš Sláma's user avatar
0 votes
0 answers
330 views

Ubuntu Chromium-browser segmentation fault

I'm using Ubuntu 18.04 in Userland android application, on Android 10 and have installed chromium-browser through command line sudo apt install chromium-browser. But when starting it through chromium-...
Student Dev's user avatar
2 votes
1 answer
383 views

Running redshift on Debian returns a “Segmentation fault” [closed]

$ /usr/bin/redshift -l 52.3:16.3 -t 6700:3500 Segmentation fault DISTRIB_CODENAME=rodete DISTRIB_DESCRIPTION="Debian GNU/Linux rodete" DISTRIB_ID=Debian DISTRIB_RELEASE=rodete I restart my ...
Elad Benda's user avatar
1 vote
1 answer
390 views

matplotlib crashes on Manjaro Linux

I have the latest version of Manjaro Gnome installed, kernel 5.9.8, and python 3.8.6 and matplotlib 3.3.3. Matplotlib works fine normally, for example, when images are displayed using pylab, I can ...
liuyun's user avatar
  • 121
3 votes
1 answer
968 views

Unlimited stack size with pthreads

My default stack size (according to ulimit -s) is 8192 kB, so naturally the code below segfaults when I try to run it. Also, naturally, it works fine if I do a 'ulimit -s 9000'. However, when I do a '...
user3856370's user avatar
0 votes
1 answer
652 views

dd command caused segmentation fault and now stuck in shell

I am pretty new to Linux and have run into some problems. Goal: I have two machines running Debian 9 Stretch and I want to clone one of the machines onto the other. First thing I did was connected an ...
Kevin's user avatar
  • 1
0 votes
1 answer
281 views

Why does Chromium segfault when uploading images?

When selecting an image for upload, I am able to see the preview in the browser. Once the actual upload process begins, Chromium segfaults. Seems like it's some sort of odd permission issue? The file ...
Cyril Graze's user avatar
0 votes
1 answer
169 views

readline's rl_parse_and_bind causes crash

I am using Ubuntu 18.04.5. This very simple program segfaults on the invocation of rl_parse_and_bind. Can anyone help me? // Build with cc read.c -o read -lreadline #include <readline/readline.h&...
Stephen Montgomery-Smith's user avatar
3 votes
3 answers
5k views

dotnet --help -> Segmentation fault (core dumped)

Most dotnet commands I run on my Ubuntu 20.04 system gives me the error:Segmentation fault (core dumped) I tried rerunning the dotnet installation scripts and I tried modifying the stack size with ...
Szoke Lorand's user avatar
0 votes
1 answer
2k views

"Segmentation fault (core dumped)" is given back when launching most apps on archlinux after upgrade

Noob here ! I have archlabs which runs on archlinux. After normal upgrade, most apps do not run (texmaker, qt5ct ...), when running them from terminal they give the error : "Segmentation fault (...
hasn's user avatar
  • 1
0 votes
1 answer
176 views

Segfault with Debian Stretch

Segfault but why? It only happens with debian:stretch+mysql.connector+tox and Python3.x. Reproducible from just a few lines: FROM debian:stretch RUN apt update -y && apt install -y make build-...
Niklas Rosencrantz's user avatar
14 votes
3 answers
7k views

Is a "segmentation fault" a system error or program bug?

I am currently running a statistical modelling script that performs a phylogenetic ANOVA. The script runs fine when I analyse the full dataset. But when I take a subset it starts analysing but quickly ...
TUnix's user avatar
  • 355
1 vote
1 answer
2k views

Can't update libc6: subprocess old post-removal script was killed by signal (Segmentation Fault)

Something failed in an upgrade from Raspbian 7 to Raspbian 8. I have found threads with similar title to this one, and have tried many things, but I always get the same error. Node is at a remote ...
Bob's user avatar
  • 21
0 votes
2 answers
477 views

tmux segfaults on send-key after upgrading to 2.9a

I just upgraded an Ubuntu Server from 18.10 to 19.04 and then to 19.10. I think that this upgrade also upgraded tmux to a newer version. Since then my tmux scripts, which build some dashboards, are ...
Daniel F's user avatar
  • 867
1 vote
0 answers
882 views

Valgrind Segmentation Fault

I've never used Valgrind before and want to use it to check for memory leak in a program written in C. I'm using a BeagleBone AI which run Linux Debian. debian@beaglebone:~$ cat /proc/version Linux ...
A.Lacasse's user avatar
0 votes
1 answer
637 views

Why am I suddenly getting a segmentation fault for LMMS?

Just like the title, with LMMS both from the OS repo and built from Github. I've gotten no error reports during compilation, with full repos for Carla and VSTs. Still, the terminal reports: michael@...
Michael Macha's user avatar
4 votes
1 answer
5k views

Segfault in Google Chrome - is it Nvidia card related? How do I find out?

System Linux Mint 19.3 Cinnamon 64-bit, based on Ubuntu 18.04 LTS. Related Hardware GPU: NVIDIA, GeForce GTX 1060, Max-Q Design, 6 GB VRAM CPU: Intel Core i7-7700HQ Could anyone tell me if the ...
Vlastimil Burián's user avatar
2 votes
2 answers
2k views

How to configure X11 for embedded i.MX6 board with touchscreen?

I plan to run an Electron app on my UDOO Neo i.MX6 board with the official st1232 7'' touchscreen kit for UDOO Neo. I created a custom Linux distro with Poky (thud branch) to be able to build a "ready ...
didil's user avatar
  • 331
2 votes
0 answers
350 views

Create core dump only when a systemd service dies with a specific signal (segmentation fault)

I have some services running in systemd on Ubuntu 18.04 which very occasionally crash with a segfault (11/SIGSEGV). Is it possible to configure it to create a core dump only for SIGSEGV and not when ...
EM0's user avatar
  • 476
7 votes
2 answers
10k views

Is there any danger in using kill -11 instead of kill -9?

I've realised recently that the kill utility can send any signal I want, so when I need to SIGKILL a process (when it's hanging or something), I send a SIGSEGV instead for a bit of a laugh (kill -11 ...
virchau13's user avatar
  • 173
0 votes
1 answer
76 views

An IO write operation can outlive a process?

To the best of my knowledge, when a process writes to a file it starts a system call. Among the required information, it expects a pointer to a buffer in the user space, filled with the data to write. ...
a_random_user's user avatar