I am running an executable in Cygwin Bash Shell. The executable is compiled Fortran code; I have placed a Fortran statement PRINT *, "done" at the end of my code (just before the final line of code, END PROGRAM aug3, where aug3 is the name of my program. The code appears to compile fine and I get a resulting executable, a.exe. In Cygwin, if I execute a.exe using the command while in the folder:
$ ./a
done
…which suggests (but does not prove) that my program is finished running, since the Fortran statement PRINT *, "done" is the second-to-last line in my Fortran code, before END PROGRAM aug3. But, after printing done, Cygwin just sits–I do not get another command prompt, and if I try to type something, the text does not appear. After about a minute, I get the following error message (and after that I finally get another command prompt):
12 [main] a 592 sig_send: wait for sig_complete event failed, signal 6, rc
258, Win32 error 0
Aborted
Do you know what this error message means? Does it likely refer to a problem in my Fortran code (in which case I should ask this question on a Fortran message board), or is it likely a problem with my Cygwin Bash? When I search around on the internet, the posts that I see seem to suggest that “wait for sig_complete event failed” evidences a problem with Cygwin.
Do you have any suggestions of how I can diagnose and fix my error message?
I’m so sorry… I’ve found my mistake, and my program is working now. In my Fortran code, I was inadvertently referencing an array element that was out of bounds, although I never got an array index out of bounds error message. Fixing this bug means that my program now not only compiles fine, but also runs fine. Thank you for all your time and for all your patience. Sorry to waste your time on “my bad.” This thread is resolved.