[Mesa-dev] [Bug 30557] New: Mesa/GL crash after creating 1x1 dummy Drawable (with Clutter)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 2 02:26:23 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=30557

           Summary: Mesa/GL crash after creating 1x1 dummy Drawable (with
                    Clutter)
           Product: Mesa
           Version: 7.6
          Platform: All
        OS/Version: OpenBSD
            Status: NEW
          Severity: critical
          Priority: medium
         Component: GLX
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: jasper at humppa.nl


As explained in this bugreport at Clutter
(http://bugzilla.clutter-project.org/show_bug.cgi?id=2345), every application
linking against clutter-glx-1.0 seg. faults upon execution.

Here is the full backtrace of one of the Clutter example programs, which
indicates an issue with Mesa/GLX/DRI:
cerebrum:interactive {110}
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/tests/interactive/test-interactive
ctest-ct-clip

Segmentation fault (core dumped)
cerebrum:interactive {113} gdb
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/tests/ -c
test-interactive.coreinter[7 at active/.li[3 at bs/[17 at test-interactive 

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.8"...
Core was generated by `test-interactive'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpthread.so.12.1...done.
Loaded symbols for /usr/lib/libpthread.so.12.1
Reading symbols from /usr/local/lib/libclutter-glx-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libclutter-glx-1.0.so.1.0
Reading symbols from /usr/local/lib/libatk-1.0.so.2800.0...done.
Loaded symbols for /usr/local/lib/libatk-1.0.so.2800.0
Reading symbols from /usr/local/lib/libpangocairo-1.0.so.1802.0...done.
Loaded symbols for /usr/local/lib/libpangocairo-1.0.so.1802.0
Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.1403.0...done.
Loaded symbols for /usr/local/lib/libgdk_pixbuf-2.0.so.1403.0
Reading symbols from /usr/X11R6/lib/libGL.so.10.0...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.10.0
Reading symbols from /usr/X11R6/lib/libXxf86vm.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.5.0
Reading symbols from /usr/X11R6/lib/libdrm.so.2.6...done.
Loaded symbols for /usr/X11R6/lib/libdrm.so.2.6
Reading symbols from /usr/X11R6/lib/libXdamage.so.3.1...done.
Loaded symbols for /usr/X11R6/lib/libXdamage.so.3.1
Reading symbols from /usr/X11R6/lib/libXcomposite.so.3.0...done.
Loaded symbols for /usr/X11R6/lib/libXcomposite.so.3.0
Reading symbols from /usr/local/lib/libjson-glib-1.0.so.3.0...done.
Loaded symbols for /usr/local/lib/libjson-glib-1.0.so.3.0
Reading symbols from /usr/X11R6/lib/libXfixes.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.5.0
Reading symbols from /usr/local/lib/libcairo.so.9.3...done.
Loaded symbols for /usr/local/lib/libcairo.so.9.3
Reading symbols from /usr/local/lib/libpangoft2-1.0.so.1802.0...done.
Loaded symbols for /usr/local/lib/libpangoft2-1.0.so.1802.0
Reading symbols from /usr/X11R6/lib/libpixman-1.so.16.6...done.
Loaded symbols for /usr/X11R6/lib/libpixman-1.so.16.6
Reading symbols from /usr/local/lib/libglitz.so.2.0...done.
Loaded symbols for /usr/local/lib/libglitz.so.2.0
Reading symbols from /usr/local/lib/libpng.so.10.0...done.
Loaded symbols for /usr/local/lib/libpng.so.10.0
Reading symbols from /usr/X11R6/lib/libxcb-render-util.so.0.0...done.
Loaded symbols for /usr/X11R6/lib/libxcb-render-util.so.0.0
Reading symbols from /usr/X11R6/lib/libxcb-render.so.0.0...done.
Loaded symbols for /usr/X11R6/lib/libxcb-render.so.0.0
Reading symbols from /usr/X11R6/lib/libXrender.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.5.0
Reading symbols from /usr/local/lib/libpango-1.0.so.1802.0...done.
Loaded symbols for /usr/local/lib/libpango-1.0.so.1802.0
Reading symbols from /usr/X11R6/lib/libfontconfig.so.7.0...done.
Loaded symbols for /usr/X11R6/lib/libfontconfig.so.7.0
Reading symbols from /usr/X11R6/lib/libfreetype.so.17.2...done.
Loaded symbols for /usr/X11R6/lib/libfreetype.so.17.2
Reading symbols from
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/clutter/.libs/libexpat.so.9.0...done.
Loaded symbols for
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/clutter/.libs/libexpat.so.9.0
Reading symbols from
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/clutter/.libs/libm.so.5.2...done.
Loaded symbols for
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/clutter/.libs/libm.so.5.2
Reading symbols from /usr/X11R6/lib/libXext.so.11.0...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.11.0
Reading symbols from /usr/X11R6/lib/libX11.so.14.0...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.14.0
Reading symbols from /usr/X11R6/lib/libxcb.so.2.2...done.
Loaded symbols for /usr/X11R6/lib/libxcb.so.2.2
Reading symbols from /usr/X11R6/lib/libpthread-stubs.so.0.0...done.
Loaded symbols for /usr/X11R6/lib/libpthread-stubs.so.0.0
Reading symbols from /usr/X11R6/lib/libXau.so.9.0...done.
Loaded symbols for /usr/X11R6/lib/libXau.so.9.0
Reading symbols from /usr/X11R6/lib/libXdmcp.so.10.0...done.
Loaded symbols for /usr/X11R6/lib/libXdmcp.so.10.0
Reading symbols from /usr/local/lib/libgio-2.0.so.1803.0...done.
Loaded symbols for /usr/local/lib/libgio-2.0.so.1803.0
Reading symbols from /usr/local/lib/libgobject-2.0.so.1803.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.1803.0
Reading symbols from /usr/local/lib/libgmodule-2.0.so.1803.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.1803.0
Reading symbols from
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/clutter/.libs/libz.so.4.1...done.
Loaded symbols for
/usr/obj/ports/clutter-1.4.0/clutter-1.4.0/clutter/.libs/libz.so.4.1
Reading symbols from /usr/local/lib/libgthread-2.0.so.1803.0...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.1803.0
Reading symbols from /usr/local/lib/libglib-2.0.so.1803.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.1803.0
Reading symbols from /usr/local/lib/libpcre.so.2.3...done.
Loaded symbols for /usr/local/lib/libpcre.so.2.3
Reading symbols from /usr/local/lib/libintl.so.5.0...done.
Loaded symbols for /usr/local/lib/libintl.so.5.0
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Symbols already loaded for /usr/lib/libpthread.so.12.1
Reading symbols from /usr/lib/libc.so.56.0...done.
Loaded symbols for /usr/lib/libc.so.56.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
Reading symbols from /usr/X11R6/lib/modules/dri/i915_dri.so...done.
Loaded symbols for /usr/X11R6/lib/modules/dri/i915_dri.so
Reading symbols from /usr/X11R6/lib/libdrm_intel.so.1.3...done.
Loaded symbols for /usr/X11R6/lib/libdrm_intel.so.1.3
#0  intelCalcViewport (ctx=0x7e48b000) at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/i915/i915_state.c:380
380        m[MAT_SX] = v[MAT_SX];
(gdb) bt
#0  intelCalcViewport (ctx=0x7e48b000) at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/i915/i915_state.c:380
#1  0x0d5b5922 in i915Viewport (ctx=0x7e48b000, x=0, y=0, width=1, height=1)
    at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/i915/i915_state.c:396
#2  0x0d6b095f in _mesa_set_viewport () from
/usr/X11R6/lib/modules/dri/i915_dri.so
#3  0x0d69c92b in _mesa_check_init_viewport () from
/usr/X11R6/lib/modules/dri/i915_dri.so
#4  0x0d69cb27 in _mesa_make_current () from
/usr/X11R6/lib/modules/dri/i915_dri.so
#5  0x0d5ab131 in intelMakeCurrent (driContextPriv=0x811e4a00,
driDrawPriv=0x816f1580, driReadPriv=0x816f1580)
    at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/intel/intel_context.c:892
#6  0x0d5ecaed in driBindContext (pcp=0x811e4a00, pdp=0x816f1580,
prp=0x816f1580)
    at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/common/dri_util.c:220
#7  0x060927ac in dri2BindContext () from /usr/X11R6/lib/libGL.so.10.0
#8  0x06093d7b in glXMakeCurrentReadSGI () from /usr/X11R6/lib/libGL.so.10.0
#9  0x08868644 in clutter_backend_glx_create_context (backend=0x85d24010,
error=0xcfbece94) at clutter-backend-glx.c:640
#10 0x087ada04 in _clutter_backend_create_context (backend=0x85d24010,
error=0xcfbece94) at ./clutter-backend.c:365
#11 0x087cd25d in _clutter_feature_init (error=0xcfbece94) at
./clutter-feature.c:106
#12 0x087daa08 in clutter_init_real (error=0xcfbece94) at ./clutter-main.c:1616
#13 0x087daed2 in post_parse_hook (context=0x85d27bc0, group=0x85d27d00,
data=0x0, error=0xcfbece94) at ./clutter-main.c:1837
#14 0x049e4381 in g_option_context_parse () from
/usr/local/lib/libglib-2.0.so.1803.0
#15 0x087db1e6 in clutter_parse_args (argc=0xcfbecf40, argv=0xcfbecf44) at
./clutter-main.c:2067
#16 0x087db2a3 in clutter_init (argc=0xcfbecf40, argv=0xcfbecf44) at
./clutter-main.c:2120
#17 0x1c01cd6a in test_clip_main (argc=1, argv=0xcfbecfd0) at test-clip.c:295
#18 0x1c00b9e4 in main (argc=2, argv=0xcfbecfcc) at test-main.c:31
(gdb) bt full
#0  intelCalcViewport (ctx=0x7e48b000) at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/i915/i915_state.c:380
        v = (const GLfloat *) 0x3f000000
        depthScale = 0
        m = (GLfloat *) 0x816f1290
        yScale = 0
        yBias = 0
#1  0x0d5b5922 in i915Viewport (ctx=0x7e48b000, x=0, y=0, width=1, height=1)
    at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/i915/i915_state.c:396
No locals.
#2  0x0d6b095f in _mesa_set_viewport () from
/usr/X11R6/lib/modules/dri/i915_dri.so
No symbol table info available.
#3  0x0d69c92b in _mesa_check_init_viewport () from
/usr/X11R6/lib/modules/dri/i915_dri.so
No symbol table info available.
#4  0x0d69cb27 in _mesa_make_current () from
/usr/X11R6/lib/modules/dri/i915_dri.so
No symbol table info available.
#5  0x0d5ab131 in intelMakeCurrent (driContextPriv=0x811e4a00,
driDrawPriv=0x816f1580, driReadPriv=0x816f1580)
    at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/intel/intel_context.c:892
        fb = (struct gl_framebuffer *) 0x8838c800
        readFb = (struct gl_framebuffer *) 0x8838c800
        intel = (struct intel_context *) 0x7e48b000
#6  0x0d5ecaed in driBindContext (pcp=0x811e4a00, pdp=0x816f1580,
prp=0x816f1580)
    at
/usr/xenocara/lib/libGL/dri/i915/../../../../dist/Mesa/src/mesa/drivers/dri/common/dri_util.c:220
        psp = (__DRIscreen *) 0x8844f500
        __func__ = "driBindContext"
#7  0x060927ac in dri2BindContext () from /usr/X11R6/lib/libGL.so.10.0
No symbol table info available.
#8  0x06093d7b in glXMakeCurrentReadSGI () from /usr/X11R6/lib/libGL.so.10.0
No symbol table info available.
#9  0x08868644 in clutter_backend_glx_create_context (backend=0x85d24010,
error=0xcfbece94) at clutter-backend-glx.c:640
        backend_glx = (ClutterBackendGLX *) 0x85d24010
        backend_x11 = (ClutterBackendX11 *) 0x85d24010
        config = 0x8ae27200
        is_direct = 1
        root_xwin = 186
        attrs = {background_pixmap = 4294967295, background_pixel = 760709324,
border_pixmap = 3485387912, border_pixel = 0, bit_gravity = 678971504, 
  win_gravity = 1, backing_store = -809579352, backing_planes = 1,
backing_pixel = 0, save_under = 678991272, event_mask = -809579320, 
  do_not_propagate_mask = 142266010, override_redirect = 1, colormap =
14680066, cursor = 141922304}
        xvisinfo = (XVisualInfo *) 0x87059800
        xdisplay = (Display *) 0x8b9cf6b0
        major = 1
        minor = 4
        dummy_drawable = 14680068
#10 0x087ada04 in _clutter_backend_create_context (backend=0x85d24010,
error=0xcfbece94) at ./clutter-backend.c:365
        klass = (ClutterBackendClass *) 0x8a5c4600
        __PRETTY_FUNCTION__ = "_clutter_backend_create_context"
#11 0x087cd25d in _clutter_feature_init (error=0xcfbece94) at
./clutter-feature.c:106
        context = (ClutterMainContext *) 0x8b080580
#12 0x087daa08 in clutter_init_real (error=0xcfbece94) at ./clutter-main.c:1616
        ctx = (ClutterMainContext *) 0x8b080580
---Type <return> to continue, or q <return> to quit---
        backend = (ClutterBackend *) 0x85d24010
#13 0x087daed2 in post_parse_hook (context=0x85d27bc0, group=0x85d27d00,
data=0x0, error=0xcfbece94) at ./clutter-main.c:1837
        clutter_context = (ClutterMainContext *) 0x8b080580
        backend = (ClutterBackend *) 0x85d24010
        __PRETTY_FUNCTION__ = "post_parse_hook"
#14 0x049e4381 in g_option_context_parse () from
/usr/local/lib/libglib-2.0.so.1803.0
No symbol table info available.
#15 0x087db1e6 in clutter_parse_args (argc=0xcfbecf40, argv=0xcfbecf44) at
./clutter-main.c:2067
        option_context = (GOptionContext *) 0x85d27bc0
        clutter_group = (GOptionGroup *) 0x85d27d00
        cogl_group = (GOptionGroup *) 0x85d27e40
        error = (GError *) 0x0
        ret = 1
#16 0x087db2a3 in clutter_init (argc=0xcfbecf40, argv=0xcfbecf44) at
./clutter-main.c:2120
        ctx = (ClutterMainContext *) 0x8b080580
        error = (GError *) 0x0
#17 0x1c01cd6a in test_clip_main (argc=1, argv=0xcfbecfd0) at test-clip.c:295
        data = {stage = 0x97f449f, hand = 0x297f4214, current_clip = {type =
2182971424, x1 = 77454288, y1 = -809578632, x2 = 1006674188, y2 = 696205844}, 
  clips = 0x297f422c}
        stub_actor = (ClutterActor *) 0x3c00bb60
        label = (ClutterActor *) 0x3c00bc5f
        file = (gchar *) 0x3c00a10c " \217"
#18 0x1c00b9e4 in main (argc=2, argv=0xcfbecfcc) at test-main.c:31
        module = (GModule *) 0x8adcb1a0
        unit_test = 0x821d80c0 "test-clip"
        main_symbol_name = 0x821d8020 "test_clip_main"
        func = 0x1c01cd52
        unit_test_main = (int (*)(int, char **)) 0x1c01cd52 <test_clip_main>
        ret = 37624313
(gdb) cerebrum:interactive {114} ^Dexit

Any help is much appreciated.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list