amoeba commented on PR #44211:
URL: https://github.com/apache/arrow/pull/44211#issuecomment-2372646964

   I liked your idea here and did a bit of research. Apparently CTest can be 
configured to [send a custom 
signal](https://cmake.org/cmake/help/latest/prop_test/TIMEOUT_SIGNAL_NAME.html) 
to a test that would otherwise be SIGKILL'd, though you can't directly send 
SIGSEGV,
   
   ```cmake
   set_tests_properties(YourTest PROPERTIES
     TIMEOUT                      1
     TIMEOUT_SIGNAL_NAME          SIGUSR1
   )
   ```
   
   Since macOS writes crash logs to `~/Library/Logs/DiagnosticReports` 
automatically, I set up a [test 
project](https://github.com/amoeba/ctest-example-crash-on-timeout) with a test 
executable that catches SIGUSR1 and crashes, thus writing a log. I tried to 
adapt that approach to the PR here but I haven't successfully caught the 
SIGUSR1 from test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to