Bug in gcc 6.3

Old Version

Here's what happens when I make a very simple C program, using Kali 2016.2, freshy downloaded and not updated.

The program compiles with a warning, and runs properly.

Version 6.3

The same source code compiled with gcc 6.3 runs to the end, but segfaults when trying to end main().

The simplest workaround for my Spring 2017 classes is to use Kali 2016.2 as it comes when first downloaded, and NOT to update it.

Another problem with the new gcc is that it now defaults to -pie, which messed up another class.

Posted 3-7-17 by Sam Bowne