RelWithDebInfo, the default build had NDEBUG defined

That is pretty bad practice, I think. It should have assert()-s enabled
by default. If an assert takes too much time, it should be guarded by an
extra #ifdef or simply removed.