Actually it turns out the crash is not related to xdm at all, it is just some special (not yet diagnosed) X operation that kills it. When doing startx and manually invoking startxfce4 the server also dies (but a lot earlier with xdm). Easy to attach gdb now... Martin