Why do I get Runtime Error (NZEC) in FreePascal? What does it mean?
It is a weird feature of FreePascal that any program crash results in a message written to stdout, and non-zero exit code of the program.
Try using GnuPascal to see the more usual system signal (an interpretation of their meaning is given here).