[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: segfault in multithread OpenGL app on i915
From:       "Nickolay Kolchin" <nbkolchin () gmail ! com>
Date:       2006-09-29 23:50:13
Message-ID: 2636500f0609291650w52fe1b6ej22cd35a136d8e6e2 () mail ! gmail ! com
[Download RAW message or body]

On 9/30/06, Brian Paul <brian.paul@tungstengraphics.com> wrote:
> Nickolay Kolchin wrote:
> > Hello,
> >
> > I have a weird problem with multithread application on i915 chipset
> > (i810 DRI driver). Application segfaults when trying to use OpenGL
> > functions from second thread.
> >
> > All necessary initialization is perfomed in application, ie
> > XInitThreads, etc.
> >
> > Tested on Suse 10.1 (xorg 6.8, 20050225 i810 driver) and Gentoo
> > LiveDVD (xorg 7.0, 1.4.2 i810 driver).
> >
> > This code works fine with NVidia drivers. (for several years)
> >
> > Is this a driver bug? a Mesa bug? a well-known bug that nobody is
> > going to fix in near future? Or this is my programming error?
>
> Have you tried the Mesa/progs/xdemos/glthreads.c program?
>
> It's pretty simple, but might be a good cross-check.
>
> In my experience, Xlib's thread safety is pretty fragile.  Even with
> XInitThreads(), XLock/UnlockDisplay(), etc. it's hard to get threaded
> apps working reliably.
>

Tested under Suse. glthreads also segfaults. :(

--
Nickolay

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic