← Back to team overview

desktop-packages team mailing list archive

[Bug 1510941] Re: /usr/bin/Xorg:6:copy_overlap:sna_render_copy_boxes__overlap:gen7_render_copy_boxes:__sna_dri2_copy_region:dri2_copy_region

 

Launchpad has imported 30 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=91658.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2015-08-16T17:10:25+00:00 Dan Doel wrote:

Created attachment 117719
Xorg log from crash

I've been experiencing periodic Xorg segfaults on my laptop for some
time now. The odd thing is that it only appears to happen while playing
videos, and then only using Gnome's Totem video player (not vlc, not
HTML5 video in a browser).

Sometimes this results in being kicked back to a login screen. Others
the video and input seems to lock up, but the audio keeps playing,
forcing me to power off the laptop.

I have a core i5-2540M, and am using the integrated HD3000 graphics.

I'm attaching an Xorg log from the crash, containing a stack trace.

Please let me know if there's any further information needed to help
diagnose this.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/0

------------------------------------------------------------------------
On 2015-08-16T17:21:04+00:00 Chris Wilson wrote:

This looks like bug 91577 (hard to tell with the incorrect stack
traces). That was from mishandling an allocation failure.

Could you compile xf86-video-intel from
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/ with
./configure --enable-debug so that I know exactly what version you have
plus include a little more debugging information?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/1

------------------------------------------------------------------------
On 2015-08-16T17:57:33+00:00 Dan Doel wrote:

Oh sorry. Slipped my mind somehow.

I'm using xorg-x11-intel-drv-2.99.917-12.20150615 on Fedora 22.

I'll see if I can manage to install from git and crash again, though
(the trace I submitted is with the debug packages installed, but maybe
that isn't good enough).

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/2

------------------------------------------------------------------------
On 2015-08-16T18:36:00+00:00 Dan Doel wrote:

Created attachment 117720
Crash log with git driver

Attached the log after a crash with xf86-video-intel compiled from git.

% git log -1 --format="%H"
9b0ed16385ae076c262a2e09639822d9488ccf57

Does this look more helpful?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/3

------------------------------------------------------------------------
On 2015-08-16T19:38:20+00:00 Chris Wilson wrote:

Hmm, we have symbols, which is a good start! Looks like a different type
of confusion. Next step, could you compile with ./configure --enable-
debug=full and capture the debug log proceeding that event?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/4

------------------------------------------------------------------------
On 2015-08-16T20:15:31+00:00 Dan Doel wrote:

Created attachment 117722
Crash log with full debugging

Do you just need the Xorg.log.old from after the crash? Attached. (xz
compressed since it's huge.)

If you mean something else, you'll probably have to explain how to get
it.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/5

------------------------------------------------------------------------
On 2015-08-16T21:18:44+00:00 Chris Wilson wrote:

(In reply to Dan Doel from comment #5) 
> If you mean something else, you'll probably have to explain how to get it.

Perfect, thanks.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/6

------------------------------------------------------------------------
On 2015-08-17T06:57:36+00:00 Bitlord0xff wrote:

I experienced same issue as described (playing videos full screen
crashes X)(downstream bug report
https://bugzilla.redhat.com/show_bug.cgi?id=1252660 ) but trace look
different, is this the same issues as this?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/7

------------------------------------------------------------------------
On 2015-08-17T07:51:40+00:00 Chris Wilson wrote:

(In reply to (bitlord) from comment #7)
> I experienced same issue as described (playing videos full screen crashes
> X)(downstream bug report https://bugzilla.redhat.com/show_bug.cgi?id=1252660
> ) but trace look different, is this the same issues as this?

Missed you on irc, no this is a different issue, bug 91120.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/8

------------------------------------------------------------------------
On 2015-08-17T08:18:56+00:00 Bitlord0xff wrote:

(In reply to Chris Wilson from comment #8)
> (In reply to (bitlord) from comment #7)
> > I experienced same issue as described (playing videos full screen crashes
> > X)(downstream bug report https://bugzilla.redhat.com/show_bug.cgi?id=1252660
> > ) but trace look different, is this the same issues as this?
> 
> Missed you on irc, no this is a different issue, bug 91120.

I'll link it downstream.
Thank you! ;-)

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/9

------------------------------------------------------------------------
On 2015-08-17T20:00:41+00:00 Chris Wilson wrote:

Ok, I think I understand that assert and

commit 07eee812b2047642c76190d043ee4aa4ce338c64
Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Date:   Mon Aug 17 20:38:57 2015 +0100

    sna/dri2: Avoid pushing the triple buffer into the cache list twice

should undo the damage. Can you please update (git pull) and retest?
Hopefully we should be getting past that crash and back to the original
bug.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/10

------------------------------------------------------------------------
On 2015-08-17T20:49:55+00:00 Dan Doel wrote:

Created attachment 117740
Full debug log with patch

I still get crashes with this patch. New full debug log attached. Looks
like the same assertion failure.

I cut the first half of the log off (million lines) because I couldn't
compress it small enough. Hope that's all right.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/11

------------------------------------------------------------------------
On 2015-08-18T00:04:18+00:00 Dan Doel wrote:

Created attachment 117744
Full crash log for 07eee812b2047642c76190d043ee4aa4ce338c64

I found a much more reliable/quick way to produce the crash (using
Epiphany + Youtube), so here's a much smaller and complete log for a
crash with the latest git.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/12

------------------------------------------------------------------------
On 2015-08-18T08:25:36+00:00 Chris Wilson wrote:

Both of those are failures after a stale back buffer.

commit 79fc9a923cdfa4218868f4c371ca80fd40f41253
Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Date:   Tue Aug 18 09:21:20 2015 +0100

    sna/dri2: Immediately complete a stale swap if any are queued


Both of these patches are for very recent changes, so still onwards towards resolving the original issue...

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/13

------------------------------------------------------------------------
On 2015-08-18T14:27:20+00:00 Dan Doel wrote:

Created attachment 117766
Full crash log for 18e484502727f2e2e16138a3de5b6727f3879a2b

Similar assertion failure, new location. With all new git commits as of
this post.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/14

------------------------------------------------------------------------
On 2015-08-19T08:24:17+00:00 Bevan wrote:

Created attachment 117778
Another Xorg.log showing segfault (w/o debugging)

FWIW, it seems like I'm hitting the very same bug on ArchLinux with an
HD4000. This is my Xorg.log showing the segfault.

Using the latest git revision (18e4845) and enabling debugging I hit the
same assertion as shown above. Even compressed the log is too large so I
uploaded it somewhere else instead: http://homepages.uni-
paderborn.de/lass/crash-debug.log.xz

I can easily reproduce the assertion error by just using the chromium
web browser, as far as I can see without any video playback.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/15

------------------------------------------------------------------------
On 2015-08-19T14:22:41+00:00 Chris Wilson wrote:

Another go, now with more assertions:

commit dab1c0f159d74fc82618b88262e064010e6387ec
Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Date:   Tue Aug 18 23:27:22 2015 +0100

    sna/dri2: Move the pending swap from the buffer to the event
    
    To ease tracking of the next swap, stash it on the event (which is then
    reused) rather than the back buffer (which changes frequently).
    
    In addition, add debug flags and assertions to track event stages (such
    as making sure we do not decouple/free an event that we have sent a
    signal back to the client).

As always hopefully this gets us to the point of chasing down the
original bug!

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/16

------------------------------------------------------------------------
On 2015-08-19T15:07:53+00:00 Bevan wrote:

It seems like I now got the original segfault back again:
http://homepages.uni-paderborn.de/lass/crash-debug-8c59c5b.log.xz

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/17

------------------------------------------------------------------------
On 2015-08-19T15:29:35+00:00 Dan Doel wrote:

Created attachment 117786
Full crash log for 8c59c5ba4e368af2ee4a4a811ebf3934de7e4402

This commit removed my very easy reproduction method for the crash, so
the log is much bigger this time.

The assertion failure is also back in sna_dri2_schedule_swap.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/18

------------------------------------------------------------------------
On 2015-08-19T16:04:26+00:00 Chris Wilson wrote:

Ok, that may well be the original crash, stack trace looks similar
enough. So it is really a victim of the bug we were tracing anyway.

commit 8a59e85801cb0592eb2d0a074d9254d26a65240f
Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Date:   Wed Aug 19 16:39:11 2015 +0100

    sna/dri2: Initialise scratch.pScreen for copying

fixes the crash.

commit 6027bfc461c01838577be052d1a76ffc6906e3cc
Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Date:   Wed Aug 19 16:49:01 2015 +0100

    sna/dri2: Also track the front bo as an active buffer

should catch it happening.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/19

------------------------------------------------------------------------
On 2015-08-19T17:19:02+00:00 Dan Doel wrote:

Created attachment 117791
Crash log for 6027bfc461c01838577be052d1a76ffc6906e3cc

Here's a new crash log for the latest commit. Quite different this time.

It's not with full debugging enabled. I can try to get it to happen with
full debugging, but I was having trouble making it happen before the log
file got to several hundred megabytes.

Maybe I'm confused, though. Was one of those patches intended as a fix
for this bug, and this is a separate issue?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/20

------------------------------------------------------------------------
On 2015-08-19T17:26:52+00:00 Chris Wilson wrote:

The crash was just a result of the bug that I've been looking at in the
full debug logs, i.e. the crash itself was just a symptom of the same
underlying issue. (Though it was worth fixing by itself, we are still
looking for the root cause.) The second patch is trying to track down
where the confusion comes from.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/21

------------------------------------------------------------------------
On 2015-08-19T19:38:10+00:00 Dan Doel wrote:

Okay, I see.

Unfortunately, I'm still having trouble getting it to cause an error
during full debugging. I'm not sure if I just got lucky while I only had
normal debugging on, or if the full debugging somehow makes it less
likely for the problem to happen (if it were a timing issue, everything
seems to be running slower, for instance).

I'll continue trying.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/22

------------------------------------------------------------------------
On 2015-08-20T04:58:31+00:00 Dan Doel wrote:

Created attachment 117799
Full debug log for 6027bfc461c01838577be052d1a76ffc6906e3cc

Here's a full debug log for commit
6027bfc461c01838577be052d1a76ffc6906e3cc. I had to chop off the first
couple hundred thousand lines.

I'll start trying to get an error on the latest commit.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/23

------------------------------------------------------------------------
On 2015-08-20T06:02:29+00:00 Dan Doel wrote:

So, I haven't had any luck producing an error with the latest patches
(84854419471ebd338ae20d411e44f256be569d1a). I've tried a lot of the
things that were causing exits previously, and X is still running. Does
it make sense to you that one of your changes has fixed the bug?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/24

------------------------------------------------------------------------
On 2015-08-20T08:40:23+00:00 Chris Wilson wrote:

That was the intent, yes. Keep running with --enable-debug for a few
days as these races can be hard to trigger.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/25

------------------------------------------------------------------------
On 2015-08-20T14:32:27+00:00 Dan Doel wrote:

Will do. Thanks for your help.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/26

------------------------------------------------------------------------
On 2015-09-05T03:14:48+00:00 Dan Doel wrote:

Still no more crashes. Seems like that last patch did the trick.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/27

------------------------------------------------------------------------
On 2015-09-05T22:36:20+00:00 Bevan wrote:

I've been running recent versions with debug enabled and couldn't
reproduce this anymore, too.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/28

------------------------------------------------------------------------
On 2015-09-06T12:30:59+00:00 Chris Wilson wrote:

Let's truly test it by marking it as resolved then! Thanks for the
testing and feedback.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1510941/comments/29


** Changed in: xorg-server
       Status: Unknown => Fix Released

** Changed in: xorg-server
   Importance: Unknown => Medium

** Bug watch added: Red Hat Bugzilla #1252660
   https://bugzilla.redhat.com/show_bug.cgi?id=1252660

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1510941

Title:
  /usr/bin/Xorg:6:copy_overlap:sna_render_copy_boxes__overlap:gen7_render_copy_boxes:__sna_dri2_copy_region:dri2_copy_region

Status in X.Org X server:
  Fix Released
Status in xserver-xorg-video-intel package in Ubuntu:
  New

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem
  regarding xorg-server.  This problem was most recently seen with
  version 2:1.17.2-1ubuntu9, the problem page at
  https://errors.ubuntu.com/problem/67526ca76c90e73ebb6a6774e6e6b0dda99f2428
  contains more details.

To manage notifications about this bug go to:
https://bugs.launchpad.net/xorg-server/+bug/1510941/+subscriptions


References