SimonKagstrom / kcov

Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
http://simonkagstrom.github.io/kcov/
GNU General Public License v2.0
710 stars 109 forks source link

#314 ev_signal_exit returns m_exitCode #365

Closed dsteeley closed 2 years ago

dsteeley commented 2 years ago

The exit code m_exitCode isn't set when crashing out with an ev_signal_exit so we don't pass the raised signal up. By adding the same as the exit case, m_exitCode = ev.data; when a SEGFAULT is hit in the executed code kcov will return it to the caller.

This should resolve issue https://github.com/SimonKagstrom/kcov/issues/314

SimonKagstrom commented 2 years ago

Awfully sorry about the long delay for this one!