Under certain circumstances (when /dev/dri/card* is not readable for a user) libGL may cause a double free. Some versions of glibc will catch this situation now. The attached patch will fix this problem.
Created attachment 985 [details] [review] Trivial fix Please apply to lib/GL/glx/glxext.c
applied, thanks.
Created attachment 1013 [details] [review] [FIXED_X11R68x] Improved fix The previous patch (attachment 985 [details] [review]) was not complete. If the drm device cannot be opened other things may go wrong because some variables never get set. This patch supersedes the previous one. It is more complete.
Sorry to reopen this bug. Unfortunately my previous fix wasn't complete. Please reverse patch from attachment #985 [details] [review] and apply 1013 instead. Thanks.
*** Bug 1531 has been marked as a duplicate of this bug. ***
old one backed out, new one applied.
Comment on attachment 1013 [details] [review] [FIXED_X11R68x] Improved fix Approved in the 2004-12-06 release-wranglers conference call. Please do not commit it yourself, I'll do that later today...
Comment on attachment 1013 [details] [review] [FIXED_X11R68x] Improved fix Patch checked-in into X11R6.8.x stable branch: /cvs/xorg/xc/ChangeLog,v <-- ChangeLog new revision: 1.365.2.56; previous revision: 1.365.2.55 cvs commit: Using deprecated info format strings. Convert your scripts to use the new argument format and remove '1's from your info file format strings. /cvs/xorg/xc/extras/Mesa/src/mesa/drivers/dri/common/dri_util.c,v <-- dri_util.c new revision: 1.1.1.3.2.1; previous revision: 1.1.1.3 cvs commit: Using deprecated info format strings. Convert your scripts to use the new argument format and remove '1's from your info file format strings. /cvs/xorg/xc/lib/GL/glx/glxext.c,v <-- glxext.c new revision: 1.5.4.1; previous revision: 1.5 cvs commit: Using deprecated info format strings. Convert your scripts to use the new argument format and remove '1's from your info file format strings. Mailing the commit message to xorg-commit@lists.freedesktop.org...
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.