[Touch-packages] [Bug 1926815] Re: gdb 'call' / 'print' commands don't work properly when attaching to R

2021-04-30 Thread Kevin Ushey
** Summary changed:

- gdb doesn't work properly when attaching to R
+ gdb 'call' / 'print' commands don't work properly when attaching to R

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1926815

Title:
  gdb 'call' / 'print' commands don't work properly when attaching to R

Status in gdb package in Ubuntu:
  New

Bug description:
  Sorry for the somewhat weird / vague title; hopefully the rest of this
  issue will make it more concrete ...

  First, to set the stage; gdb and R both installed from apt
  repositories:

  $ /usr/bin/gdb --version
  GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  $ /usr/bin/R --version
  R version 4.0.5 (2021-03-31) -- "Shake and Throw"
  Copyright (C) 2021 The R Foundation for Statistical Computing
  Platform: x86_64-pc-linux-gnu (64-bit)

  R is free software and comes with ABSOLUTELY NO WARRANTY.
  You are welcome to redistribute it under the terms of the
  GNU General Public License versions 2 or 3.
  For more information about these matters see
  https://www.gnu.org/licenses/.

  Now, I can use gdb in batch mode to introspect a bash process; e.g.
  print the SHELL environment variable:

  $ /usr/bin/gdb -batch -p $(pgrep -nx bash) -ex 'print (char*) getenv("SHELL")'
  0x7f5623d8c1db in __pselect (nfds=1, readfds=0x7ffdaeda52f0, 
writefds=0x0, exceptfds=0x0, timeout=, sigmask=0x5615fe778140 
<_rl_orig_sigset>) at ../sysdeps/unix/sysv/linux/pselect.c:48
  48  ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory.
  $1 = 0x5615ffc825d0 "/bin/bash"
  [Inferior 1 (process 640102) detached]

  
  But, if I try to do the same with a running R process, I see:

  $ R -s -e "Sys.sleep(100)" &
  [1] 643585

  $ /usr/bin/gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  0x7f47944050da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
  Invalid character '"' in expression.
  [Inferior 1 (process 643585) detached]

  
  Note the very confusing 'Invalid character '"' in expression.' error, 
implying that gdb was for some reason unable to handle the double-quoted string 
passed to getenv().

  I cannot reproduce this in a version of gdb 9.2 built from sources
  locally; e.g.

  $ gdb --version
  GNU gdb (GDB) 9.2
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  $ gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  0x7fba31ad60da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
  $1 = 0x7fff4dc9adfe "/bin/bash"
  [Inferior 1 (process 701827) detached]

  So it seems like something specifically is broken in the version of
  GDB packaged for Ubuntu 20.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1926815/+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


[Touch-packages] [Bug 1926815] Re: gdb doesn't work properly when attaching to R

2021-04-30 Thread Kevin Ushey
In addition, I get a segfault if I use a single-quoted string rather
than a double-quoted string. (My understanding is that single-quoted
strings are normally used to reference symbols, so this should be an
error but not a crash)

$ /usr/bin/gdb -batch -p $(pgrep -nx R) -ex "print (char*) getenv('oops')"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x7f69b4c870da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
Aborted (core dumped)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1926815

Title:
  gdb doesn't work properly when attaching to R

Status in gdb package in Ubuntu:
  New

Bug description:
  Sorry for the somewhat weird / vague title; hopefully the rest of this
  issue will make it more concrete ...

  First, to set the stage; gdb and R both installed from apt
  repositories:

  $ /usr/bin/gdb --version
  GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  $ /usr/bin/R --version
  R version 4.0.5 (2021-03-31) -- "Shake and Throw"
  Copyright (C) 2021 The R Foundation for Statistical Computing
  Platform: x86_64-pc-linux-gnu (64-bit)

  R is free software and comes with ABSOLUTELY NO WARRANTY.
  You are welcome to redistribute it under the terms of the
  GNU General Public License versions 2 or 3.
  For more information about these matters see
  https://www.gnu.org/licenses/.

  Now, I can use gdb in batch mode to introspect a bash process; e.g.
  print the SHELL environment variable:

  $ /usr/bin/gdb -batch -p $(pgrep -nx bash) -ex 'print (char*) getenv("SHELL")'
  0x7f5623d8c1db in __pselect (nfds=1, readfds=0x7ffdaeda52f0, 
writefds=0x0, exceptfds=0x0, timeout=, sigmask=0x5615fe778140 
<_rl_orig_sigset>) at ../sysdeps/unix/sysv/linux/pselect.c:48
  48  ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory.
  $1 = 0x5615ffc825d0 "/bin/bash"
  [Inferior 1 (process 640102) detached]

  
  But, if I try to do the same with a running R process, I see:

  $ R -s -e "Sys.sleep(100)" &
  [1] 643585

  $ /usr/bin/gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  0x7f47944050da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
  Invalid character '"' in expression.
  [Inferior 1 (process 643585) detached]

  
  Note the very confusing 'Invalid character '"' in expression.' error, 
implying that gdb was for some reason unable to handle the double-quoted string 
passed to getenv().

  I cannot reproduce this in a version of gdb 9.2 built from sources
  locally; e.g.

  $ gdb --version
  GNU gdb (GDB) 9.2
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  $ gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  0x7fba31ad60da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
  $1 = 0x7fff4dc9adfe "/bin/bash"
  [Inferior 1 (process 701827) detached]

  So it seems like something specifically is broken in the version of
  GDB packaged for Ubuntu 20.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1926815/+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


[Touch-packages] [Bug 1926815] [NEW] gdb doesn't work properly when attaching to R

2021-04-30 Thread Kevin Ushey
Public bug reported:

Sorry for the somewhat weird / vague title; hopefully the rest of this
issue will make it more concrete ...

First, to set the stage; gdb and R both installed from apt repositories:

$ /usr/bin/gdb --version
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ /usr/bin/R --version
R version 4.0.5 (2021-03-31) -- "Shake and Throw"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

Now, I can use gdb in batch mode to introspect a bash process; e.g.
print the SHELL environment variable:

$ /usr/bin/gdb -batch -p $(pgrep -nx bash) -ex 'print (char*) getenv("SHELL")'
0x7f5623d8c1db in __pselect (nfds=1, readfds=0x7ffdaeda52f0, writefds=0x0, 
exceptfds=0x0, timeout=, sigmask=0x5615fe778140 
<_rl_orig_sigset>) at ../sysdeps/unix/sysv/linux/pselect.c:48
48  ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory.
$1 = 0x5615ffc825d0 "/bin/bash"
[Inferior 1 (process 640102) detached]


But, if I try to do the same with a running R process, I see:

$ R -s -e "Sys.sleep(100)" &
[1] 643585

$ /usr/bin/gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x7f47944050da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
Invalid character '"' in expression.
[Inferior 1 (process 643585) detached]


Note the very confusing 'Invalid character '"' in expression.' error, implying 
that gdb was for some reason unable to handle the double-quoted string passed 
to getenv().

I cannot reproduce this in a version of gdb 9.2 built from sources
locally; e.g.

$ gdb --version
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x7fba31ad60da in select () from /usr/lib/x86_64-linux-gnu/libc.so.6
$1 = 0x7fff4dc9adfe "/bin/bash"
[Inferior 1 (process 701827) detached]

So it seems like something specifically is broken in the version of GDB
packaged for Ubuntu 20.04.

** Affects: gdb (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1926815

Title:
  gdb doesn't work properly when attaching to R

Status in gdb package in Ubuntu:
  New

Bug description:
  Sorry for the somewhat weird / vague title; hopefully the rest of this
  issue will make it more concrete ...

  First, to set the stage; gdb and R both installed from apt
  repositories:

  $ /usr/bin/gdb --version
  GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  $ /usr/bin/R --version
  R version 4.0.5 (2021-03-31) -- "Shake and Throw"
  Copyright (C) 2021 The R Foundation for Statistical Computing
  Platform: x86_64-pc-linux-gnu (64-bit)

  R is free software and comes with ABSOLUTELY NO WARRANTY.
  You are welcome to redistribute it under the terms of the
  GNU General Public License versions 2 or 3.
  For more information about these matters see
  https://www.gnu.org/licenses/.

  Now, I can use gdb in batch mode to introspect a bash process; e.g.
  print the SHELL environment variable:

  $ /usr/bin/gdb -batch -p $(pgrep -nx bash) -ex 'print (char*) getenv("SHELL")'
  0x7f5623d8c1db in __pselect (nfds=1, readfds=0x7ffdaeda52f0, 
writefds=0x0, exceptfds=0x0, timeout=, sigmask=0x5615fe778140 
<_rl_orig_sigset>) at ../sysdeps/unix/sysv/linux/pselect.c:48
  48  ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory.
  $1 = 0x5615ffc825d0 "/bin/bash"
  [Inferior 1 (process 640102) detached]

  
  But, if I try to do the same with a running R process, I see:

  $ R -s -e "Sys.sleep(100)" &
  [1] 643585

  $ /usr/bin/gdb -batch -p $(pgrep -nx R) -ex 'print (char*) getenv("SHELL")'
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library 

[Touch-packages] [Bug 1679535] Re: ! Cannot connect to internet in Ubuntu 17.04 (DNS Lookup fails)

2017-09-06 Thread Kevin Ushey
*** This bug is a duplicate of bug 1654918 ***
https://bugs.launchpad.net/bugs/1654918

I can confirm that I'm also seeing this issue, with an RTL8111 Ethernet
controller.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1679535

Title:
  ! Cannot connect to internet in Ubuntu 17.04 (DNS Lookup  fails)

Status in network-manager package in Ubuntu:
  Confirmed

Bug description:
  Hello,
  I think this is a bug in the WIFI-driver or kernel.
  Ubuntu is connected to the WIFI (router) box, but it cannot find DNS server 
to get to the internet.

  I have periodically *serious* problems with WIFI in Ubuntu 17.04.
  The network icon shows "connected" to the router and internet, but browsers 
and other attempts to get data report DNS error / or not connected.

  This happens in all flavours of Ubuntu 17.04 (Ubuntu, Ubuntu GNOME
  etc.).

  Same laptop with Ubuntu 16.10 works flawlessly.

  The connection works fine after I reboot (power off/on) the router box.
  Then the bug may return (or may not return) after I turn on my laptop next 
time.

  This laptop is Toshiba Stellite P50 C.
  The laptop has Intel Corporation Wireless 3165 (rev 81).

  $ lspci -nnk | grep -iA2 net; uname -r; ls /lib/firmware/ | grep
  'iwlwifi-7265d'

  0d:00.0 Network controller [0280]: Intel Corporation Wireless 3165 
[8086:3165] (rev 81)
  Subsystem: Intel Corporation Dual Band Wireless AC 3165 [8086:4010]
  Kernel driver in use: iwlwifi
  --
  0e:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
  Subsystem: Toshiba America Info Systems RTL8111/8168/8411 PCI Express Gigabit 
Ethernet Controller [1179:f840]
  Kernel driver in use: r8169
  Kernel modules: r8169
  4.11.0-041100rc4-generic

  Ref: https://wiki.debian.org/iwlwifi

  Restarting the network.manager does not help.
  $ sudo service network-manager restart
  Network manager connects (and sees) to the router, but cannot access internet.
  -

  Please see also:
  https://ubuntuforums.org/search.php?searchid=14761184
  and
  https://ubuntuforums.org/showthread.php?t=2356828

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: network-manager 1.4.4-1ubuntu3
  Uname: Linux 4.11.0-041100rc4-generic x86_64
  ApportVersion: 2.20.4-0ubuntu2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Apr  4 08:22:23 2017
  IfupdownConfig:
   # interfaces(5) file used by ifup(8) and ifdown(8)
   auto lo
   iface lo inet loopback
  InstallationDate: Installed on 2017-03-27 (8 days ago)
  InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Beta amd64 (20170321)
  IpRoute:
   default via 192.168.1.1 dev wlp13s0 proto static metric 600
   169.254.0.0/16 dev wlp13s0 scope link metric 1000
   192.168.1.0/24 dev wlp13s0 proto kernel scope link src 192.168.1.34 metric 
600
  NetworkManager.conf:
   [main]
   plugins=ifupdown,keyfile

   [ifupdown]
   managed=false
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
  SourcePackage: network-manager
  UpgradeStatus: No upgrade log present (probably fresh install)
  nmcli-dev:
   DEVICE   TYPE  STATEDBUS-PATH  
CONNECTIONCON-UUID  CON-PATH
   wlp13s0  wifi  connected/org/freedesktop/NetworkManager/Devices/2  
Ubuntu-Linux-Network  dda6e4cf-5cd9-4e01-b638-418985262413  
/org/freedesktop/NetworkManager/ActiveConnection/5
   enp14s0  ethernet  unavailable  /org/freedesktop/NetworkManager/Devices/1  
------
   lo   loopback  unmanaged/org/freedesktop/NetworkManager/Devices/0  
------
  nmcli-nm:
   RUNNING  VERSION  STATE  STARTUP  CONNECTIVITY  NETWORKING  WIFI-HW  
WIFI WWAN-HW  WWAN
   running  1.4.4connected  started  full  enabled enabled  
enabled  enabled  enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1679535/+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


[Touch-packages] [Bug 1463224] Re: /usr/bin/X segfaults on startup

2015-06-08 Thread Kevin Ushey
I should have mentioned ... I'm now running with `3.19.0-20-generic` and
all seems well.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1463224

Title:
  /usr/bin/X segfaults on startup

Status in lightdm package in Ubuntu:
  New

Bug description:
  I'm seeing this both with Ubuntu 15.04 and Ubuntu 15.10.

  When I boot into Ubuntu, I get a screen saying that 'The system is
  running in low-graphics mode'. When I look at the `xserver` log files,
  I see that it's actually segfaulted (and so I get no GUI -- e.g.
  'lightdm' fails to start)

  Backtrace:

  [77.069] (EE) Backtrace:
  [77.069] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7fa8f86e9346]
  [77.069] (EE) 1: /usr/bin/X (0x7fa8f8536000+0x1b74a9) [0x7fa8f86ed4a9]
  [77.069] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7fa8f61fb000+0x352f0) 
[0x7fa8f62302f0]
  [77.069] (EE) 3: /usr/bin/X (RRSetChanged+0x50) [0x7fa8f864d4a0]
  [77.069] (EE) 4: /usr/bin/X (RRScreenSetSizeRange+0x54) [0x7fa8f86519d4]
  [77.069] (EE) 5: /usr/bin/X (xf86RandR12CreateScreenResources+0x2a5) 
[0x7fa8f860e965]
  [77.069] (EE) 6: /usr/bin/X (0x7fa8f8536000+0xcbc00) [0x7fa8f8601c00]
  [77.069] (EE) 7: /usr/bin/X (0x7fa8f8536000+0x5c094) [0x7fa8f8592094]
  [77.069] (EE) 8: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) 
[0x7fa8f621ba40]
  [77.069] (EE) 9: /usr/bin/X (_start+0x29) [0x7fa8f857c5b9]
  [77.069] (EE) 
  [77.069] (EE) Segmentation fault at address 0xa0

  And the log in its entirety:

  [76.727] 
  X.Org X Server 1.17.1
  Release Date: 2015-02-10
  [76.727] X Protocol Version 11, Revision 0
  [76.727] Build Operating System: Linux 3.2.0-79-generic x86_64 Ubuntu
  [76.727] Current Operating System: Linux kevin-Z68X-UD3H-B3 
3.16.0-38-generic #52-Ubuntu SMP Thu May 7 10:51:21 UTC 2015 x86_64
  [76.727] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-38-generic 
root=UUID=7cb7429e-756d-4b07-b226-ef75f21de60c ro quiet splash vt.handoff=7
  [76.727] Build Date: 03 June 2015  04:44:17AM
  [76.727] xorg-server 2:1.17.1-0ubuntu4 (For technical support please see 
http://www.ubuntu.com/support) 
  [76.727] Current version of pixman: 0.32.6
  [76.727]  Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
  [76.727] Markers: (--) probed, (**) from config file, (==) default 
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  [76.727] (==) Log file: /var/log/Xorg.1.log, Time: Mon Jun  8 17:53:37 
2015
  [76.727] (==) Using system config directory /usr/share/X11/xorg.conf.d
  [76.727] (==) No Layout section.  Using the first Screen section.
  [76.727] (==) No screen section available. Using defaults.
  [76.727] (**) |--Screen Default Screen Section (0)
  [76.727] (**) |   |--Monitor default monitor
  [76.727] (==) No monitor specified for screen Default Screen Section.
Using a default monitor configuration.
  [76.727] (==) Automatically adding devices
  [76.727] (==) Automatically enabling devices
  [76.728] (==) Automatically adding GPU devices
  [76.728] (WW) The directory /usr/share/fonts/X11/cyrillic does not 
exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/100dpi/ does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/75dpi/ does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/100dpi does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/75dpi does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
  [76.728] (==) ModulePath set to 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules
  [76.728] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
  [76.728] (II) Loader magic: 0x7fa8f8970d80
  [76.728] (II) Module ABI versions:
  [76.728]  X.Org ANSI C Emulation: 0.4
  [76.728]  X.Org Video Driver: 19.0
  [76.728]  X.Org XInput driver : 21.0
  [76.728]  X.Org Server Extension : 9.0
  [76.728] (II) xfree86: Adding drm device (/dev/dri/card0)
  [76.730] (--) PCI: (0:0:2:0) 8086:0162:1458:d000 rev 9, Mem @ 
0xfb40/4194304, 0xc000/268435456, I/O @ 0xff00/64
  [76.730] (--) PCI:*(0:1:0:0) 10de:1401:3842:3966 rev 161, Mem @ 
0xf900/16777216, 0xd000/268435456, 0xee00/33554432, I/O 

[Touch-packages] [Bug 1463224] Re: /usr/bin/X segfaults on startup

2015-06-08 Thread Kevin Ushey
I was able to resolve this by updating my Linux kernel -- I had updated
from Ubuntu 14.04 through to 15.10, and needed to manually update the
kernel afterwards. (I believe the original kernel version was 3.16.0;
not sure which revision)

(The kernel was updated with a simple `sudo apt-get install linux-image-
generic linux-headers-generic`)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1463224

Title:
  /usr/bin/X segfaults on startup

Status in lightdm package in Ubuntu:
  New

Bug description:
  I'm seeing this both with Ubuntu 15.04 and Ubuntu 15.10.

  When I boot into Ubuntu, I get a screen saying that 'The system is
  running in low-graphics mode'. When I look at the `xserver` log files,
  I see that it's actually segfaulted (and so I get no GUI -- e.g.
  'lightdm' fails to start)

  Backtrace:

  [77.069] (EE) Backtrace:
  [77.069] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7fa8f86e9346]
  [77.069] (EE) 1: /usr/bin/X (0x7fa8f8536000+0x1b74a9) [0x7fa8f86ed4a9]
  [77.069] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7fa8f61fb000+0x352f0) 
[0x7fa8f62302f0]
  [77.069] (EE) 3: /usr/bin/X (RRSetChanged+0x50) [0x7fa8f864d4a0]
  [77.069] (EE) 4: /usr/bin/X (RRScreenSetSizeRange+0x54) [0x7fa8f86519d4]
  [77.069] (EE) 5: /usr/bin/X (xf86RandR12CreateScreenResources+0x2a5) 
[0x7fa8f860e965]
  [77.069] (EE) 6: /usr/bin/X (0x7fa8f8536000+0xcbc00) [0x7fa8f8601c00]
  [77.069] (EE) 7: /usr/bin/X (0x7fa8f8536000+0x5c094) [0x7fa8f8592094]
  [77.069] (EE) 8: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) 
[0x7fa8f621ba40]
  [77.069] (EE) 9: /usr/bin/X (_start+0x29) [0x7fa8f857c5b9]
  [77.069] (EE) 
  [77.069] (EE) Segmentation fault at address 0xa0

  And the log in its entirety:

  [76.727] 
  X.Org X Server 1.17.1
  Release Date: 2015-02-10
  [76.727] X Protocol Version 11, Revision 0
  [76.727] Build Operating System: Linux 3.2.0-79-generic x86_64 Ubuntu
  [76.727] Current Operating System: Linux kevin-Z68X-UD3H-B3 
3.16.0-38-generic #52-Ubuntu SMP Thu May 7 10:51:21 UTC 2015 x86_64
  [76.727] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-38-generic 
root=UUID=7cb7429e-756d-4b07-b226-ef75f21de60c ro quiet splash vt.handoff=7
  [76.727] Build Date: 03 June 2015  04:44:17AM
  [76.727] xorg-server 2:1.17.1-0ubuntu4 (For technical support please see 
http://www.ubuntu.com/support) 
  [76.727] Current version of pixman: 0.32.6
  [76.727]  Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
  [76.727] Markers: (--) probed, (**) from config file, (==) default 
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  [76.727] (==) Log file: /var/log/Xorg.1.log, Time: Mon Jun  8 17:53:37 
2015
  [76.727] (==) Using system config directory /usr/share/X11/xorg.conf.d
  [76.727] (==) No Layout section.  Using the first Screen section.
  [76.727] (==) No screen section available. Using defaults.
  [76.727] (**) |--Screen Default Screen Section (0)
  [76.727] (**) |   |--Monitor default monitor
  [76.727] (==) No monitor specified for screen Default Screen Section.
Using a default monitor configuration.
  [76.727] (==) Automatically adding devices
  [76.727] (==) Automatically enabling devices
  [76.728] (==) Automatically adding GPU devices
  [76.728] (WW) The directory /usr/share/fonts/X11/cyrillic does not 
exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/100dpi/ does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/75dpi/ does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/100dpi does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (WW) The directory /usr/share/fonts/X11/75dpi does not exist.
  [76.728]  Entry deleted from font path.
  [76.728] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
  [76.728] (==) ModulePath set to 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules
  [76.728] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
  [76.728] (II) Loader magic: 0x7fa8f8970d80
  [76.728] (II) Module ABI versions:
  [76.728]  X.Org ANSI C Emulation: 0.4
  [76.728]  X.Org Video Driver: 19.0
  [76.728]  X.Org XInput driver : 21.0
  [76.728]  X.Org Server Extension : 9.0
  [76.728] (II) xfree86: Adding drm device (/dev/dri/card0)
  [76.730] 

[Touch-packages] [Bug 1463224] [NEW] /usr/bin/X segfaults on startup

2015-06-08 Thread Kevin Ushey
Public bug reported:

I'm seeing this both with Ubuntu 15.04 and Ubuntu 15.10.

When I boot into Ubuntu, I get a screen saying that 'The system is
running in low-graphics mode'. When I look at the `xserver` log files, I
see that it's actually segfaulted (and so I get no GUI -- e.g. 'lightdm'
fails to start)

Backtrace:

[77.069] (EE) Backtrace:
[77.069] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7fa8f86e9346]
[77.069] (EE) 1: /usr/bin/X (0x7fa8f8536000+0x1b74a9) [0x7fa8f86ed4a9]
[77.069] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7fa8f61fb000+0x352f0) 
[0x7fa8f62302f0]
[77.069] (EE) 3: /usr/bin/X (RRSetChanged+0x50) [0x7fa8f864d4a0]
[77.069] (EE) 4: /usr/bin/X (RRScreenSetSizeRange+0x54) [0x7fa8f86519d4]
[77.069] (EE) 5: /usr/bin/X (xf86RandR12CreateScreenResources+0x2a5) 
[0x7fa8f860e965]
[77.069] (EE) 6: /usr/bin/X (0x7fa8f8536000+0xcbc00) [0x7fa8f8601c00]
[77.069] (EE) 7: /usr/bin/X (0x7fa8f8536000+0x5c094) [0x7fa8f8592094]
[77.069] (EE) 8: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) 
[0x7fa8f621ba40]
[77.069] (EE) 9: /usr/bin/X (_start+0x29) [0x7fa8f857c5b9]
[77.069] (EE) 
[77.069] (EE) Segmentation fault at address 0xa0

And the log in its entirety:

[76.727] 
X.Org X Server 1.17.1
Release Date: 2015-02-10
[76.727] X Protocol Version 11, Revision 0
[76.727] Build Operating System: Linux 3.2.0-79-generic x86_64 Ubuntu
[76.727] Current Operating System: Linux kevin-Z68X-UD3H-B3 
3.16.0-38-generic #52-Ubuntu SMP Thu May 7 10:51:21 UTC 2015 x86_64
[76.727] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-38-generic 
root=UUID=7cb7429e-756d-4b07-b226-ef75f21de60c ro quiet splash vt.handoff=7
[76.727] Build Date: 03 June 2015  04:44:17AM
[76.727] xorg-server 2:1.17.1-0ubuntu4 (For technical support please see 
http://www.ubuntu.com/support) 
[76.727] Current version of pixman: 0.32.6
[76.727]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[76.727] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[76.727] (==) Log file: /var/log/Xorg.1.log, Time: Mon Jun  8 17:53:37 
2015
[76.727] (==) Using system config directory /usr/share/X11/xorg.conf.d
[76.727] (==) No Layout section.  Using the first Screen section.
[76.727] (==) No screen section available. Using defaults.
[76.727] (**) |--Screen Default Screen Section (0)
[76.727] (**) |   |--Monitor default monitor
[76.727] (==) No monitor specified for screen Default Screen Section.
Using a default monitor configuration.
[76.727] (==) Automatically adding devices
[76.727] (==) Automatically enabling devices
[76.728] (==) Automatically adding GPU devices
[76.728] (WW) The directory /usr/share/fonts/X11/cyrillic does not exist.
[76.728]Entry deleted from font path.
[76.728] (WW) The directory /usr/share/fonts/X11/100dpi/ does not exist.
[76.728]Entry deleted from font path.
[76.728] (WW) The directory /usr/share/fonts/X11/75dpi/ does not exist.
[76.728]Entry deleted from font path.
[76.728] (WW) The directory /usr/share/fonts/X11/100dpi does not exist.
[76.728]Entry deleted from font path.
[76.728] (WW) The directory /usr/share/fonts/X11/75dpi does not exist.
[76.728]Entry deleted from font path.
[76.728] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[76.728] (==) ModulePath set to 
/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules
[76.728] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[76.728] (II) Loader magic: 0x7fa8f8970d80
[76.728] (II) Module ABI versions:
[76.728]X.Org ANSI C Emulation: 0.4
[76.728]X.Org Video Driver: 19.0
[76.728]X.Org XInput driver : 21.0
[76.728]X.Org Server Extension : 9.0
[76.728] (II) xfree86: Adding drm device (/dev/dri/card0)
[76.730] (--) PCI: (0:0:2:0) 8086:0162:1458:d000 rev 9, Mem @ 
0xfb40/4194304, 0xc000/268435456, I/O @ 0xff00/64
[76.730] (--) PCI:*(0:1:0:0) 10de:1401:3842:3966 rev 161, Mem @ 
0xf900/16777216, 0xd000/268435456, 0xee00/33554432, I/O @ 
0xcf00/128, BIOS @ 0x/524288
[76.730] (II) LoadModule: glx
[76.730] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[76.743] (II) Module glx: vendor=X.Org Foundation
[76.743]compiled for 1.17.1, module version = 1.0.0
[76.743]ABI class: X.Org Server Extension, version 9.0
[76.743] (==) AIGLX enabled
[76.743] (==) Matched intel as autoconfigured driver 0
[76.743] (==) Matched nvidia as