← Back to team overview

touch-packages team mailing list archive

[Bug 1364173] [NEW] Xsession sourced scripts shouldn't be run using user's default shell

 

Public bug reported:

Recently I encountered a problem that my input method malfunction
because the environmental variables are wrongly set(but it is fully
configured using im-config), after hours of debugging I found that it's
Z-shell(my current default shell)'s bug that prematurely quit the im-
config input method configure Xsession.d script.

While that's another Z-shell's bug, the problem is, /etc/X11/Xsession
(and all the Xsession.d scripts it sourced)  **shouldn't** run in
Z-shell.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: x11-common 1:7.7+1ubuntu8
ProcVersionSignature: Ubuntu 3.13.0-35.62-lowlatency 3.13.11.6
Uname: Linux 3.13.0-35-lowlatency i686
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] 是個目錄: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86 Kernel Module  331.38  Wed Jan  8 18:44:57 PST 2014
 GCC version:  gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
.tmp.unity.support.test.0:
 
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: i386
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: kwin
CurrentDesktop: KDE
Date: Tue Sep  2 07:18:58 2014
DistUpgraded: 2014-04-19 12:12:02,233 DEBUG  fork pid is: 0
DistroCodename: trusty
DistroVariant: kubuntu
ExtraDebuggingInterest: I just need to know a workaround
GraphicsCard:
 NVIDIA Corporation G92 [GeForce GTS 250] [10de:0615] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:34e7]
InstallationDate: Installed on 2013-03-08 (542 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
MachineType: System manufacturer System Product Name
PackageArchitecture: all
ProcKernelCmdLine: root=UUID=aa9c6442-c0f4-4544-9f01-706d10aee605 ro crashkernel=384M-2G:64M,2G-:128M splash crashkernel=384M-:128M
SourcePackage: xorg
UpgradeStatus: Upgraded to trusty on 2014-04-19 (135 days ago)
dmi.bios.date: 08/18/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1101
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P7H55-M
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1101:bd08/18/2010:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP7H55-M:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
version.compiz: compiz 1:0.9.11.2+14.04.20140714-0ubuntu1
version.libdrm2: libdrm2 2.4.56+git1408251830.391bba~gd~t
version.libgl1-mesa-dri: libgl1-mesa-dri 10.4~git1408311930.e34a36~gd~t
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.4~git1408311930.e34a36~gd~t
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.15.1-0ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.4.99+git1408211931.ba5fcc~gd~t
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.914+git1408311930.2c564c~gd~t
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10+git1408170730.16c885~gd~t
xserver.bootTime: Tue Sep  2 07:05:53 2014
xserver.configfile: /etc/X11/xorg.conf
xserver.errors:
 
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 
xserver.version: 2:1.15.1-0ubuntu2

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


** Tags: apport-bug i386 kubuntu trusty

-- 
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/1364173

Title:
  Xsession sourced scripts shouldn't be run using user's default shell

Status in “xorg” package in Ubuntu:
  New

Bug description:
  Recently I encountered a problem that my input method malfunction
  because the environmental variables are wrongly set(but it is fully
  configured using im-config), after hours of debugging I found that
  it's Z-shell(my current default shell)'s bug that prematurely quit the
  im-config input method configure Xsession.d script.

  While that's another Z-shell's bug, the problem is, /etc/X11/Xsession
  (and all the Xsession.d scripts it sourced)  **shouldn't** run in
  Z-shell.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: x11-common 1:7.7+1ubuntu8
  ProcVersionSignature: Ubuntu 3.13.0-35.62-lowlatency 3.13.11.6
  Uname: Linux 3.13.0-35-lowlatency i686
  NonfreeKernelModules: nvidia
  .proc.driver.nvidia.gpus.0: Error: [Errno 21] 是個目錄: '/proc/driver/nvidia/gpus/0'
  .proc.driver.nvidia.registry: Binary: ""
  .proc.driver.nvidia.version:
   NVRM version: NVIDIA UNIX x86 Kernel Module  331.38  Wed Jan  8 18:44:57 PST 2014
   GCC version:  gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
  .tmp.unity.support.test.0:
   
  ApportVersion: 2.14.1-0ubuntu3.3
  Architecture: i386
  CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
  CompositorRunning: kwin
  CurrentDesktop: KDE
  Date: Tue Sep  2 07:18:58 2014
  DistUpgraded: 2014-04-19 12:12:02,233 DEBUG  fork pid is: 0
  DistroCodename: trusty
  DistroVariant: kubuntu
  ExtraDebuggingInterest: I just need to know a workaround
  GraphicsCard:
   NVIDIA Corporation G92 [GeForce GTS 250] [10de:0615] (rev a2) (prog-if 00 [VGA controller])
     Subsystem: Gigabyte Technology Co., Ltd Device [1458:34e7]
  InstallationDate: Installed on 2013-03-08 (542 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
  MachineType: System manufacturer System Product Name
  PackageArchitecture: all
  ProcKernelCmdLine: root=UUID=aa9c6442-c0f4-4544-9f01-706d10aee605 ro crashkernel=384M-2G:64M,2G-:128M splash crashkernel=384M-:128M
  SourcePackage: xorg
  UpgradeStatus: Upgraded to trusty on 2014-04-19 (135 days ago)
  dmi.bios.date: 08/18/2010
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1101
  dmi.board.asset.tag: To Be Filled By O.E.M.
  dmi.board.name: P7H55-M
  dmi.board.vendor: ASUSTeK Computer INC.
  dmi.board.version: Rev X.0x
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1101:bd08/18/2010:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP7H55-M:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
  dmi.product.name: System Product Name
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer
  version.compiz: compiz 1:0.9.11.2+14.04.20140714-0ubuntu1
  version.libdrm2: libdrm2 2.4.56+git1408251830.391bba~gd~t
  version.libgl1-mesa-dri: libgl1-mesa-dri 10.4~git1408311930.e34a36~gd~t
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 10.4~git1408311930.e34a36~gd~t
  version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
  version.xserver-xorg-core: xserver-xorg-core 2:1.15.1-0ubuntu2
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.4.99+git1408211931.ba5fcc~gd~t
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.914+git1408311930.2c564c~gd~t
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10+git1408170730.16c885~gd~t
  xserver.bootTime: Tue Sep  2 07:05:53 2014
  xserver.configfile: /etc/X11/xorg.conf
  xserver.errors:
   
  xserver.logfile: /var/log/Xorg.0.log
  xserver.outputs:
   
  xserver.version: 2:1.15.1-0ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1364173/+subscriptions


Follow ups

References