[Wayland-bugs] [Bug 766341] Do not rely on memfd as it requires a fairly recent kernel
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu May 12 19:00:16 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766341
Simon McVittie <simon.mcvittie at collabora.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon.mcvittie at collabora.co
| |.uk
--- Comment #5 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
(In reply to Ray Strode [halfline] from comment #4)
> Emanuele if you don't have an #ifdef won't it fail to build because of the
> #include <linux/memfd.h> ?
#ifdef protects you from failing to compile with an old libc, a runtime
fallback on ENOSYS protects you from failing to run with an old kernel. They
complement each other. Whether you need neither, one or both depends on how
long ago the syscall was added to libc and the kernel.
(In reply to Ray Strode [halfline] from comment #3)
> reintroducing that code would reintroduce the bug the commit was addressing,
> right ?
>From Bug #761095:
"If it fills then desktop will start crashing with SIGBUS errors."
This is obviously not ideal, but seems better than crashing immediately? :-)
(In reply to Ray Strode [halfline] from comment #3)
> wayland is a chance to get away from technical baggage, so it seems a little
> strange to me to try to work on platforms that don't offer features that
> have been around for years.
memfds were new in Linux 3.17 (~ 18 months old) which is really fairly new.
Distributions typically try to support running release N on the kernel from
release N-1, because otherwise upgrading is a pain (if there's a regression in
the new kernel on your hardware, it's desirable to be able to boot with the old
one). In particular, in Debian 9 we're hoping to have GNOME defaulting to
Wayland, but if that crashes horribly under the 3.16 kernel from Debian 8, it's
unhelpful.
The other factor that makes support for older kernels desirable is that outside
the x86 + nVidia/AMD/Intel desktop hardware bubble, it often isn't practical to
use a new kernel, because hardware frequently doesn't work with a mainline
kernel, and hardware-vendor kernels are usually something rather old patched to
within an inch of its life. This is not a desirable situation, but
unfortunately it's the situation the industry is in right now :-(
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160512/0c0f98b1/attachment.html>
More information about the wayland-bugs
mailing list