I have DISPLAYMANAGER set to gdm in rc.conf I typed /etc/init.d/xdm start. After this, X starts, then exits, X starts then exits in an infinite loop
Does startx work? The loop isn't infinite, it tries a number of times to start X and if it fails it stops after a while. This mostly means that your X-config is broken.
I'm having the same problem. I've got X running, with GNOME, starting it from startx with an .xinitrc file. But, gdm won't start.
hmm .. ok, so it's not X settings. If you guys have media-libs/imlib-1.9.11 can you please try to downgrade to media-libs/imlib-1.9.10 and see if that helps? I had the same problem and downgraded (and then it worked), the problem is that I'm not sure if that was the only thing I did.
My X config works too. I will downgrade imlibs this evening and see how it goes.
Downgrading imlib and recompiling gdm fixed the problem on my system.
I have masked imlib >= 1.9.11.
I have the same problem. However, when I start gdm from the command line it works fine. So for some reason running from the init script seems to cause a problem. Very strange. I can't figure out what's happening here. I will try the imlib trick.