Bug 52609

Summary: [bug] Client demos can segfault with minimalist cursor themes
Product: Wayland Reporter: Joe Konno <joe.konno>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: brian.j.lovin, ullysses.a.eoff
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Joe Konno 2012-07-27 23:12:35 UTC
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
Comment 1 Philipp Brüschweiler 2012-08-13 20:18:19 UTC
The DND client has been fixed. Are there other clients which caused segfaults?
Comment 2 Kristian Høgsberg 2012-10-29 18:12:13 UTC
Closing this one as fixed.
Comment 3 Joe Konno 2012-11-09 18:34:01 UTC
Verified.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.