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
30k 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 ...
64
votes
2answers
31k 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
137k 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?
13
votes
4answers
40k 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 ...
12
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'...
9
votes
2answers
26k 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 ...
9
votes
2answers
4k 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: me@...
8
votes
4answers
2k 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 ...
6
votes
3answers
628 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 parameters,...
6
votes
1answer
489 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
1k 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?
5
votes
1answer
5k 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 ...
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 ...
4
votes
2answers
8k views

Almost no commands working - relocation error: symbol __getrlimit, version GLIBC_PRIVATE not defined in libc.so.6

I am connected with SSH to a machine on which I don't have root access. To install something I uploaded libraries from my machine and put them in the ~/lib directory of the remote host. Now, for ...
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 ...
4
votes
2answers
2k views

How to find why a bash exits with signal 11, Segmentation fault

In my production server running Red Hat Linux (V6) I got frequently core dumps from bash. This occurs from a couple of time a day to dozens of time a day. TLTR Resolution: install the bash-...
4
votes
1answer
3k 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 ...
4
votes
0answers
378 views

lshw segfaults on Linux >= 4.8 due to hardened usercopy on many computers

We use a custom built opsi.org bootimage to automatically install Windows on customers' client computers. The userland of this bootimage is based on an upstream bootimage, with some modifications from ...
4
votes
0answers
369 views

GNOME shell periodically crashing

I'm on a laptop running Arch Linux. As of a series of updates applied this morning, I've had some issues with GNOME crashing, and being reloaded, forcing me to log in again -- and while my tmux ...
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 ...
2
votes
2answers
245 views

What happens whenever there is a segfault in linux

What are the steps that the Linux kernel does whenever the hardware raises segfault. Right now I know that through the IDT, the fault handler handles it, and somewhere along the road there is a ...
2
votes
1answer
98 views

How Linux finds out about illegal memory access error?

I have a question about how Linux traps memory access errors. As far as I know, a user space program doesn't need to ask operating system every time it wants to access memory, now when the process ...
2
votes
2answers
144 views

Trying to run Kile gives a segmentation fault on Linux Mint 19

With the latest version of Kile installed, trying to run it crashes with a segmentation fault: $ kile qt5ct: using qt5ct plugin Invalid Context= "Apps" line for icon theme: "/usr/share/icons/Mint-Y/...
2
votes
1answer
495 views

Mysql segfaulting when used from the shell

I have a Raspberry Pi server with Raspbian OS: Kernel: Linux 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l GNU/Linux Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: ...
2
votes
1answer
2k 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
471 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 segfaulting?...
2
votes
1answer
239 views

Most programs suddenly segfault

I'm having a strange occurrence on my Raspbian Raspberry Pi, as most programs are now segfaulting before they even start: user@raspberrypi:~ $ sudo -s Segmentation fault user@raspberrypi:~ $ ssh -vvv ...
2
votes
1answer
692 views

Python Interactive mode on Arch Linux “Segmentation fault (core dumped)”

Using Arch Linux everytime I try to use Python interactive mode no matter what I type I get Segmentation fault (core dumped) and the Python interpreter exits. I do not have any problem running Python ...
2
votes
1answer
4k views

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

I'm currently trying to set up a MySQL replication and I don't 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
708 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

Toggling visibility of segmentation fault messsages in dmesg

When applications segfault, I generally see messages like this in dmesg: pstree[25678]: segfault at 0 ip 00007f58be0b3ae4 sp 00007ffe65b700a0 error 4 in libc-2.24.so[7f58be04d000+195000] However, I ...
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)...
2
votes
1answer
363 views

Segfault trying to access Users in Settings

I am having a problematic issue that I can't seem to figure out. I am able to open the settings as root user just fine. When I click on Users, nothing happens. I am running on Linux kali 4.7.0-kali1-...
2
votes
1answer
729 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 Themes ...
2
votes
1answer
3k 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
291 views

socat parent process killed by failed connection

Short Question Failed connection attemps to a forking socat process seem to be killing the parent process. Is this a bug? What's the best solution to this? Long Question I'm running a socat server (...
2
votes
0answers
75 views

Segmentation failed when making on linux destribution [closed]

I'm building my own Operating system with Linux. I use the kernel and some compoments from GNU. I compiled the kernel and installed bash with readline and busybox. After it works fine. I wanted to ...
2
votes
0answers
356 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
897 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 ...
2
votes
0answers
4k 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
521 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
294 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
3k 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] traps:...
1
vote
1answer
250 views

Debian/Ubuntu now shows nothing available to autoremove, after a segfault

So as not to obscure the problem with output, I was trying prompted to run autoremove I ran it. It segfaulted. After which, nothing shows to be autoremove-able. Things are still present which were on ...
1
vote
1answer
772 views

restart systemd after it crash

How to restart systemd after it crash? systemd currently crash during VirtualBox installation. Problem is already tracked by this issue#10716. I'm using Ubuntu 18.10. sudo dpkg -i virtualbox-5.2_5.2....
1
vote
2answers
44 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 ...
1
vote
2answers
2k 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 ...
1
vote
1answer
978 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
849 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 ...