I have sorted out the syscall-template.S issue by getting the libc6 source.
I have found places saying that the cause of gdb not liking the binary is because of arch incompatibility (32 v 64). I tried this with no change. ~# gdb /usr/bin/Xorg 2>&1 | tee gdb-Xorg.txt GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... "/usr/bin/Xorg": not in executable format: File format not recognised (gdb) attach 2920 Attaching to process 2920 "/usr/lib/xorg/Xorg": not in executable format: File format not recognised (gdb) cont Continuing. Program received signal SIGPIPE, Broken pipe. 0xbdc85720 in ?? () (gdb) cont Continuing. Program received signal SIGTERM, Terminated. 0xbdc85cf3 in ?? () (gdb) cont Continuing. Program terminated with signal SIGKILL, Killed. The program no longer exists. (gdb) cont The program is not being run. (gdb) backtrace full No stack. Here we still have no capacity to get a backtrace. Once again, some indication of how to proceed to get more useful information would be greatly appreciated. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xorg in Ubuntu. https://bugs.launchpad.net/bugs/1591472 Title: Xorg crashes immediately on login returning to greeter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1591472/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp

