compiz crashed with SIGSEGV in CompWindow::id()

Bug #740840 reported by fergy
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Unity
Triaged
High
Unassigned
compiz (Ubuntu)
Triaged
High
Unassigned
unity (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: compiz

Compiz crashes when trying to start amsn client

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: compiz-core 1:0.9.4git20110322-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-7.38-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
DRM.card0.HDMI.A.1:
 status: connected
 enabled: enabled
 dpms: On
 modes: 1920x1080 1920x1080 1600x1200 1680x1050 1280x1024 1440x900 1280x960 1280x800 1280x720 1280x720 1024x768 800x600 800x600 720x576 720x480 640x480
 edid-base64: AP///////wBMLSQFMjJSTCUTAQOAMBt4KjhRplYkEkiaUFQjCACBAIFAgYCVAKlAswABAQEBAjqAGHE4LUBYLEUA3QwRAAAeAAAA/QA4PB5REQAKICAgICAgAAAA/ABTeW5jTWFzdGVyCiAgAAAA/wBIOU1TOTA1NjA3CiAgAVoCAQQAAjqA0HI4LUAQLEWA3QwRAAAeAR0AclHQHiBuKFUA3QwRAAAeAR0AvFLQHiC4KFVA3QwRAAAejArQkCBAMSAMQFUA3QwRAAAYjArQiiDgLRAQPpYA3QwRAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABw==
DRM.card0.VGA.1:
 status: disconnected
 enabled: disabled
 dpms: On
 modes:
 edid-base64:
Date: Wed Mar 23 10:21:05 2011
DistUpgraded: Log time: 2011-03-18 20:28:57.125005
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus: virtualbox-ose, 4.0.4, 2.6.38-7-generic, x86_64: installed
ExecutablePath: /usr/bin/compiz
GraphicsCard:
 ATI Technologies Inc RS880 [Radeon HD 4200] [1002:9710] (prog-if 00 [VGA controller])
   Subsystem: ASRock Incorporation Device [1849:9710]
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
InstallationMedia_: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcCmdline: compiz --replace
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-7-generic root=UUID=3779fe0f-5627-45a9-8412-c7e282f8f7be ro quiet splash vt.handoff=7
ProcVersionSignature_: Ubuntu 2.6.38-7.38-generic 2.6.38
Renderer: Unknown
SegvAnalysis:
 Segfault happened at: 0x43be60 <_ZN10CompWindow2idEv>: mov 0x58(%rdi),%rax
 PC (0x0043be60) ok
 source "0x58(%rdi)" (0x00000058) not located in a known VMA region (needed readable region)!
 destination "%rax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: compiz
StacktraceTop:
 CompWindow::id() ()
 CompScreen::handleEvent(_XEvent*) ()
 PrivateCompositeScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libcomposite.so
 CompScreen::handleEvent(_XEvent*) ()
 PrivateGLScreen::handleEvent(_XEvent*) () from /usr/lib/compiz/libopengl.so
Title: compiz crashed with SIGSEGV in CompWindow::id()
UpgradeStatus: Upgraded to natty on 2011-03-21 (1 days ago)
UserGroups:

dmi.bios.date: 09/23/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.00
dmi.board.name: 939A785GMH/128M
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.00:bd09/23/2009:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rn939A785GMH/128M:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.
version.compiz: compiz 1:0.9.4git20110322-0ubuntu1
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 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu6

Revision history for this message
fergy (ramon-rebersak) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 CompWindow::id (this=0x0) at /build/buildd/compiz-0.9.4git20110322/src/window.cpp:4456
 CompScreen::handleEvent (this=0x12769f0, event=0x7fff1ace0570) at /build/buildd/compiz-0.9.4git20110322/src/event.cpp:1282
 PrivateCompositeScreen::handleEvent (this=0x1345150, event=0x7fff1ace0570) at /build/buildd/compiz-0.9.4git20110322/plugins/composite/src/screen.cpp:102
 CompScreen::handleEvent (this=0x12769f0, event=0x7fff1ace0570) at /build/buildd/compiz-0.9.4git20110322/src/event.cpp:986
 PrivateGLScreen::handleEvent (this=0x1354570, event=0x7fff1ace0570) at /build/buildd/compiz-0.9.4git20110322/plugins/opengl/src/screen.cpp:588

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in compiz (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
visibility: private → public
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

Having the same issue since last upgrade.

Here it crashes when I start RealVNC client on my Ubuntu system.

tags: added: unity unity-priority
Changed in compiz (Ubuntu):
status: New → Triaged
importance: Medium → High
Changed in unity:
status: New → Triaged
importance: Undecided → High
milestone: none → 3.8.2
Changed in unity (Ubuntu):
status: New → Triaged
Revision history for this message
Zaskar (zaskar-84) wrote :

Same problem here, with amsn and fgo (FlightGear gui), but not Ubuntu (slackware64-13.1 based and xfce). I have latest compiz, from git as is today (March, 31), and backtrace says that some how it looks for a windows's id when that window is NULL (line 1292, compiz-core/src/even.cpp), and I've just changed a little before that a condition to get in some "if" every time this pointer is NULL, and it's working ok. I've haven't read carefully compiz source, I've just made some quick test and some guessing and come up with this (almost sure very wrong) patch that is changing the condition in line 1225 from event.cpp in compiz's source from:
    case ReparentNotify:
 w = findWindow (event->xreparent.window);
 if (!w && event->xreparent.parent == priv->root) ...
to
    case ReparentNotify:
 w = findWindow (event->xreparent.window);
 if (!w) ...
I'm posting it just in case some developer find this usefull for catching the bug and writing a real patch.

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.