I use ECORE_IMF_MODULE=xim for ages and I had random crashes here, mostly
on terminology's start-up.
I've done that patch months ago (if not late last year) and I have not had
a single crash since then.
It seems that this patch has no reviewers specified. If you are unsure who can review your patch, please check this wiki page and see if anyone can be added: https://phab.enlightenment.org/w/maintainers_reviewers/