After logging into xdm session something is missing on my system and the X server kills the session and I am served again with the xdm login window. It seems missing smproxy (bug #219014) package could be the cause.
Keyword req ~amd64 for x11-apps/smproxy
keyworded ~arch for amd64, closing