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 Touch seeded packages, which is subscribed to xorg in Ubuntu. https://bugs.launchpad.net/bugs/1591472 Title: Xorg crashes immediately on login returning to greeter Status in xorg package in Ubuntu: New Bug description: ~ $ lsb_release -rd Description: Ubuntu 16.04 LTS Release: 16.04 ~ $ apt-cache policy nvidia-361 xorg nvidia-361: Installed: 361.42-0ubuntu2 Candidate: 361.42-0ubuntu2 Version table: *** 361.42-0ubuntu2 500 500 http://mirror.internode.on.net/pub/ubuntu/ubuntu xenial/restricted amd64 Packages 100 /var/lib/dpkg/status xorg: Installed: 1:7.7+13ubuntu3 Candidate: 1:7.7+13ubuntu3 Version table: *** 1:7.7+13ubuntu3 500 500 http://mirror.internode.on.net/pub/ubuntu/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status Boot machine and login with correct credentials. Expect a functioning X session with gnome. Instead immediately returned to greeter. Attempted to do backtracing, but this did not work because (presumably) of absence of ../sysdeps/unix/syscall-template.S and an error returned after staring gdb, `"/usr/bin/Xorg": not in executable format: File format not recognised'. Went ahead any way and gdb sees: ``` <snip> Reading symbols from /usr/lib/xorg/modules/input/evdev_drv.so...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libmtdev.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libevdev.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/xorg/modules/input/synaptics_drv.so...(no debugging symbols found)...done. 0x00007fe59028acf3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. (gdb) cont Continuing. warning: Corrupted shared library list: 0x556edfb384d0 != 0x556edfba4c60 warning: Corrupted shared library list: 0x556edfbc48c0 != 0x556edfb384d0 Program received signal SIGTERM, Terminated. 0x00007fe59028acf3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84 84 in ../sysdeps/unix/syscall-template.S (gdb) cont Continuing. Program terminated with signal SIGKILL, Killed. The program no longer exists. ``` If given instructions on how to get backtracking to work, will happily reattempt. Using nvidia-304 (current) is worse, crashing in the greeter. Nouveau is unusable due to lag and sluggishness. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: xorg 1:7.7+13ubuntu3 ProcVersionSignature: Ubuntu 4.4.0-24.43-generic 4.4.10 Uname: Linux 4.4.0-24-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia .proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0' .proc.driver.nvidia.registry: Binary: "" .proc.driver.nvidia.version: NVRM version: NVIDIA UNIX x86_64 Kernel Module 361.42 Tue Mar 22 18:10:58 PDT 2016 GCC version: gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' Date: Sat Jun 11 17:46:17 2016 DistUpgraded: Fresh install DistroCodename: xenial DistroVariant: ubuntu ExtraDebuggingInterest: Yes, if not too technical GraphicsCard: Intel Corporation Skylake Integrated Graphics [8086:191b] (rev 06) (prog-if 00 [VGA controller]) Subsystem: CLEVO/KAPOK Computer Skylake Integrated Graphics [1558:6540] NVIDIA Corporation GM204M [GeForce GTX 970M] [10de:13d8] (rev a1) (prog-if 00 [VGA controller]) Subsystem: CLEVO/KAPOK Computer GM204M [GeForce GTX 970M] [1558:6540] InstallationDate: Installed on 2016-06-07 (3 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 5986:066d Acer, Inc Bus 001 Device 003: ID 0cf3:e300 Atheros Communications, Inc. Bus 001 Device 002: ID 1c7a:0603 LighTuning Technology Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Notebook P65_P67RGRERA ProcEnviron: LANGUAGE=en_AU:en TERM=xterm PATH=(custom, no user) LANG=en_AU.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-24-generic root=UUID=153d01ca-6817-4bd1-9ace-8a3a44586e7a ro nomodeset quiet splash SourcePackage: xorg Symptom: display Title: Xorg crash UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 01/27/2016 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 1.05.13 dmi.board.asset.tag: Tag 12345 dmi.board.name: P65_P67RGRERA dmi.board.vendor: Notebook dmi.board.version: Not Applicable dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: Notebook dmi.chassis.version: N/A dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1.05.13:bd01/27/2016:svnNotebook:pnP65_P67RGRERA:pvrNotApplicable:rvnNotebook:rnP65_P67RGRERA:rvrNotApplicable:cvnNotebook:ct10:cvrN/A: dmi.product.name: P65_P67RGRERA dmi.product.version: Not Applicable dmi.sys.vendor: Notebook version.compiz: compiz 1:0.9.12.2+16.04.20160526-0ubuntu1 version.ia32-libs: ia32-libs N/A version.libdrm2: libdrm2 2.4.67-1ubuntu0.16.04.1 version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2 version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2 version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2.2 version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2 version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1 version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1 version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2 xserver.bootTime: Sat Jun 11 17:45:04 2016 xserver.configfile: default xserver.logfile: /var/log/Xorg.0.log xserver.version: 2:1.18.3-1ubuntu2.2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1591472/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp