From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 97909] X-Plane 10 crashes with SIGSEGV on radeonsi
Date: Fri, 04 Nov 2016 20:20:49 +0000 [thread overview]
Message-ID: <bug-97909-502-Hn0dwn5nuO@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-97909-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 1481 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=97909
--- Comment #5 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Okay, so I could reproduce this after all with the web demo.
There is a bug in X-Plane and also questionable behaviour of the driver. The
bug in X-Plane is that it uses GL_AMD_pinned_memory with a size that is not a
multiple of a page; as per the spec, the driver is allowed to reject that, and
we do (apparently unlike the closed source driver...). X-Plane doesn't check
this error condition, and continues rendering, hence the crash, which would
also happen with a simple sequence of:
glGenBuffers(1, &bo);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, bo);
glDrawElements(...);
Somewhat surprisingly, the OpenGL spec never states that a draw call that goes
outside the element/index buffer should flag a GL_INVALID_OPERATION. There is
also no mention of this in the GL_ARB_robust_buffer_access_behavior extension,
which is surprising.
The patch you provide may or may not go in the right direction - I'm not sure.
If we want to check that, we should do it in api_validate.c, but I'm not
convinced that we should. Meanwhile, that check wouldn't properly fix the issue
in X-Plane. To work around the bug in X-Plane, you need to run with:
MESA_EXTENSION_OVERRIDE=-GL_AMD_pinned_memory ./X-Plane-x86_64 --force_run
which will work with an unmodified driver.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2256 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-11-04 20:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 23:06 [Bug 97909] X-Plane 10 crashes with SIGSEGV on radeonsi bugzilla-daemon
2016-09-23 23:07 ` bugzilla-daemon
2016-09-23 23:08 ` bugzilla-daemon
2016-09-28 13:59 ` bugzilla-daemon
2016-10-25 3:59 ` bugzilla-daemon
2016-11-04 20:20 ` bugzilla-daemon [this message]
2016-11-04 21:05 ` bugzilla-daemon
2016-11-04 21:07 ` bugzilla-daemon
2017-11-24 21:14 ` bugzilla-daemon
2017-12-29 16:31 ` bugzilla-daemon
2018-04-12 2:06 ` bugzilla-daemon
2018-04-12 6:05 ` bugzilla-daemon
2018-04-12 6:53 ` bugzilla-daemon
2018-04-12 7:45 ` bugzilla-daemon
2018-04-12 11:32 ` bugzilla-daemon
2018-04-12 16:46 ` bugzilla-daemon
2018-06-10 17:42 ` bugzilla-daemon
2018-08-31 5:59 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-97909-502-Hn0dwn5nuO@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox