We're trying to monitor and automatically restarted different programs all belonging to a SAP Service. The Actions status, start and stop are executed via bash scripts that return 0 for success or 1, sometimes 2, for failure. Some services depend on others, like the sap instances depends on the Database. All checks except for the filesystem checks are check program checks. When starting the whole group monit crashes with:
[CET Nov 11 13:46:19] critical : AssertException: P raised in Process_exitStatus at src/system/Command.c:293
The Function which throws the exception is: https://bitbucket.org/tildeslash/monit/src/6b0a4690ae7cc1374d55d2444537f3acef75a0cf/libmonit/src/system/Command.c?at=master&fileviewer=file-view-default#Command.c-293
A monit 5.17.1 works without crashes with everything else the same.
The monit log with -vv, a stracelog and the config is attached.