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
265
votes
4answers
31k 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 ...
66
votes
2answers
32k 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 ...
39
votes
2answers
141k 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?
4
votes
2answers
3k views

How to view Core file (general)

Scenario (Ubuntu 16.04): I compile and run a C program (with -g, I get the traditional Segmentation Fault (core dumped), and then (of course) there is no mythical "core" file to be found. Some ...
13
votes
2answers
2k 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 I'...
3
votes
1answer
3k 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 ...
5
votes
1answer
5k 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 ...
0
votes
0answers
83 views

Is this segment fault raised when running `shuf`?

I have a script, where there is a line: eval for i in \{"$1".."$2"\}\; do [ ! -e "$3"/\$i.\* ] \&\& echo \"\$i\" \; done \| shuf \| mycommand "$3" which means: first create a sequence of ...
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: me@...
2
votes
2answers
2k views

Google Chrome segmentation fault within a minute

Today I installed Google Chrome 55 (i.e. the latest stable version) on 64-bit SL7.0 using a 64-bit RPM. The problem is that google chrome starts fine (except for an SELinux-related issue which I fixed)...