Skip to content

quick (and shortest?) way to coredump C with GCC (default settings)

Notifications You must be signed in to change notification settings

cristeigabriel/shortest-C-coredump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

shortest-C-coredump

quick (and shortest?) way to coredump C with GCC (default settings)

build locally

$ : git clone https://github.com/cristeigabriel/shortest-C-coredump;
$ : cd shortest-C-coredump/;
$ shortest-C-coredump/: gcc coredump.c

run

$ shortest-C-coredump/: ./a.out

explaination

this example tries to call an inexistent/unreadable memory address by prototyping it to a callable function, this resulting in a coredump

About

quick (and shortest?) way to coredump C with GCC (default settings)

Topics

Resources

Stars

Watchers

Forks

Languages