The aoflagger executable can't handle sdfits files properly (rfigui can though). It tries to store a history table in a fits file and can crash for other reasons.
Wiki: changelog-2.4.0
Fixed; rficonsole can be run on sdfits files and will correctly write its results.
Fixed; rficonsole can be run on sdfits files and will correctly write its results.