From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 44919] Wayland clients segfault
Date: Tue, 24 Jan 2012 01:21:56 +0000 [thread overview]
Message-ID: <bug-44919-502-suLSH05Llm@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-44919-502@http.bugs.freedesktop.org/>
https://bugs.freedesktop.org/show_bug.cgi?id=44919
--- Comment #8 from Ran Benita <ran234@gmail.com> 2012-01-23 17:21:56 PST ---
Sorry, here are some more details.
ran@ran:~$ uname -sr
Linux 3.2.1-1-ARCH
ran@ran:~$ lspci | grep nVi
01:00.0 VGA compatible controller: nVidia Corporation G94 [GeForce 9600 GT]
(rev a1)
ran@ran:~$ glxinfo | grep nouveau -A3
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV94
OpenGL version string: 2.1 Mesa 8.0-devel (git-c25e5300)
OpenGL shading language version string: 1.20
Mesa config:
--with-dri-drivers= --with-gallium-drivers=nouveau
--with-egl-platforms=drm,x11 --enable-gallium-egl
--enable-shared-dricore --enable-shared-glapi --enable-egl
--enable-gles2 --enable-glx-tls --enable-xcb --enable-texture-float
And the backtrace:
Core was generated by `./test_terminal'.
Program terminated with signal 11, Segmentation fault.
#0 st_framebuffer_validate (stfb=0x7f89888e1e60, st=<optimized out>) at
state_tracker/st_manager.c:186
186 int32_t new_stamp = p_atomic_read(&stfb->iface->stamp);
(gdb) bt
#0 st_framebuffer_validate (stfb=0x7f89888e1e60, st=<optimized out>) at
state_tracker/st_manager.c:186
#1 0x00007f8987a5ca28 in st_api_make_current (stapi=<optimized out>,
stctxi=0x1588910, stdrawi=<optimized out>, streadi=<optimized out>)
at state_tracker/st_manager.c:731
#2 0x00007f89879b47cf in driBindContext (pcp=<optimized out>, pdp=<optimized
out>, prp=<optimized out>)
at ../../../../src/mesa/drivers/dri/common/dri_util.c:330
#3 0x00007f898c1aba60 in dri2_make_current (drv=0x14a4a70, disp=0x149eb20,
dsurf=0x0, rsurf=0x0, ctx=0x14a5690) at egl_dri2.c:818
#4 0x00007f898c1a4d39 in eglMakeCurrent (dpy=0x149eb20, draw=0x0, read=0x0,
ctx=0x14a5690) at eglapi.c:502
#5 0x00000000004065b2 in context_use (ctx=0x149c700) at
src/output_context.c:589
#6 0x0000000000405206 in compositor_use (comp=0x146cf50) at src/output.c:936
#7 0x00000000004039e0 in setup_app (app=0x7fff094f6440) at
tests/test_terminal.c:224
#8 0x0000000000403b98 in main (argc=1, argv=0x7fff094f6588) at
tests/test_terminal.c:273
This only happens if eglMakeCurrent is called twice, which is the case in my
program and in wayland also (e.g. there's a call to eglMakeCurrent followed by
a call to cairo_egl_device_create, which also calls eglMakeCurrent).
Since we use the surfaceless extension the first call to
st_manager.c:st_api_make_current uses an incomplete buffer as a dummy (I
think?), so then:
(gdb) print stfb == &IncompleteFramebuffer
$11 = 1
In the next call the following check at st_manager.c:730 :
if (stdraw && stread) {
passes but:
(gdb) print stfb->iface
$28 = (struct st_framebuffer_iface *) 0x0
So there's a null dereference. I'm not familiar with mesa so I can't help with
a (correct) patch.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
next prev parent reply other threads:[~2012-01-24 1:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 3:42 [Bug 44919] New: Wayland clients segfault bugzilla-daemon
2012-01-19 3:47 ` [Bug 44919] " bugzilla-daemon
2012-01-19 9:22 ` bugzilla-daemon
2012-01-19 12:18 ` bugzilla-daemon
2012-01-20 10:51 ` bugzilla-daemon
2012-01-22 9:46 ` bugzilla-daemon
2012-01-22 10:20 ` bugzilla-daemon
2012-01-22 13:24 ` bugzilla-daemon
2012-01-24 1:21 ` bugzilla-daemon [this message]
2012-01-24 6:57 ` bugzilla-daemon
2012-01-24 14:15 ` bugzilla-daemon
2012-01-24 15:56 ` bugzilla-daemon
2012-01-25 9:23 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-44919-502-suLSH05Llm@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.