running compiz in Xephyr kills compiz

Bug #740972 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Invalid
Low
Unassigned
compiz (Ubuntu)
Expired
Low
Unassigned
unity (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: unity

I was using Xephyr and caused my external-to-xephyr compiz-decorator to crash. This is 100% reproducible

1.) log into unity deskop
2.) run: Xephyr :8 &
3.) run: DISPLAY=:8 compiz
4.) the windows will flash as compiz-decorator that was running dies

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.6.6-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-7.38-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
Date: Wed Mar 23 09:06:16 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
InstallationMedia_: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature_: Ubuntu 2.6.38-7.38-generic 2.6.38
SourcePackage: unity
UpgradeStatus: Upgraded to natty on 2010-11-15 (127 days ago)
---
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
CompositorRunning: None
DRM.card0.DP.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.DP.2:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.DP.3:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.HDMI.A.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.HDMI.A.2:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DRM.card0.LVDS.1:
 status: connected
 enabled: enabled
 dpms: On
 modes: 1440x900 1440x900
 edid-base64: AP///////wAwrjNAAAAAAAASAQOAHhN46q4QllhTjCgkUFQAAAABAQEBAQEBAQEBAQEBAQEB2CegiFGEGjAwIDYAML4QAAAZhCGgoFGEGjAwIDYAML4QAAAZAAAADwCQCjKQCigUAQAyDAEBAAAA/gBMUDE0MVdQMS1UTEI4ADw=
DRM.card0.VGA.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes:
 edid-base64:
DistUpgraded: Log time: 2010-11-15 15:19:11.183891
DistroCodename: natty
DistroRelease: Ubuntu 11.04
DistroVariant: ubuntu
DkmsStatus:
 virtualbox-ose, 4.0.4, 2.6.38-7-generic, x86_64: installed
 virtualbox-ose, 4.0.4, 2.6.38-6-generic, x86_64: installed
EcryptfsInUse: Yes
GraphicsCard:
 Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:20e4]
   Subsystem: Lenovo Device [17aa:20e4]
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
InstallationMedia_: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
InstallationMedia__: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
MachineType: LENOVO 7417CTO
Package: unity 3.6.8-0ubuntu3
PackageArchitecture: amd64
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-7-generic root=UUID=36286167-4eba-4a1e-a202-155c6baafa01 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
ProcVersionSignature_: Ubuntu 2.6.38-7.39-generic 2.6.38
ProcVersionSignature__: Ubuntu 2.6.38-7.39-generic 2.6.38
Renderer: Unknown
Tags: unity-2d natty running-unity unity-2d natty running-unity ubuntu unity-2d natty running-unity
Uname: Linux 2.6.38-7-generic x86_64
UpgradeStatus: Upgraded to natty on 2010-11-15 (134 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare sbuild
dmi.bios.date: 04/17/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET70WW (3.00 )
dmi.board.name: 7417CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET70WW(3.00):bd04/17/2009:svnLENOVO:pn7417CTO:pvrThinkPadT400:rvnLENOVO:rn7417CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7417CTO
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.4git20110322-0ubuntu5
version.libdrm2: libdrm2 2.4.23-1ubuntu5
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6~3ubuntu11
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Mirco Müller (macslow) wrote :

Scott, can you provide a stack-trace for this crash? This will make debugging the issue a lot easier!

Changed in unity:
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Scott Moser (smoser)
description: updated
Revision history for this message
Scott Moser (smoser) wrote :

This bug is (at least for me) trivial to recreate. Have you tried ?

I quickly tried to get a backtrace, but didn't get one. It seems that the compiz process doesn't crash.

Basically, there are 2 compiz process in play, one with DISPLAY=:0, then, later, one with DISPLAY=:8.

The second one makes the first exit, and then exits itself. The session then falls back to metacity as the window manager.

summary: - running compiz in Xephyr crashes compiz
+ running compiz in Xephyr kills compiz
Changed in unity (Ubuntu):
status: Incomplete → New
Changed in unity:
status: Incomplete → New
Revision history for this message
Scott Moser (smoser) wrote :

If you try to run compiz on DISPLAY=:0 while one is already running, it gives a message like:
$ compiz
compiz (core) - Error: Screen 0 on display ":0" already has a window manager; try using the --replace option to replace the current window manager.

That makes sense.

However, if you launch Xephyr, and then run compiz with DISPLAY=:8 (that of xephyr), it ends up making the compiz that was running on :0 exit.

This also happens if the window manager on :0 was metacity.

Revision history for this message
Sebastien Bacher (seb128) wrote :

does it make the decorator crash or compiz crash? if that's only the decorator the title is misleading and that seems similar to bug #730495

Alex Launi (alexlauni)
Changed in unity:
status: New → Incomplete
Changed in unity (Ubuntu):
status: New → Incomplete
Alex Launi (alexlauni)
Changed in compiz (Ubuntu):
status: New → Incomplete
Changed in unity (Ubuntu):
importance: Undecided → Low
Changed in unity:
importance: Undecided → Low
Changed in compiz (Ubuntu):
importance: Undecided → Low
Revision history for this message
Scott Moser (smoser) wrote : BootDmesg.txt

apport information

tags: added: apport-collected ubuntu unity-2d
description: updated
Revision history for this message
Scott Moser (smoser) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Dependencies.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : GconfCompiz.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Lspci.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Lsusb.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : ProcModules.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : UdevDb.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : UdevLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : UnitySupportTest.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : XorgLog.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : XorgLogOld.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : Xrandr.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : monitors.xml.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : peripherals.txt

apport information

Revision history for this message
Scott Moser (smoser) wrote : xdpyinfo.txt

apport information

Changed in unity (Ubuntu):
status: Incomplete → New
Revision history for this message
Scott Moser (smoser) wrote :

I'm personally not aware what portion of compiz or unity failed. i would suggest you try to reproduce the bug and see for yourself. To give you some bit of information, I did:
$ Xephyr :8
$ ps axww | sort > /tmp/out.1
$ DISPLAY=:8 compiz
$ ps axww | sort > /tmp/out.2
$ diff /tmp/out.1 /tmp/out.2

Cleaning the un-related differences, I see:
- 1644 tty8 Ss+ 0:11 /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-4XTgXB/database -nolisten tcp
+ 1644 tty8 Rs+ 0:14 /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-4XTgXB/database -nolisten tcp
- 2082 ? Sl 0:04 compiz
+ 4148 ? Ss 0:00 /bin/sh -c gnome-panel
+ 4149 ? Ss 0:00 /bin/sh -c metacity --replace
+ 4150 ? Sl 0:00 gnome-panel
+ 4151 ? Sl 0:00 metacity --replace
+ 4168 ? Ssl 0:00 /usr/lib/bonobo-activation/bonobo-activation-server --ac-activate --ior-output-fd=27
+ 4180 ? Sl 0:00 /usr/lib/gnome-panel/wnck-applet
+ 4182 ? Sl 0:00 /usr/lib/gnome-applets/cpufreq-applet
+ 4184 ? Sl 0:00 /usr/lib/gnome-applets/multiload-applet-2
+ 4186 ? Sl 0:00 /usr/lib/indicator-applet/indicator-applet-complete

In this case, the gnome-panel got launched on compiz exit. Previously, I don't think it had. So thats why the additional panel related processes.

Changed in compiz (Ubuntu):
status: Incomplete → New
Omer Akram (om26er)
Changed in unity:
status: Incomplete → New
Revision history for this message
Alex Launi (alexlauni) wrote :

actually i don't get any crash. can you start unity with unity --advanced-debug from tty1 to start it in gdb, and then run xephyr so it crashes unity on :0, can you provide the trace?

Changed in unity (Ubuntu):
status: New → Incomplete
Changed in compiz (Ubuntu):
status: New → Incomplete
Changed in unity:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for compiz (Ubuntu) because there has been no activity for 60 days.]

Changed in compiz (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity (Ubuntu) because there has been no activity for 60 days.]

Changed in unity (Ubuntu):
status: Incomplete → Expired
Omer Akram (om26er)
Changed in unity:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.