compiz.real chrashed with segfault

Bug #316214 reported by Daniel Dekovic
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Intrepid by Mike Vastola

Bug Description

Binary package hint: compiz-core

Hi. I have noticed in my logs that compiz is segfaulting. This is a copy of my log:
[ 2284.650673] compiz.real[5986]: segfault at 6800086 ip 08055c7d sp bfd88010 error 4 in compiz.real[8048000+34000]
[ 3777.762032] compiz.real[9293]: segfault at 86 ip 08055c7d sp bfd839c0 error 4 in compiz.real[8048000+34000]

This is reproducable by runing compiz --replace or just restarting gnome session. I thing that the same thing was reported in this bug reports:

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/302103

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/302595

On my system compiz is runing along with emerald theme manager and cairo dock and I don't see any strange behavior except sometimes mouse is going strange and I need to click a few times to open ie bookmarks menu in firefox. I'm running 2.6.27-9-generic kernel on interpid with lates stable updates relased until 11.01.2008 and nvidia binary driver ver. 177.
lspci -v | grep VGA
08:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M GS (rev a1)

Relevant xorg.conf part
Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"

/etc/modprobe.d/nvidia-kernel-nkc
alias char-major-195* nvidia
options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=1002 NVreg_DeviceFileMode=0660

lsmod | grep nvidia

nvidia 6909268 38
agpgart 42184 1 nvidia
i2c_core 31892 1 nvidia

I tried to backtrace this problem but I run in a truble of doing this. I followed instructions on https://wiki.ubuntu.com/DebuggingProgramCrash but all I got from apt lines was
Failed to fetch http://ddebs.ubuntu.com/dists/interpid/main/binary-i386/Packages.gz 404 Not Found

I tried to backtrace runing gdb but as I wrote (gdb) attach <PID> suggested at https://wiki.ubuntu.com/Backtrace my gui freezes completly.

ps uax | grep compiz

daniel 10469 0.0 0.0 1844 548 ? S 01:24 0:00 /bin/sh /usr/bin/compiz
daniel 10537 2.9 2.1 67664 43956 ? SL 01:24 1:04 /usr/bin/compiz.real --ignore-desktop-hints --replace --loose-binding core ccp

compiz --help

Checking for Xgl: not present.
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1440x900) to maximum 3D texture size (8192): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present.

glxinfo | grep render

direct rendering: Yes
OpenGL renderer string: GeForce 8400M GS/PCI/SSE2
    GL_NV_depth_buffer_float, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_NV_vertex_program3, GL_NVX_conditional_render, GL_SGIS_generate_mipmap,

Revision history for this message
Daniel Dekovic (d-dekovic) wrote :

I got today this error on compiz --replace

[ 6522.552877] compiz.real[13540]: segfault at 4 ip b7d70f7b sp bf89e380 error 4 in libGL.so.177.82[b7d06000+87000]

Revision history for this message
Daniel Dekovic (d-dekovic) wrote :
Download full text (12.2 KiB)

I was able to backtrace compiz chrashing. As suggested at nvidia forum I add in my xorg.conf
Option "NvAGP" "0"
and than I did compiz --replace and here is output:

Checking for Xgl: not present.
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1440x900) to maximum 3D texture size (8192): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present.
/usr/bin/compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
)
*** glibc detected *** /usr/bin/compiz.real: double free or corruption (!prev): 0x09677490 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7b103f4]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7b12456]
/usr/lib/libGL.so.1[0xb7c780e1]
======= Memory map: ========
08048000-0807c000 r-xp 00000000 08:03 41893 /usr/bin/compiz.real
0807c000-0807d000 r--p 00033000 08:03 41893 /usr/bin/compiz.real
0807d000-0807e000 rw-p 00034000 08:03 41893 /usr/bin/compiz.real
08fac000-098b9000 rw-p 08fac000 00:00 0 [heap]
b549b000-b569b000 rw-s 34f96000 00:0e 15305 /dev/nvidia0
b5837000-b583e000 r--s 00000000 08:03 146074 /usr/lib/gconv/gconv-modules.cache
b583e000-b587d000 r--p 00000000 08:03 11650 /usr/lib/locale/en_US.utf8/LC_CTYPE
b6400000-b6421000 rw-p b6400000 00:00 0
b6421000-b6500000 ---p b6421000 00:00 0
b659e000-b65a8000 r-xp 00000000 08:03 146515 /lib/tls/i686/cmov/libnss_files-2.8.90.so
b65a8000-b65a9000 r--p 00009000 08:03 146515 /lib/tls/i686/cmov/libnss_files-2.8.90.so
b65a9000-b65aa000 rw-p 0000a000 08:03 146515 /lib/tls/i686/cmov/libnss_files-2.8.90.so
b65aa000-b65b3000 r-xp 00000000 08:03 146517 /lib/tls/i686/cmov/libnss_nis-2.8.90.so
b65b3000-b65b4000 r--p 00008000 08:03 146517 /lib/tls/i686/cmov/libnss_nis-2.8.90.so
b65b4000-b65b5000 rw-p 00009000 08:03 146517 /lib/tls/i686/cmov/libnss_nis-2.8.90.so
b65b5000-b65bc000 r-xp 00000000 08:03 146513 /lib/tls/i686/cmov/libnss_compat-2.8.90.so
b65bc000-b65bd000 r--p 00006000 08:03 146513 /lib/tls/i686/cmov/libnss_compat-2.8.90.so
b65bd000-b65be000 rw-p 00007000 08:03 146513 /lib/tls/i686/cmov/libnss_compat-2.8.90.so
b65be000-b65d3000 r-xp 00000000 08:03 146512 /lib/tls/i686/cmov/libnsl-2.8.90.so
b65d3000-b65d4000 r--p 00014000 08:03 146512 /lib/tls/i686/cmov/libnsl-2.8.90.so
b65d4000-b65d5000 rw-p 00015000 08:03 146512 /lib/tls/i686/cmov/libnsl-2.8.90.so
b65d5000-b65d7000 rw-p b65d5000 00:00 0
b65d7000-b65ff000 r-xp 00000000 08:03 94741 /lib/libpcre.so.3.12.1
b65ff000-b6600000 r--p 00027000 08:03 94741 /lib/libpcre.so.3.12.1
b6600000-b6601000 rw-p 00028000 08:03 94741 /lib/libpcre.so.3.12.1
b6601000-b6616000 r-xp 00000000 08:03 146520 /lib/tls/i686/cmov/libpthread-2.8.90.so
b6616000-b6617000 r--p 00014000 08:03 146520 /lib/tls/i686/cmov/libpthread-2.8.90.so
b6617000-b6618000 rw-p 00015000 08:03 146520 /lib/tls/i686/cmov/libpthread-2.8.90.so
b6618000-b661a000 rw-p b6618000 00:00 0
b661a000-b6656000 r-xp 00000000...

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a valgrind log following the instructions at https://wiki.ubuntu.com/Valgrind and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in compiz:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Daniel Dekovic (d-dekovic) wrote :

This is a valgrind log on running compiz --replace on my system. Hope it will help.

Revision history for this message
January (january-weiner) wrote :

I'm getting the same quite frequently since -- I don't know? a few weeks? (19 times since February 1st). Here is a typical error message from /var/log/messages:

 compiz.real[5799]: segfault at 0 ip 00000000 sp bfb88ccc error 4 in compiz.real[8048000+34000]

I have installed valgrind and I will run it on compiz if you think that this will help.

I have the impression that it happens whenever I do something with Opera, or/and rotating the cube to get to another desktop.

Running on an X40 Thinkpad laptop.

j.

Revision history for this message
Adrian Busolini (aab-cs) wrote :

I recently experienced this too:

compiz.real[7424]: segfault at 10 ip 08055c8c sp bfa6efa0 error 4 in compiz.real[8048000+34000]

It's only happened once though, and I am so far unable to reproduce it. Valgrind's at the ready if I do, though.

01:00.0 VGA compatible controller: nVidia Corporation GeForce 9800 GT (rev a2).
compiz 1:0.7.8-0ubuntu4.1

Revision history for this message
Colin Weinkauf (colin-xendev) wrote :
Download full text (4.8 KiB)

Checking for Xgl: not present.
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.0.log
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Checking screen 1Comparing resolution (1440x900) to maximum 3D texture size (8192): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present.
/usr/bin/compiz.real (dbus) - Error: dbus_bus_get error: Failed to execute dbus-launch to autolaunch D-Bus session
/usr/bin/compiz.real (dbus) - Error: InitObject failed
/usr/bin/compiz.real (core) - Error: Couldn't activate plugin 'dbus'
/usr/bin/compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
*** glibc detected *** /usr/bin/compiz.real: double free or corruption (!prev): 0x0000000001956340 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fb096ac5cb8]
/lib/libc.so.6(cfree+0x76)[0x7fb096ac8276]
/usr/lib/libGL.so.1[0x7fb0988e4eaa]
======= Memory map: ========
00400000-0043c000 r-xp 00000000 08:06 3678365 /usr/bin/compiz.real
0063b000-0063c000 r--p 0003b000 08:06 3678365 /usr/bin/compiz.real
0063c000-0063d000 rw-p 0003c000 08:06 3678365 /usr/bin/compiz.real
0159d000-02c86000 rw-p 0159d000 00:00 0 [heap]
7fb092dbe000-7fb092dc2000 r-xp 00000000 08:06 3703178 /usr/lib/compizconfig/backends/libini.so
7fb092dc2000-7fb092fc1000 ---p 00004000 08:06 3703178 /usr/lib/compizconfig/backends/libini.so
7fb092fc1000-7fb092fc2000 r--p 00003000 08:06 3703178 /usr/lib/compizconfig/backends/libini.so
7fb092fc2000-7fb092fc3000 rw-p 00004000 08:06 3703178 /usr/lib/compizconfig/backends/libini.so
7fb092fc3000-7fb092fd9000 r-xp 00000000 08:06 3858491 /lib/libgcc_s.so.1
7fb092fd9000-7fb0931d9000 ---p 00016000 08:06 3858491 /lib/libgcc_s.so.1
7fb0931d9000-7fb0931da000 r--p 00016000 08:06 3858491 /lib/libgcc_s.so.1
7fb0931da000-7fb0931db000 rw-p 00017000 08:06 3858491 /lib/libgcc_s.so.1
7fb0931db000-7fb0932cc000 r-xp 00000000 08:06 3680692 /usr/lib/libstdc++.so.6.0.10
7fb0932cc000-7fb0934cc000 ---p 000f1000 08:06 3680692 /usr/lib/libstdc++.so.6.0.10
7fb0934cc000-7fb0934d3000 r--p 000f1000 08:06 3680692 /usr/lib/libstdc++.so.6.0.10
7fb0934d3000-7fb0934d5000 rw-p 000f8000 08:06 3680692 /usr/lib/libstdc++.so.6.0.10
7fb0934d5000-7fb0934e8000 rw-p 7fb0934d5000 00:00 0
7fb0934e8000-7fb0934ff000 r-xp 00000000 08:06 3858865 /lib/libpthread-2.9.so
7fb0934ff000-7fb0936fe000 ---p 00017000 08:06 3858865 /lib/libpthread-2.9.so
7fb0936fe000-7fb0936ff000 r--p 00016000 08:06 3858865 /lib/libpthread-2.9.so
7fb0936ff000-7fb093700000 rw-p 00017000 08:06 3858865 /lib/libpthread-2.9.so
7fb093700000-7fb093704000 rw-p 7fb093700000 00:...

Read more...

Revision history for this message
Kai Marron (leighnaceo) wrote :
Download full text (9.0 KiB)

I've been having the same problem:

kai@Kai-Desktop:~$ compiz --replace
Checking for Xgl: not present.
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.0.log
Detected PCI ID for VGA:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Checking screen 1Comparing resolution (1680x1050) to maximum 3D texture size (8192): Passed.
Checking for Software Rasterizer: Not present.
Checking for nVidia: present.
Checking for FBConfig: present.
running under gnome seesion, checking for gnomecompat
Checking for Xgl: not present.
*** glibc detected *** /usr/bin/compiz.real: double free or corruption (!prev): 0x0a176918 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7c9e604]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7ca05b6]
/usr/lib/libGL.so.1[0xb7e1c3e1]
======= Memory map: ========
08048000-0807c000 r-xp 00000000 08:05 1605791 /usr/bin/compiz.real
0807c000-0807d000 r--p 00033000 08:05 1605791 /usr/bin/compiz.real
0807d000-0807e000 rw-p 00034000 08:05 1605791 /usr/bin/compiz.real
09f2c000-0a1ef000 rw-p 09f2c000 00:00 0 [heap]
b624e000-b6258000 r-xp 00000000 08:05 730458 /lib/tls/i686/cmov/libnss_files-2.9.so
b6258000-b6259000 r--p 00009000 08:05 730458 /lib/tls/i686/cmov/libnss_files-2.9.so
b6259000-b625a000 rw-p 0000a000 08:05 730458 /lib/tls/i686/cmov/libnss_files-2.9.so
b625a000-b6263000 r-xp 00000000 08:05 730462 /lib/tls/i686/cmov/libnss_nis-2.9.so
b6263000-b6264000 r--p 00008000 08:05 730462 /lib/tls/i686/cmov/libnss_nis-2.9.so
b6264000-b6265000 rw-p 00009000 08:05 730462 /lib/tls/i686/cmov/libnss_nis-2.9.so
b6265000-b627a000 r-xp 00000000 08:05 730452 /lib/tls/i686/cmov/libnsl-2.9.so
b627a000-b627b000 r--p 00014000 08:05 730452 /lib/tls/i686/cmov/libnsl-2.9.so
b627b000-b627c000 rw-p 00015000 08:05 730452 /lib/tls/i686/cmov/libnsl-2.9.so
b627c000-b627e000 rw-p b627c000 00:00 0
b627e000-b6285000 r-xp 00000000 08:05 730454 /lib/tls/i686/cmov/libnss_compat-2.9.so
b6285000-b6286000 r--p 00006000 08:05 730454 /lib/tls/i686/cmov/libnss_compat-2.9.so
b6286000-b6287000 rw-p 00007000 08:05 730454 /lib/tls/i686/cmov/libnss_compat-2.9.so
b6287000-b62b7000 r-xp 00000000 08:05 712819 /lib/libpcre.so.3.12.1
b62b7000-b62b8000 r--p 0002f000 08:05 712819 /lib/libpcre.so.3.12.1
b62b8000-b62b9000 rw-p 00030000 08:05 712819 /lib/libpcre.so.3.12.1
b62b9000-b62f5000 r-xp 00000000 08:05 1608691 /usr/lib/libgobject-2.0.so.0.2000.1
b62f5000-b62f6000 r--p 0003b000 08:05 1608691 /usr/lib/libgobject-2.0.so.0.2000.1
b62f6000-b62f7000 rw-p 0003c000 08:05 1608691 /usr/lib/libgobject-2.0.so.0.2000.1
b62f7000-b632d000 r-xp 00000000 08:05 712759 /lib/libdbus-1.so.3.4.0
b632d000-b632e000 r--p 00035000 08:05 712759 /lib/libdbus-1.so.3.4.0
b632e000-b632f000 rw-p 00036000 08:05 712759 /lib/libdbus-1.so.3.4.0
b632f000-b634b000 r-xp 00000000 08:05 1608470 /usr/lib/libdbus-glib-1.so.2.1.0
b634b000-b634c000 r--p 0001b000 08:05 1608470 /usr/lib/libdbus-glib-1.so.2.1.0
b634c000-b634d000 rw-p 0001c000 08:05 1608470 /usr/lib/libdbus-glib-1.so.2.1...

Read more...

Revision history for this message
Colin Weinkauf (colin-xendev) wrote :

After several trials and errors of new compiz bug fixes, no avail to the issue. Here I have attached my valgrind.log when trying to execute compiz --replace.

Revision history for this message
Inderpreet (inderpreet-nsit) wrote :

I see this on a T61, Jaunty

May 12 22:09:00 zeppelin kernel: [21921.266386] emerald[3864]: segfault at 2c9 ip 00007f86f37a56fe sp 00007ffffc685d10 error 4 in libgdk-x11-2.0.so.0.1600.1[7f86f3783000+9d000]

This is not reproducible for me. Infrequently my emerald and occasionally compiz would segfault.

I *dont* have an nvidia card.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Thanks for your bug report. Unfortunately this report does not have a valid backtrace which makes it very difficult to investigate the problem. Due to the number of crashes that are currently being reported against Compiz we will close this bug assuming it is a duplicate of one of the existing crash bugs at http://bugs.launchpad.net/ubuntu/+source/compiz/.

For more information on problems with visual effects see http://wiki.ubuntu.com/VisualEffects.

If you are able you can try to obtain a backtrace using http://wiki.ubuntu.com/DebuggingProgramCrash. If you think the backtrace is unique please attach the file to the bug report and mark the bug as "New".

Changed in compiz (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
quequotion (quequotion) wrote :

Don't be so quick to dismiss this as a problem with compiz. It's certainly not the most efficient way to manage a desktop, but the code has come a long way and isn't the resource hogging, bug-ridden monster it once may have been.

This but is probably related to https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-180/+bug/392850 and https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/502625 and https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/216204 and https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/473126.

For most people having this problem, compiz itself does seem to be working ("compiz --replace" seems to work in most cases, after log in). Honestly I think it has more to do with gdm or gnome and how compiz is loaded. It looks like a problem of permissions (compiz may not be allowed some resource) or the order in which compiz is loaded (perhaps a service it depends on is not running yet) or both.

Revision history for this message
quequotion (quequotion) wrote :

*clarification: "gdm" refers to the login and session manager, "gnome" refers to the desktop environment.

It confounds me to no end trying to decide where one ends and the other begins, if any such point exists...

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.