Top "Segmentation-fault" questions

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

strtok segmentation fault

I am trying to understand why the following snippet of code is giving a segmentation fault: void tokenize(char* line) { …

c segmentation-fault strtok
Segmentation fault (core dumped)

I am relatively new on C, I am trying to run a simple program and I get this Error message: …

c segmentation-fault printf coredump
Bus error vs Segmentation fault

Difference between a bus error and a segmentation fault? Can it happen that a program gives a seg fault and …

c segmentation-fault bus-error sigbus
What can cause a segmentation fault using delete command in C++?

I've written a program that allocates a new object of the class T like this: T* obj = new T(tid); …

c++ segmentation-fault delete-operator
segfault only when NOT using debugger

I have a multithreaded C program, which consistently generates a segmentation fault at a specific point in the program. When …

c debugging gdb segmentation-fault
Android Fatal Signal 7 (SIGBUS)

I'm getting a few SIGBUS (7) and SIGSEGV (11) crashes that I am having difficult tracking down. The thread that appears to …

java android segmentation-fault sigbus
How to figure out the reason of a SIGSEGV in Android

I've been getting increasing number of reports that my android app crashes, the crash happens in native code so a …

android segmentation-fault
Catch Segmentation fault in c++

Does a try-catch block catch segmentation fault errors? I am reading a text file using the function given below but …

c++ crash segmentation-fault
Segmentation fault after free(), what are the common causes for this?

I get a segmentation fault after freeing a certain pointer: free(studentDB->name); I can get its value without …

c free segmentation-fault
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

I am creating a 2D game on Android using OpenGL. Currently I am testing and debugging the game on several …

android opengl-es libc segmentation-fault