From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 79823] [NV30/gallium] Mozilla apps freeze on startup with nouveau-dri-10.2.1 libs on dual-screen Date: Thu, 19 Jun 2014 08:18:30 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0139123827==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0139123827== Content-Type: multipart/alternative; boundary="1403165910.b7E8eF41.10242"; charset="us-ascii" --1403165910.b7E8eF41.10242 Date: Thu, 19 Jun 2014 08:18:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=79823 --- Comment #27 from Ilia Mirkin --- (In reply to comment #26) > Created attachment 101338 [details] > GDB log with "avoid dangling..." patch > > /dev/dri/card0 on fd #4 closed, > /dev/dri/card0 on fd #5 remained open. So... for some *unknown* reason, the thing decides to create two screens. Fine. Now we have this thing which reuses screens for the same device... makes sense. But after it tries to close one of the screens, it also closes the fd that it used to create the screen with. Reasonable enough. However that fd is the one that's being used by the device. Perhaps it should be dup'ing the fd and doing all the ioctl's on that, so that this sort of thing doesn't happen. Maarten, thoughts? -- You are receiving this mail because: You are the assignee for the bug. --1403165910.b7E8eF41.10242 Date: Thu, 19 Jun 2014 08:18:30 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 27 on bug 79823 from
(In reply to comment #26)
> Created attachment 101338 [details]
> GDB log with "avoid dangling..." patch
> 
> /dev/dri/card0 on fd #4 closed,
> /dev/dri/card0 on fd #5 remained open.

So... for some *unknown* reason, the thing decides to create two screens. Fine.
Now we have this thing which reuses screens for the same device... makes sense.
But after it tries to close one of the screens, it also closes the fd that it
used to create the screen with. Reasonable enough. However that fd is the one
that's being used by the device.

Perhaps it should be dup'ing the fd and doing all the ioctl's on that, so that
this sort of thing doesn't happen. Maarten, thoughts?


You are receiving this mail because:
  • You are the assignee for the bug.
--1403165910.b7E8eF41.10242-- --===============0139123827== 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 --===============0139123827==--