Top "Segmentation-fault" questions

Segmentation faults occur when accessing memory which does not belong to your process.

Malloc segmentation fault

Here is the piece of code in which segmentation fault occurs (the perror is not being called): job = malloc(sizeof(…

c segmentation-fault malloc stack-overflow buffer-overflow
What can cause segmentation faults in C++?

I noticed there's not question with a list of common causes of segmentation faults in C++, so I thought I'd …

c++ segmentation-fault
App crashes (sometimes) with Fatal signal 11 (SIGSEGV), code 1

I am developing an app with the HERE SDK, and everything worked fine until now. I get errors like this …

android gson here-api segmentation-fault
unable to execute command: Segmentation fault: 11 swift frontend command failed due to signal (use -v to see invocation)

I have an iOS swift program that compiles and runs fine on Xcode Beta2. When I downloaded beta4, I got …

ios xcode segmentation-fault swift
Why does malloc not work sometimes?

I'm porting a C project from Linux to Windows. On Linux it is completely stable. On Windows, it's working well …

c windows segmentation-fault malloc porting
Segfaults in malloc() and malloc_consolidate()

My application segfaults sometimes and mainly in malloc() and malloc_consolidate() when I look at the backtrace in gdb. I …

c++ debugging malloc segmentation-fault
SIGNAL 11 SIGSEGV crash Android

Today I faced an error due to which my Android application is getting by SIGNAL 11. This error usually occurs due …

android segmentation-fault
Passing an array of strings as parameter to a function in C

I want a simple function that receives a string and returns an array of strings after some parsing. So, this …

c arrays pointers parameters segmentation-fault
Linux: How to debug a SIGSEGV? How do I trace the error source?

My firefox started crashing since today. I haven't changed anything on the system or on firefox config. I use strace …

linux debugging trace dump segmentation-fault
fwrite write an integer

I'm trying to write a word to a file using this function: extern void write_int(FILE * out, int num) { …

c segmentation-fault fwrite