/README.md (6cb613dc437b68d983291ecee281b1116c31119c) (528 bytes) (mode 100644) (type blob)

# Fault handling

## Compiling

> Commands executed from repository's root.

```
g++ main.cpp -o exe
g++ main.cpp -g -o dbgexe
```

## Post mortem debugging

Running `./exe` results in this output:

```
Fout 11 at 0: 
Called from 4197438.
Compiled at: May 22 2018 13:58:27
Aborted (geheugendump gemaakt)
```

See what caused the error:

> Use the output from running ./exe ('Called from 4197438').

```
gdb ./dbgexe
l *4197438
```

As `gdb` states, the error was caused at line 57:

```
0x400c3e is in main() (main.cpp:57).
```


Mode Type Size Ref File
100644 blob 35 01db9050b22128aa65021833d1ed5117a99fa651 .gitignore
100644 blob 528 6cb613dc437b68d983291ecee281b1116c31119c README.md
100644 blob 1224 dca90112a35353b07bef4d7831231bbd419f2b63 main.cpp
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/kapstok/Post-mortem-debugging

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/kapstok/Post-mortem-debugging

Clone this repository using git:
git clone git://git.rocketgit.com/user/kapstok/Post-mortem-debugging

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main