https://bugs.kde.org/show_bug.cgi?id=429967

--- Comment #4 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
mmap() can fail with EINVAL in the following cases

       EINVAL We don't like addr, length, or offset (e.g., they are too
              large, or not aligned on a page boundary).

       EINVAL (since Linux 2.6.12) length was 0.

       EINVAL flags contained none of MAP_PRIVATE, MAP_SHARED, or
              MAP_SHARED_VALIDATE.

The relevant code in qwaylandshmbackingstore.cpp

    uchar *data = (uchar *)
            mmap(nullptr, alloc, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);

so, it's most likely that the specified length is either 0 or it exceeds the
limits. It's hard to say without being able to reproduce the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to