zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Segmentation fault example

March 6, 2012 by Igor Drobot Leave a Comment


A tiny Segmentation fault study example (Page Fault).

This tiny code will produce a SIGSEGV (Segmentation fault) after compiling and executing

Create file example.c and fill it with this code: [Read more…]

Filed Under: Linux, Programming Tagged With: C, compiling, GCC, Segmentation fault, strace