[Wayland-bugs] [Bug 73066] New: Segmentation fault in click_to_activate_binding (shell.c, line 4481 for weston 1.3.1)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 27 05:25:12 PST 2013


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

          Priority: medium
            Bug ID: 73066
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: Segmentation fault in click_to_activate_binding
                    (shell.c, line 4481 for weston 1.3.1)
          Severity: minor
    Classification: Unclassified
                OS: Linux (All)
          Reporter: florian.graetz at ebohmann.de
          Hardware: x86 (IA32)
            Status: NEW
           Version: 1.3.0
         Component: weston
           Product: Wayland

When I click into the black screen of the compositor, it fails with a
segmentation fault in line 4481 in shell.c:

activate_binding(seat, data, seat->pointer->focus->surface);

In my scenario, focus is null. I understand, that this is propably caused by an
improperly (and self-written) desktop shell. However, a good practice would be
a) either to guarantee, that focus is non-null, whenever this function is
called, or
b) to check focus on null and logging an expressive error message instead of
seg-faulting.

Regards, Florian.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20131227/5ef7e037/attachment.html>


More information about the Wayland-bugs mailing list