segfault introduced by ongoing mask refactoring

I am investigating ...