During some of the stand by DC we've seen 3 crashes with the same pattern.
Disabling semi sync + moving the last replica made the DC master crash, so I've created a bug to MariaDB which has been confirmed: https://jira.mariadb.org/browse/MDEV-36359
The work around provided by MariaDB:
A work-around is to set rpl_semi_sync_master_wait_no_slave=1 temporarily before setting rpl_semi_sync_master_enabled=0 and keep it like that until all slaves have disconnected. This should prevent the master server from crashing.
This task is to track the resolution of the bug.