X debugging

Russell Shaw rjshaw at netspace.net.au
Mon Jul 10 22:24:13 PDT 2006


Hi,
I'm trying to step through /usr/local/bin/X with gdb.
I'm using ddd/gdb on my main pc, and using it with ssh
to debug X on another remote pc.

In gdb/ddd, X complains with:

   Fatal server error:
   Cannot open log file "/usr/local/var/log/Xorg.0.log"

I did: ddd X

The line that fails is:

   if ((logFile = fopen(logFileName, "w")) == NULL)
             FatalError("Cannot open log file \"%s\"\n", logFileName);

Do i need to start X as a root user or something?


ls -l /usr/local/bin/X

   lrwxrwxrwx 1 root staff 4 2006-07-11 14:25 /usr/local/bin/X -> Xorg


ls -l /usr/local/bin/Xorg

   -rwsr-sr-x 1 root staff 7592426 2006-07-11 14:25 /usr/local/bin/Xorg




More information about the xorg mailing list