Looks like your program does not throw an exception on Cygwin (unlike it does on Debian), so it terminates normally, and the exit code 0 is not unexpected. Debian's version calls abort() and that sends a signal and terminates with a code 128+signal#, and SIGABRT=6, so 134 is the expected result.
Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple