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.

learn more… | top users | synonyms (1)

224
votes
4answers
20k views

How does a Segmentation Fault work under-the-hood?

I can't seem to find any information on this aside from "the CPU's MMU sends a signal" and "the kernel directs it to the offending program, terminating it". I assumed that it probably sends the ...
34
votes
2answers
10k views

Will Linux start killing my processes without asking me if memory gets short?

I was running a shell script with commands to run several memory-intensive programs (2-5 GB) back-to-back. When I went back to check on the progress of my script I was surprised to discover that some ...
23
votes
2answers
50k views

Running application ends with “Segmentation Fault”

I have a command line application that when run does not do what it is supposed to do and at a certain point leaves the message: Segmentation fault What does this mean? What should I do?
9
votes
2answers
1k views

Piping output from a segfaulting program

I have a script that calls a program (specifically, ttf2afm, part of tetex 3.0) that sometimes segfaults and sometimes doesn't. The information I need is always printed out before it segfaults, but ...
9
votes
2answers
3k views

.dtors looks writable, but attempts to write segfault

This is Ubuntu 9.04, 2.6.28-11-server, 32bit x86 $ cat test.c main() { int *dt = (int *)0x08049f18; *dt = 1; } $ readelf -S ./test ... [18] .dtors PROGBITS 08049f14 000f14 000008 ...
9
votes
1answer
1k views

Segmentation fault when trying to run glxgears via virtualGL

(Follow-up on How to efficiently use 3D via a remote connection?) I installed the amd64 package on the server and the i386 one on the client. Following the user's guide I run this on the client: ...
8
votes
4answers
855 views

How could running strace be fixing my OpenGL issue?

Since a recent major upgrade to my distribution (PLD Linux), I have been having trouble with a whole slew of programs. As best I can tell, anything that touches OpenGL or PulseAudio segfaults. I'm ...
7
votes
2answers
13k views

How can I trap a program that returns 139 (segmentation fault) in bash?

I have a bash script that tests some programs and one of the program returns Segmentation fault so I tried to add a trap in the head of my script: trap "echo 'segfault occured!'" SIGSEGV That ...
6
votes
3answers
485 views

Are there “esoteric” (weird) but standards-compliant C compilers or runtimes?

As we know, the C standard does not specify a lot of details of the implementation, for example value of NULL pointer, order of bits and bytes (endiannes), alignment in structs and of stack ...
6
votes
1answer
373 views

Unkillable apache2 processes

After upgrading from debian lenny to squeeze (apache2 2.2.16-6+squeeze4 and php 5.3.10-1~dotdeb.1), my apache processes started to exit with segmentation fault. It happens every 5-30 minutes (for 1 ...
5
votes
2answers
691 views

Is there a way to find out which program is segfault-ing?

I have a Busybox/Linux system where a mystery program is segfaulting rarely. Is there a way to find which program is doing this?
4
votes
1answer
3k views

Does segfaults mean bad memory

This is a brand new server with a new install and fresh compile of Apache/PHP with nothing crazy. Just a WordPress site hosted and I get the following. Could this just mean bad RAM? If so how can I ...
4
votes
1answer
2k views

Kernel segmentation fault (core dumped), how to diagnose? [closed]

I have a fedora 13 x64 box I use at home for a storage server. I use sshfs to mount my music from home and listen at work, I run my irssi client in screen on it for freenode communication and lately ...
3
votes
1answer
2k views

sigaction(7): semantics of siginfo_t's si_code member

I've got a long-running program (becomes a daemon with daemon(3) call) that exits on Signal 11 (Segmentation Violation) every so often. I can't tell why. So, I wrote a SIGSEGV handler, set using the ...
2
votes
1answer
246 views

After some commands, bash prints “Segmentation Fault (core dumped)” for unknown reason

On my build of Arch Linux I've recently noticed a weird problem. After launching certain programs from the shell it will echo "Segmentation Fault (core dumped)". Some examples of this are when I ...
2
votes
2answers
376 views

Why is badblocks segfaulting?

I am trying to check a mounted partition to see if the drive has errors: [root@virtuality ~]# /sbin/badblocks -v /dev/sdb1 Segmentation fault Uh oh. What does this mean? Why is badblocks ...
2
votes
1answer
3k views

Segmentation fault (core dumped) when try to run iptables rhel6

Im currently trying to set up a mySQL replication and i dont have a /etc/sysconfig/iptables. So I tried to install it with yum install. It showed the following output. Installed Packages Name ...
2
votes
1answer
452 views

new distros cause segmentation fault of old binary

I have an elderly (~1999) and unfortunately commercial graphic program that runs perfectly OK on systems with gcc up to 3.4.6 (CentOS 4.8). However, in all distributions based on gcc 4.* that I've ...
2
votes
1answer
1k views

Issue with zsh segfaulting: how to further assess the issue?

I'm using Linux arch 3.15.2-1-ARCH x86_64. I don't use zsh (zsh-5.0.5-1) every day, otherwise I would have noticed it segfaults, when I launch it from the bash cli: arch kernel: zsh[2187]: segfault ...
2
votes
0answers
42 views

I have trouble analysing the cause of this (firefox) segfault

When executed within a minimal (unprivileged) LXC container, firefox segfaults (other graphical applications work fine). I'am unable to find the exact cause of this segfault (which is most likely due ...
2
votes
0answers
2k views

File limits getrlimit(RLIMIT_NOFILE) failed

(32-bit system) Posted a Q/A earlier regarding Chrome crashing because of exhausted limit in open files. Chrome has since run more smooth, (after increasing limit), but still crashes from time to ...
2
votes
0answers
308 views

Startx Segmentation fault error after installing VirtualGuest Additions for Virtualbox

I have been using my backtrack version 5 on the Virtualbox for some time now but I had a resolution problem and after searching found out I better install VirtualGuest additions. However after ...
2
votes
0answers
152 views

Segmentation fault with dialog [closed]

I'm getting a segmentation fault with the following script when it's more that one child dir past the pwd. The program kills with the error message and I have to reset the shell. For example: I start ...
1
vote
1answer
2k views

Segfault everywhere even when reinstalling the OS

Lately my PC keeps getting segmentation fault, everywhere, on almost every apps (thunderbird, firefox, chromium, google-chrome, wine, byobu) here's the last few output of dmesg: [ 1474.815026] ...
1
vote
2answers
73 views

Segmentation fault (core dumped) - to where? what is it? and why?

When a segmentation fault occurs in Linux, the error message Segmentation fault (core dumped) will be printed to the terminal (if any), and the program will be terminated. As a C/C++ dev, this happens ...
1
vote
1answer
321 views

Getting segmentation faults from inside glib and gobject - I THINK I want to build/statically link against an independant version of glib2

I don't yet fully understand how segfaults and backtraces work, but I get the impression that if the function at the top of the list references "glib" or "gobject", you have Bad Issues(TM) with ...
1
vote
2answers
987 views

Should I be worried? Segfaults reported in syslog when merging LVM snapshot (reverting the original back to the snapshot)

I was just experimenting with snapshots in LVM on Ubuntu 12.10. I created a snapshot logical volume of 6.5 GiB, and after making some changes to the origin decided to merge the snapshot back in to ...
1
vote
1answer
241 views

Yum problem on Centos 6.7

I have installed php, mysql, httpd on my vps. But when I try upgrade php via yum I get the following error. [root@ns1 home]# yum --enablerepo=remi update php Package(s) php available, but not ...
1
vote
2answers
608 views

Error - Segmentation Fault

I am trying to run DQN, which is some AI for Atari. Upon launching the program (sudo bash run_cpu < the_name_of_the_game >), I get the following error: run_cpu: line 46: 9377 Segmentation ...
1
vote
1answer
754 views

What Causes Maintenance Shell Segmentation Fault?

I'm running Ubuntu 14.04 Trusty Tahr in a Microsoft Hyper-V virtual machine on Windows Server 2012 R2. I've stopped the VM, replaced an EXT4-formatted virtual disk volume (/dev/sdb) with a new ...
1
vote
2answers
249 views

Random application crashes in Linux

Sometimes after booting my computer, some applications fail to start: they crash. They're usually the largest ones, such as firefox, thunderbird or virtualbox. Rebooting or cleaning the cache usually ...
1
vote
1answer
927 views

chroot segfault

I've been trying to create a LXC container (lxc create) but at the end I get these messages: W: Failure trying to run: chroot /var/cache/lxc/debian/wheezy_armhf.partial mount -t proc proc /proc W: ...
1
vote
1answer
418 views

sox segmentation fault

My attempt to record sound with sox on Raspberry PI fails: pi@raspberrypi ~/tmp $ rec new.wav Segmentation fault And so does play: pi@raspberrypi ~/tmp $ play test.wav Segmentation fault Yet it ...
1
vote
1answer
1k views

Segfault on a debian server

We moved our retail software to new hardware (we passed from an IBM x3200 with SATA 7200rpm disks to an IBM x3200 with SAS 15000rpm disks) but after a few days with no problem at all we keep getting ...
1
vote
0answers
107 views

Segmentation fault with VLC 2.2.1 on Debian

I know there are plenty of questions like this across the Internet but no fix for this seems to work for me. I'm having an issue where VLC segfaults on startup (NOT when opening a file). No other ...
1
vote
0answers
101 views

ssh cannot open remote window, Segmentation fault (core dumped)

Actually, the remote window can be opened, but only for a short time. I mean it is OK to open the remote window when ssh connected, but the remote window cannot be opened later, for example after 30 ...
1
vote
2answers
187 views

segmentation fault : transmission-gtk & transmission-qt in linux mint

When I run transmission-gtk on my Linux Mint, the window is shown as usual but suddenly it crashes. I tried transmission-gtk on terminal and the output was Segmentation fault. I didn't update or ...
1
vote
1answer
151 views

cinnamon-settings and Nemo crash with certain Cinnamon themes' contols on Debian 8

Installed mint-x-icons and mint-x-theme on a fresh Debian 8 testing running Cinnamon (v2.6.13). All themes options could be set to Mint-X, except for Controls. As soon as it was selected, the ...
1
vote
1answer
102 views

Antergos libpthread causes segmentation faults

A lot of the programs I use on my machine exit with segfaults. Nearly all programs function normally until being closed, at which point they segfault. So far the only two programs that have not worked ...
1
vote
0answers
211 views

Minidlna on Debian Jessie crashes with no output

I run minidlna for a good year on Debian wheezy armhf, kernel 3.6.9 for a year without problems. Now I upgraded my Server to Debian jessie, kernel 4.0.3. Minidlna comes in version 1.1.2. Whenever I ...
1
vote
1answer
77 views

Ubuntu runned on my usb stick meets often segmentation faults

I've installed ubuntu on my usb stick Sandisk Extreme http://www.sandisk.com/products/usb/drives/extreme/ , which is hardcorely efficient. But I met a trouble. In the random moments of the time ...
1
vote
1answer
506 views

Imagemagick segmentation-fault

I statically compiled Imagemagick. Converting images works well so far. But when I run identify -list delegate it shows my delegates, but then exits with "Aborted (core dumped)". Here is the strace ...
1
vote
0answers
134 views

Debian segfault in libc2.7

I am running a test on my machine in which I assigned a lot of IPs to some tap interfaces (created by me before the test) on my debian machine and tried to run curl commands with the source being ...
0
votes
1answer
228 views

Is there a way to temporarily disable segfault messages in dmesg?

Linux kernel keeps logging segfaults in ring buffer. a.out[25415]: segfault at 8049604 ip 08049604 sp bf88e3fc error 15 in a.out[8049000+1000] Is there a way to temporarily disable it? My usecase ...
0
votes
1answer
321 views

Debian Segmentation Fault

After editing .bashrc I had "Segmentation fault" as an error. This is what I added to bashrc: if [ -f ~/.bashrc ]; then source ~/.bashrc fi # If not running interactively, don't do anything [ -z ...
0
votes
2answers
401 views

Ubuntu broken after power failure. How to fix?

I have Ubuntu 11.10. server which suffered from power failure today. Ever since the power went back on the unit works only partially. Some services work OK, some does not start, e.g. apache2ctl ...
0
votes
0answers
29 views

ArchLinux QT5 Segfault

I am having a problem with the Deepin launcher (dde-launcher). I managed to set up an Arch Linux and I like it but now I run into a problem: the launcher of Deepin is not working. I am not able to ...
0
votes
0answers
115 views

Starting sddm causes libX11.so.6.3.0 to segfault under Kubuntu 15.10/Linux 4.4/nvidia

After installation of kernel 4.4.0 on my Kubuntu 15.10 box, starting sddm causes segfaults: sddm-greeter[5167]: segfault at e4 ip 00007f5295601b50 sp 00007fff46e769a8 error 4 in ...
0
votes
1answer
22 views

libc segfaults while compiling dev-lang/yasm

I am trying to compile dev-lang/yasm inside a funtoo chroot and consistently get segfaults. Any ideas what I should try: [Fri Jan 1 14:54:33 2016] re2c[14786]: segfault at 0 ip 00007f5ad4d4dd5b sp ...
0
votes
0answers
55 views

Opening a file with Atom causes Xvnc to crash

We have some CentOs 7 VDIs and this problem is only happening on one of them. Whenever the user tries to open a file on Atom (v1.3.1), the Xvnc crashes (segment fault) and kicks him out. This is what ...