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)

29
votes
2answers
5k 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 ...
21
votes
2answers
20k 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
1answer
904 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
2answers
865 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 ...
8
votes
2answers
2k 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 ...
8
votes
4answers
682 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
8k 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
427 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
326 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 ...
4
votes
2answers
495 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
2k 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
1k 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
2k 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
375 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
544 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
239 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
109 views

Segmentation fault with dialog

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
1k 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
340 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 ...
1
vote
2answers
643 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
139 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
1answer
550 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
155 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
607 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
311 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
1answer
41 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
1answer
34 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
0answers
721 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 ...
1
vote
0answers
117 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
220 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
129 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
2answers
241 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 ...
0
votes
0answers
12 views

nvclock segfault with CRC mismatch

When trying to load nvclock_gtk it terminates with a segmentation fault. Reading symbols from /lib64/ld-linux-x86-64.so.2...warning: the debug information found in "/lib64/ld-2.19.so" does not match ...
0
votes
1answer
33 views

Segmentation Fault when trying to mount ext(2,3,4) fs, from usb (openwrt)

So I have a TL-MR3220v2 router, which has Openwrt installed, this device only has a 4mb flash so I'm trying to get extroot setup on a USB, to increase disk space. My first attempt I tried using a ...
0
votes
0answers
30 views

Segmentation Fault in C when Opening Directory [migrated]

I'm using dirent.h to read entries in a directory. I used gcc to compile the code. If pdre is defined, I get a segmentation fault when I open the directory. But if I add a reference to &pdre ...
0
votes
0answers
28 views

SIGSEV on lots of GUI-software on arch linux. Seems to be glibc related

On my arch linux install, I can't open firefox, evolution, geary, midori and other software. All CLI-stuff I've tried works flawlessly, and also google-chrome-unstable, vlc and others. When ran in gdb ...
0
votes
0answers
18 views

On startup deamon generates:foo[2822] general protection ip:7f1723f582f2 sp:7fff1ae34738 error:0 in libc-2.11.1.so[7f1723ed9000+16f000]

I've created a deamon which during startup generates the following message in my logs. foo[2822] general protection ip:7f1723f582f2 sp:7fff1ae34738 error:0 in libc-2.11.1.so[7f1723ed9000+16f000] ...
0
votes
1answer
73 views

Firefox crash and Hard Disk usage is 100%

Distribution: Arch Linux x86_64 DE: Xfce4 When I using Firefox or dwb web browser, while surfing some web pages, the computer stack for a while then the browser crash. I observed that when this ...
0
votes
0answers
72 views

How to fix ld-linux-x86-64.so.2 CRC mismatch?

Not sure how I came to getting this problem but for some reason ld-linux-x86-64.so.2 is reporting a CRC mismatch and it's effecting a program that I cannot open which results in a segfault. the ...
0
votes
0answers
74 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 ...
0
votes
0answers
63 views

Gedit start problem in kali linux

I try to open gedit after install third party plugins but it won't open. When i try it by terminal it shows root@localhost:~# gedit Segmentation fault I think gedit is running background but it ...
0
votes
0answers
143 views

ubuntu server mumudvb Segmentation fault (core dumped)

i compiled mumudvb in ubuntu 14.04 before it works fine now i compiled it on ubunu server 14.04 when i run the program with the exact same configuration it executes fine but after few Seconds it shows ...
0
votes
1answer
74 views

segfault in libgnutls - Debian won't complete boot

this problem occurs on Debian jessie x86 with systemd. It leads to an incomplete boot sequence on init 2 because network-manager won't start. it leaves the whole system unusable NetworkManager[785]: ...
0
votes
0answers
291 views

VLC Segfault with WMV files

I tried to play a regular WMV video with VLC and it exits with a segmentation fault for some reason. I checked if this happens with any other video file formats, but it doesn't it's specifically to do ...
0
votes
1answer
306 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 ...
0
votes
2answers
285 views

ARM LXC Container template

I've been trying to run LXC on an ARM architecture (arm6l - Raspberry Pi) but with no luck. After some research, I found that maybe trying to run a x86 template on my ARM was causing the problem (bash ...
0
votes
1answer
370 views

PHP appears to be encountering segfault when using finfo_file method

I have encountered a strange bug. When trying to determine mime type of file using Fileinfo (http://www.php.net/manual/en/function.finfo-file.php) extension, PHP (or Apache? see below.) is appearing ...
0
votes
0answers
659 views

Steam Launch Segfault on Arch (steam.sh line 704)

Launching Steam on Arch Linux crashes with the error: /home/matthew/.local/share/Steam/steam.sh: line 704: 4013 Segmentation fault (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$/PLATFORM$/STEAMEXE" ...