http://bugs.freedesktop.org/show_bug.cgi?id=13541

           Summary: *_dri.so unloaded prematurely by nested open/close
                    display calls
           Product: Mesa
           Version: CVS
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When dri_glx.c:OpenDisplay is called for a driver that is already loaded the
function returns a pointer to the library without incrementing its reference
count. This can come from nested calls in one thread or from multiple threads
within a process. Unfortunately the first close works its way down to the
dlclose in driDestroyDisplay and the library is unloaded which invalidates
other references to its contents.

The attached patch amends the function to bump the reference count for driver
libraries before returning a pointer to them.


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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to