Summary: | Weston (1.8.92) segfaults during tear-down due to deletion of NULL `backend`, when using RPi backend | ||
---|---|---|---|
Product: | Wayland | Reporter: | John Sadler <deathofathousandpapercuts> |
Component: | weston | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Patch to prevent segfault in teardown when using RPi backend |
commit 76287896408841428804ab94dce2adb8b0b896e3 Author: John Sadler <deathofathousandpapercuts@gmail.com> Date: Sat Sep 5 15:01:40 2015 +0100 rpi: prevent segfault on shut-down due to NULL backend |
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.
Created attachment 118088 [details] Patch to prevent segfault in teardown when using RPi backend When running with the RPi backend, Weston sefaults during shutdown. This is due to the fact that `compositor->backend` is never initialised, and there is no NULL check prior to calling `destroy()`. I'm attaching a small patch that fixes the issue by making `rpi_backend_create()` intialise `compositor->backend` - just like the X11 backend does. Please consider this patch for inclusion on master.