From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 75279] XCloseDisplay() takes one minute around nouveau_dri.so, freezing Firefox startup Date: Thu, 06 Mar 2014 03:14:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0418964745==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0418964745== Content-Type: multipart/alternative; boundary="1394075657.343F2a2A3.32000"; charset="us-ascii" --1394075657.343F2a2A3.32000 Date: Thu, 6 Mar 2014 03:14:17 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=75279 --- Comment #40 from Ilia Mirkin --- OK, so I'm obviously able to reproduce the use-after-free. Like I said, this logic is fairly subtle. I think the problem is that there's an implicit assumption that the fence has an external ref before someone waits on it. In the case of the current screen fence, that's not necessarily the case. I think the proper fix is to add a fence ref in the destructor around the wait. I'm going to think a bit more on this. -- You are receiving this mail because: You are the assignee for the bug. --1394075657.343F2a2A3.32000 Date: Thu, 6 Mar 2014 03:14:17 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 40 on bug 75279 from
OK, so I'm obviously able to reproduce the use-after-free. Like I said, this
logic is fairly subtle. I think the problem is that there's an implicit
assumption that the fence has an external ref before someone waits on it. In
the case of the current screen fence, that's not necessarily the case. I think
the proper fix is to add a fence ref in the destructor around the wait. I'm
going to think a bit more on this.


You are receiving this mail because:
  • You are the assignee for the bug.
--1394075657.343F2a2A3.32000-- --===============0418964745== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============0418964745==--