Bug 72610 - SIGSEGV: ALT-TAB crashes Weston in surface_free_unused_subsurface_views(...)
Summary: SIGSEGV: ALT-TAB crashes Weston in surface_free_unused_subsurface_views(...)
Status: VERIFIED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: Other All
: medium critical
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-11 18:52 UTC by U. Artie Eoff
Modified: 2014-01-06 20:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Weston segfault gdb backtrace (19.04 KB, text/plain)
2013-12-11 18:52 UTC, U. Artie Eoff
Details

Description U. Artie Eoff 2013-12-11 18:52:18 UTC
Created attachment 90620 [details]
Weston segfault gdb backtrace

While running the weston-nested demo client (with eglSwapInterval 0), using <ALT>+<TAB> causes Weston to crash with the following output:

[10:43:27.548] caught signal: 11
[10:43:27.548]   [000000000040f55f]  --  (weston)
[10:43:27.548]   [000000000040f60b]  --  (weston)
[10:43:27.548]   [0000003a9200efa0]  --  (/lib64/libpthread.so.0)
[10:43:27.548]   [00007fa361fcc9d4]  wl_list_remove  (/home/uartie/Work/wayland/install/lib/libwayland-server.so.0)
[10:43:27.548]   [000000000040a811]  weston_view_destroy  (weston)
[10:43:27.548]   [000000000040b3f1]  --  (weston)
[10:43:27.548]   [000000000040b8af]  --  (weston)
[10:43:27.548]   [000000000040a801]  weston_view_destroy  (weston)
[10:43:27.548]   [00007fa35fe4de77]  --  (/home/uartie/Work/wayland/install/lib/weston/desktop-shell.so)
[10:43:27.548]   [00007fa35fe4e05b]  --  (/home/uartie/Work/wayland/install/lib/weston/desktop-shell.so)
[10:43:27.549]   [00000000004129c4]  notify_modifiers  (weston)
[10:43:27.549]   [0000000000412a40]  --  (weston)
[10:43:27.549]   [0000000000413069]  notify_key  (weston)
[10:43:27.549]   [00007fa361d8a1d8]  --  (/home/uartie/Work/wayland/install/lib/weston/drm-backend.so)
[10:43:27.549]   [00007fa361d8a714]  --  (/home/uartie/Work/wayland/install/lib/weston/drm-backend.so)
[10:43:27.549]   [00007fa361d8a82b]  --  (/home/uartie/Work/wayland/install/lib/weston/drm-backend.so)
[10:43:27.549]   [00007fa361d8a9b6]  --  (/home/uartie/Work/wayland/install/lib/weston/drm-backend.so)
[10:43:27.549]   [00007fa361fc92d8]  --  (/home/uartie/Work/wayland/install/lib/libwayland-server.so.0)
[10:43:27.549]   [00007fa361fc9c89]  wl_event_loop_dispatch  (/home/uartie/Work/wayland/install/lib/libwayland-server.so.0)
[10:43:27.549]   [000000000040bb19]  --  (weston)
[10:43:27.549]   [000000000040bcd6]  weston_output_finish_frame  (weston)
[10:43:27.549]   [00007fa361d83b49]  --  (/home/uartie/Work/wayland/install/lib/weston/drm-backend.so)
[10:43:27.549]   [00007fa36130a1c4]  drmHandleEvent  (/home/uartie/Work/wayland/install/lib/libdrm.so.2)
[10:43:27.549]   [00007fa361d84fc2]  --  (/home/uartie/Work/wayland/install/lib/weston/drm-backend.so)
[10:43:27.549]   [00007fa361fc92d8]  --  (/home/uartie/Work/wayland/install/lib/libwayland-server.so.0)
[10:43:27.549]   [00007fa361fc9c89]  wl_event_loop_dispatch  (/home/uartie/Work/wayland/install/lib/libwayland-server.so.0)
[10:43:27.549]   [00007fa361fc7acd]  wl_display_run  (/home/uartie/Work/wayland/install/lib/libwayland-server.so.0)
[10:43:27.549]   [00000000004100b2]  --  (weston)
[10:43:27.549]   [0000003a91821b75]  __libc_start_main  (/lib64/libc.so.6)
[10:43:27.549]   [0000000000406f89]  --  (weston)
Trace/breakpoint trap

See the attached gdb backtrace for more details.
Comment 1 U. Artie Eoff 2013-12-11 18:52:55 UTC
Reproduced with:

wayland (master) heads/master-0-g1a58c7f
drm (master) libdrm-2.4.50-0-g4c5de72
mesa (master) heads/master-0-g1e71493
libva (master) heads/master-0-g73a11b3
intel-driver (master) heads/master-0-g9d0bd94
weston (master) heads/master-0-g1aaf3e4
Comment 2 Kristian Høgsberg 2014-01-02 00:11:15 UTC
Backing the new alt-tab feature out:


commit 8662349394fc4d14389c973c3f00e3d580ed5b4c
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Wed Jan 1 15:59:36 2014 -0800

    shell.c: Back out alt-tab functionality
    
    This is still fairly unstable, causes lockups with fullscreen and exposay,
    leaves small preview surfaces on-screen if used on the same modifier as
    mod-tab.  We also only need on mod-tab implementation so lets see if we
    can consolidate the current and this alt-tab implementation in 1.5.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=72610


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.