Try looking at files sources by /etc/gdm/Xsession after it prints Beginning session setup... (around line 103). Candidates are /etc/profile or ~/.profile. Sprinkle echo statement in /etc/gdm/Xsession until you locate the spot
-- Crash during logout https://launchpad.net/bugs/67895 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs