I've explored this bug a little bit more and I've found, that crash happens only when Xnest is started.