Launchpad has imported 6 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=32246.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-12-08T21:01:51+00:00 Chris Halse Rogers wrote:

Created attachment 40939
gdb session log of crash with backtrace.

Triggering the window switcher with mipmapping enabled in Compiz 0.9.2
results in a segfault in the mipmap generation code on r600c (but not
r600g), apparently because the driver private data for the texture is
not initialised.

Bottom of the backtrace inline, full backtrace attached:

Program received signal SIGSEGV, Segmentation fault.
0x00007f7b76eed81b in do_row (datatype=<value optimised out>, comps=<value 
optimised out>, srcWidth=<value optimised out>, srcRowA=0x0, srcRowB=0xe40, 
    dstWidth=<value optimised out>, dstRow=0x35ffe00) at main/mipmap.c:171
        in main/mipmap.c
(gdb) bt full
#0  0x00007f7b76eed81b in do_row (datatype=<value optimised out>, comps=<value 
optimised out>, srcWidth=<value optimised out>, srcRowA=0x0, 
    srcRowB=0xe40, dstWidth=<value optimised out>, dstRow=0x35ffe00) at 
main/mipmap.c:171
        i = <value optimised out>
        k = <value optimised out>
        rowB = 0xe40
        dst = 0x35ffe00
        j = <value optimised out>
        rowA = 0x0
        k0 = 1
        colStride = 2
#1  0x00007f7b76eeee9f in make_2d_mipmap (datatype=5121, comps=3, border=0, 
srcWidth=1214, srcHeight=1000, srcPtr=0x0, srcRowStride=1216, 
    dstWidth=607, dstHeight=500, dstPtr=0x35ffe00 "\340\271T\003", 
dstRowStride=607) at main/mipmap.c:1192
        bpt = 3
        srcWidthNB = 1214
        dstWidthNB = 607
        dstHeightNB = 500
        srcRowBytes = <value optimised out>
        dstRowBytes = 1821
        srcA = <value optimised out>
        srcB = <value optimised out>
        dst = <value optimised out>
        row = <value optimised out>
        srcRowStep = <value optimised out>
        __PRETTY_FUNCTION__ = "make_2d_mipmap"
#2  0x00007f7b76ef3e61 in _mesa_generate_mipmap (ctx=0x1585520, target=3553, 
texObj=0x1ed6300) at main/mipmap.c:1825
        srcImage = 0x1e186e0
        srcHeight = 1000
        srcDepth = 1
        dstWidth = 607
        dstHeight = 500
        border = 0
        dstImage = 0x3405cf0
        srcWidth = 1214
        dstDepth = 1
        srcImage = <value optimised out>
        convertFormat = MESA_FORMAT_RGB888
        srcData = 0x0
        dstData = 0x35ffe00 "\340\271T\003"
        level = 0
        maxLevels = 15
        datatype = 5121
        comps = 3
        __PRETTY_FUNCTION__ = "_mesa_generate_mipmap"
#3  0x00007f7b76eacc3d in radeon_generate_mipmap (ctx=0x1585520, target=<value 
optimised out>, texObj=0x1ed6300) at radeon_texture.c:256
        i = <value optimised out>
        nr_faces = 1
        face = <value optimised out>
#4  radeonGenerateMipmap (ctx=0x1585520, target=<value optimised out>, 
texObj=0x1ed6300) at radeon_texture.c:299
        rmesa = <value optimised out>
        bo = <value optimised out>
        face = <value optimised out>
        baseimage = 0x1e186e0
        __func__ = "radeonGenerateMipmap"
#5  0x00007f7b76ede567 in _mesa_GenerateMipmapEXT (target=3553) at 
main/fbobject.c:2177
        texObj = 0x1ed6300
        ctx = 0x1585520
#6  0x00007f7b77a52b88 in GLTexture::enable (this=0x1e1e250, filter=<value 
optimised out>)
    at 
/build/buildd/compiz-0.9.2.1+glibmainloop2/plugins/opengl/src/texture.cpp:232
        gs = 0x15659d0
...snip...
And

(gdb) up
#1  0x00007f7b76eeee9f in make_2d_mipmap (datatype=5121, comps=3, border=0, 
srcWidth=1214, srcHeight=1000, srcPtr=0x0, srcRowStride=1216, 
    dstWidth=607, dstHeight=500, dstPtr=0x35ffe00 "\340\271T\003", 
dstRowStride=607) at main/mipmap.c:1192
1192    in main/mipmap.c
(gdb) up
#2  0x00007f7b76ef3e61 in _mesa_generate_mipmap (ctx=0x1585520, target=3553, 
texObj=0x1ed6300) at main/mipmap.c:1825
1825    in main/mipmap.c
(gdb) uESC[ESC[Kprint *texObj
$1 = {Mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, 
__kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, 
    __size = '\000' <repeats 39 times>, __align = 0}, RefCount = 3, Name = 75, 
Target = 3553, Priority = 1, BorderColor = {f = {0, 0, 0, 0}, ui = {0, 
      0, 0, 0}, i = {0, 0, 0, 0}}, WrapS = 33071, WrapT = 33071, WrapR = 10497, 
MinFilter = 9987, MagFilter = 9729, MinLod = -1000, MaxLod = 1000, 
  LodBias = 0, BaseLevel = 0, MaxLevel = 1000, MaxAnisotropy = 1, CompareMode = 
0, CompareFunc = 515, CompareFailValue = 0, DepthMode = 6409, 
  _MaxLevel = 10, _MaxLambda = 10, CropRect = {0, 0, 0, 0}, Swizzle = {6403, 
6404, 6405, 6406}, _Swizzle = 1672, GenerateMipmap = 0 '\000', 
  _Complete = 0 '\000', _RenderToTexture = 1 '\001', Purgeable = 0 '\000', 
Image = {{0x1e186e0, 0x3405cf0, 0x0 <repeats 13 times>}, {
      0x0 <repeats 15 times>}, {0x0 <repeats 15 times>}, {0x0 <repeats 15 
times>}, {0x0 <repeats 15 times>}, {0x0 <repeats 15 times>}}, Palette = {
    InternalFormat = 0, _BaseFormat = 0, Size = 0, TableF = 0x0, TableUB = 0x0, 
RedSize = 0 '\000', GreenSize = 0 '\000', BlueSize = 0 '\000', 
    AlphaSize = 0 '\000', LuminanceSize = 0 '\000', IntensitySize = 0 '\000'}, 
DriverData = 0x0}

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/710108/comments/0

------------------------------------------------------------------------
On 2010-12-08T21:17:38+00:00 agd5f wrote:

Should be fixed in:
fd543e1f9506fe41e6e9e78aebbe0bca01df055c

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/710108/comments/1

------------------------------------------------------------------------
On 2010-12-09T12:25:50+00:00 Chris Halse Rogers wrote:

This is not fixed in mesa up to commit 05e534e6, which includes
fd543e1f.  The backtrace remains the same.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/710108/comments/2

------------------------------------------------------------------------
On 2010-12-09T13:42:17+00:00 Idr wrote:

This looks a lot like bug #32096.  Different driver, but the end of the
backtrace (from _mesa_generate_mipmap to the segfault) is the same.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/710108/comments/3

------------------------------------------------------------------------
On 2011-02-15T18:02:31+00:00 Bryce Harrington wrote:

Created attachment 43410
0001-Check-for-null-pointer-in-mipmap-image-data.patch

It looks to me like this occurs when the calling application passes in a
mipmap that has undefined image data (e.g. priv-
target->Image[0][0]->Data == NULL in this case).

For the case where _mesa_is_format_compressed() is true, there is an
ASSERT to catch that this is undefined, but there is no such check for
the false case.

The attached patch adds such a check (a problem message rather than an
assertion, though).  Possibly it should be using _mesa_error() or
perhaps an assert; I'm not certain.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/710108/comments/8

------------------------------------------------------------------------
On 2012-11-02T16:30:14+00:00 Andreas-boll-dev wrote:

Note: classic r600 driver has been abandoned.
Please use r600g (gallium driver) instead.

Is this still an issue with a newer driver/kernel?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/710108/comments/12


** Changed in: mesa
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/710108

Title:
  compiz crashed with SIGSEGV in _mesa_generate_mipmap()

Status in Mesa:
  Incomplete
Status in “mesa” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: compiz

  Fresh installation of Natty with the Alternate Network install.

  Compiz crashes when pressing ALT+Tab.
  Same crash with Unity or classic desktop.

  #0  0x00007f584fc550ab in ?? () from /usr/lib/dri/libdricore.so
  #1  0x00007f584fc5672f in ?? () from /usr/lib/dri/libdricore.so
  #2  0x00007f584fc5b6d7 in _mesa_generate_mipmap () from 
/usr/lib/dri/libdricore.so
  #3  0x00007f585420be7d in radeonGenerateMipmap () from 
/usr/lib/dri/r600_dri.so
  #4  0x00007f584fc40b57 in _mesa_GenerateMipmapEXT () from 
/usr/lib/dri/libdricore.so
  #5  0x00007f5854add608 in GLTexture::enable(GLTexture::Filter) () from 
/usr/lib/compiz/libopengl.so
  #6  0x00007f5854add6d4 in TfpTexture::enable(GLTexture::Filter) () from 
/usr/lib/compiz/libopengl.so
  #7  0x00007f5854ad5c97 in GLWindow::glDrawTexture(GLTexture*, 
GLFragment::Attrib&, unsigned int) () from /usr/lib/compiz/libopengl.so
  #8  0x00007f5854ad6c51 in GLWindow::glDraw(GLMatrix const&, 
GLFragment::Attrib&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #9  0x00007f584e2a0d85 in DecorWindow::glDraw(GLMatrix const&, 
GLFragment::Attrib&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libdecor.so
  #10 0x00007f5854ad6a10 in GLWindow::glDraw(GLMatrix const&, 
GLFragment::Attrib&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #11 0x00007f584a106388 in UnityWindow::glDraw(GLMatrix const&, 
GLFragment::Attrib&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libunityshell.so
  #12 0x00007f5854ad6a10 in GLWindow::glDraw(GLMatrix const&, 
GLFragment::Attrib&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #13 0x00007f584cd2ae46 in BaseSwitchWindow::paintThumb(GLWindowPaintAttrib 
const&, GLMatrix const&, unsigned int, int, int, int, int, int, int) () from 
/usr/lib/compiz/libcompiztoolbox.so
  #14 0x00007f584abd2cc3 in StaticSwitchWindow::paintThumb(GLWindowPaintAttrib 
const&, GLMatrix const&, unsigned int, int, int) () from 
/usr/lib/compiz/libstaticswitcher.so
  #15 0x00007f584abd2fba in StaticSwitchWindow::glPaint(GLWindowPaintAttrib 
const&, GLMatrix const&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libstaticswitcher.so
  #16 0x00007f5854ad6860 in GLWindow::glPaint(GLWindowPaintAttrib const&, 
GLMatrix const&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #17 0x00007f584a79cb25 in FadeWindow::glPaint(GLWindowPaintAttrib const&, 
GLMatrix const&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libfade.so
  #18 0x00007f5854ad6860 in GLWindow::glPaint(GLWindowPaintAttrib const&, 
GLMatrix const&, CompRegion const&, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #19 0x00007f584abd3789 in 
StaticSwitchScreen::glPaintOutput(GLScreenPaintAttrib const&, GLMatrix const&, 
CompRegion const&, CompOutput*, unsigned int) () from 
/usr/lib/compiz/libstaticswitcher.so
  #20 0x00007f5854ad753d in GLScreen::glPaintOutput(GLScreenPaintAttrib const&, 
GLMatrix const&, CompRegion const&, CompOutput*, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #21 0x00007f584a104bdf in UnityScreen::glPaintOutput(GLScreenPaintAttrib 
const&, GLMatrix const&, CompRegion const&, CompOutput*, unsigned int) () from 
/usr/lib/compiz/libunityshell.so
  #22 0x00007f5854ad753d in GLScreen::glPaintOutput(GLScreenPaintAttrib const&, 
GLMatrix const&, CompRegion const&, CompOutput*, unsigned int) () from 
/usr/lib/compiz/libopengl.so
  #23 0x00007f5854ad8fbd in 
PrivateGLScreen::paintOutputs(std::list<CompOutput*, 
std::allocator<CompOutput*> >&, unsigned int, CompRegion const&) () from 
/usr/lib/compiz/libopengl.so
  #24 0x00007f58550ff569 in CompositeScreen::paint(std::list<CompOutput*, 
std::allocator<CompOutput*> >&, unsigned int) () from 
/usr/lib/compiz/libcomposite.so
  #25 0x00007f5855101380 in CompositeScreen::handlePaintTimeout() () from 
/usr/lib/compiz/libcomposite.so

  
  ProblemType: Crash
  DistroRelease: Ubuntu 11.04
  Package: compiz-core 1:0.9.2.1+glibmainloop4-0ubuntu7
  ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
  Uname: Linux 2.6.38-1-generic x86_64
  Architecture: amd64
  CompisitorRunning: None
  CompizPlugins: No value set for 
`/apps/compiz-1/general/allscreens/options/active_plugins'
  CrashCounter: 1
  DRM.card0.DP.1:
   status: disconnected
   enabled: disabled
   dpms: On
   modes:
   edid-base64:
  DRM.card0.HDMI.A.1:
   status: disconnected
   enabled: disabled
   dpms: On
   modes:
   edid-base64:
  Date: Sun Jan 30 12:05:38 2011
  DistUpgraded: Fresh install
  DistroCodename: natty
  DistroVariant: ubuntu
  ExecutablePath: /usr/bin/compiz
  GraphicsCard:   Subsystem: PC Partner Limited Device [174b:1482]
  MachineType: Gigabyte Technology Co., Ltd. GA-890GPA-UD3H
  ProcCmdline: compiz
  ProcEnviron:
   LANGUAGE=en_US:en
   LANG=en_US.UTF-8
   LC_MESSAGES=en_US.utf8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-1-generic 
root=UUID=30fc9e49-b3c8-4ea6-aec8-d504895ea7eb ro quiet splash vt.handoff=7
  Renderer: Hardware acceleration
  SegvAnalysis:
   Segfault happened at: 0x7f584fc550ab:        movzbl (%r9),%r10d
   PC (0x7f584fc550ab) ok
   source "(%r9)" (0x00000000) not located in a known VMA region (needed 
readable region)!
   destination "%r10d" ok
  SegvReason: reading NULL VMA
  Signal: 11
  SourcePackage: compiz
  StacktraceTop:
   ?? () from /usr/lib/dri/libdricore.so
   ?? () from /usr/lib/dri/libdricore.so
   _mesa_generate_mipmap () from /usr/lib/dri/libdricore.so
   radeonGenerateMipmap () from /usr/lib/dri/r600_dri.so
   _mesa_GenerateMipmapEXT () from /usr/lib/dri/libdricore.so
  Title: compiz crashed with SIGSEGV in _mesa_generate_mipmap()
  UnitySupportTest:

  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
  XsessionErrors:
   (nautilus:2729): GConf-CRITICAL **: gconf_value_free: assertion `value != 
NULL' failed
   (nm-applet:2738): Gdk-CRITICAL **: 
IA__gdk_window_thaw_toplevel_updates_libgtk_only: assertion 
`private->update_and_descendants_freeze_count > 0' failed
  dmi.bios.date: 07/23/2010
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: FD
  dmi.board.name: GA-890GPA-UD3H
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: 
dmi:bvnAwardSoftwareInternational,Inc.:bvrFD:bd07/23/2010:svnGigabyteTechnologyCo.,Ltd.:pnGA-890GPA-UD3H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-890GPA-UD3H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: GA-890GPA-UD3H
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.
  version.libdrm2: libdrm2 2.4.23-1ubuntu3
  version.libgl1-mesa-glx: libgl1-mesa-glx 7.10-1ubuntu1
  version.xserver-xorg: xserver-xorg 1:7.5+6ubuntu8
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 
1:6.13.2+git20110124.fadee040-0ubuntu1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-1ubuntu2
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:0.0.16+git20110107+b795ca6e-0ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/mesa/+bug/710108/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to