Subject: Re: mesa-dri-6.5.3 + question
To: None <tech-x11@netbsd.org>
From: Yorick Hardy <yhardy@uj.ac.za>
List: tech-x11
Date: 05/21/2007 10:18:21
This is a multi-part message in MIME format.
--------------060904090601000304090605
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

This happens in drm_close. I am not sure that
this should cause an error.

Does the attached patch help?
(Not the X server crash, just the drm close problem.)

> You may want to try running the X server with Options "NoTrapSignals"
> "Enable" in your
> "ServerFlags" section and turn on DRI debugging to get more information.
> 
> 
> The "can't find authenticator" simply means, IIRC, that the X server
> making the request is no longer running. ;)  For instance, this can
> happen if the X server makes an authentication request and then dies
> because you have no core pointer device (assuming you don't configure
> it that way on purpose, of course).
> 
> If you send DRI debug output from your message buffer and an Xorg log,
> we could probably help more.
> 
> Regards,
> 
> --Blair

-- 
Kind regards,

Yorick Hardy

--------------060904090601000304090605
Content-Type: text/plain;
 name="drm_fops.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="drm_fops.patch"

--- sys/dev/drm/drm_fops.c.orig	2007-05-21 10:08:10.000000000 +0200
+++ sys/dev/drm/drm_fops.c	2007-05-21 10:11:09.000000000 +0200
@@ -64,7 +64,7 @@
 	 * NetBSD only calls drm_close once, so this frees
 	 * resources earlier.
 	 */
-			if (pfind(priv->pid) == NULL) {
+			if (priv->pid != pid && pfind(priv->pid) == NULL) {
 				drm_close_pid(dev, priv, priv->pid);
 				restart = 1;
 				break;

--------------060904090601000304090605--