Originally Posted by valdis
% export __GL_NO_DSO_FINALIZER=1
Same behavior. I'm sure that ptrace (used by both strace and gdb) is changing some timing or something, but I have no idea why the behavior changes as a result.
I had the exact same issue on multiple machines. I went through 3 nvidia driver versions, then downgraded xorg to 1.10 and repeated with no change.
Check your glibc version and downgrade to 2.14, I'd wager you've got 2.14-90. Problem solved (at least, for me)
I was getting really sick of running my desktop headless, phew.