[Wayland-bugs] [Bug 52609] New: [bug] Client demos can segfault with minimalist cursor themes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 27 23:12:35 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=52609

             Bug #: 52609
           Summary: [bug] Client demos can segfault with minimalist cursor
                    themes
    Classification: Unclassified
           Product: Wayland
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: weston
        AssignedTo: wayland-bugs at lists.freedesktop.org
        ReportedBy: joe.konno at linux.intel.com


SUMMARY

By forcing Weston-DRM to launch with `whiteglass` or another minimalist X
cursor theme, launched client demos can segfault during user interaction. This
is because they wrongly assume that any cursor theme contains all the cursors
it needs-- even if they do not exist on the filesystem.

Ideally, the clients should do cursor existence checks to avoid such segfaults.


CODE

The DnD client demo is Exhibit A.


REFERENCE(S)

https://bbs.archlinux.org/viewtopic.php?pid=1122238#p1122238


REPRODUCTION

0. Install the `whiteglass` Xcursor theme (on Ubuntu, "xcursor-themes" package)

1. Set a symlink to ensure it is loaded
  ln -s /usr/share/icons/whiteglass/cursors $HOME/.icons/default

2. Launch Weston-DRM
  weston-launch

3. Launch Weston-Terminal

4. From Weston-Terminal, launch the "dnd" client demo

5. Click a shape in the new window

6. See segfault

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Wayland-bugs mailing list