Bug 1829212 - [abrt] sway: wl_list_insert(): sway killed by SIGSEGV
Summary: [abrt] sway: wl_list_insert(): sway killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wlroots
Version: 32
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Till Hofmann
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:210d17ce1b65b7db751c0878242...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-29 08:40 UTC by Michal Halenka
Modified: 2020-06-03 01:49 UTC (History)
8 users (show)

Fixed In Version: wlroots-0.10.1-2.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-03 01:49:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (37.46 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: core_backtrace (11.73 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: cpuinfo (2.45 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: dso_list (7.84 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: environ (1.81 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: exploitable (95 bytes, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: limits (1.29 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: maps (64.55 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: mountinfo (2.98 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: open_fds (11.35 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details
File: proc_pid_status (1.35 KB, text/plain)
2020-04-29 08:40 UTC, Michal Halenka
no flags Details

Description Michal Halenka 2020-04-29 08:40:16 UTC
Description of problem:


Version-Release number of selected component:
sway-1.4-4.fc32

Additional info:
reporter:       libreport-2.12.0
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/session-691.scope
cmdline:        sway
crash_function: wl_list_insert
executable:     /usr/bin/sway
journald_cursor: s=339b3d615f654aa2882e29a905196421;i=5b522;b=564ef206f1804020a396d69bc6a4ac4a;m=13d331ed69;t=5a469b2541e8d;x=a4dc91b7532db26a
kernel:         5.6.7-300.fc32.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000
xsession_errors: 

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 wl_list_insert at src/wayland-util.c:49
 #1 wl_signal_add at /usr/include/wayland-server-core.h:441
 #2 xwm_set_seat at ../xwayland/selection/selection.c:309
 #3 wlr_xwayland_set_seat at ../xwayland/xwayland.c:479
 #4 seat_send_focus at ../sway/input/seat.c:176
 #6 seat_set_focus at ../sway/input/seat.c:1079
 #8 input_manager_set_focus at ../sway/input/input-manager.c:410
 #9 view_map at ../sway/tree/view.c:650
 #10 handle_map at ../sway/desktop/xwayland.c:440
 #11 wlr_signal_emit_safe at ../util/signal.c:29

Comment 1 Michal Halenka 2020-04-29 08:40:24 UTC
Created attachment 1682765 [details]
File: backtrace

Comment 2 Michal Halenka 2020-04-29 08:40:27 UTC
Created attachment 1682767 [details]
File: core_backtrace

Comment 3 Michal Halenka 2020-04-29 08:40:31 UTC
Created attachment 1682768 [details]
File: cpuinfo

Comment 4 Michal Halenka 2020-04-29 08:40:34 UTC
Created attachment 1682769 [details]
File: dso_list

Comment 5 Michal Halenka 2020-04-29 08:40:36 UTC
Created attachment 1682770 [details]
File: environ

Comment 6 Michal Halenka 2020-04-29 08:40:39 UTC
Created attachment 1682771 [details]
File: exploitable

Comment 7 Michal Halenka 2020-04-29 08:40:42 UTC
Created attachment 1682772 [details]
File: limits

Comment 8 Michal Halenka 2020-04-29 08:40:45 UTC
Created attachment 1682773 [details]
File: maps

Comment 9 Michal Halenka 2020-04-29 08:40:48 UTC
Created attachment 1682774 [details]
File: mountinfo

Comment 10 Michal Halenka 2020-04-29 08:40:52 UTC
Created attachment 1682775 [details]
File: open_fds

Comment 11 Michal Halenka 2020-04-29 08:40:55 UTC
Created attachment 1682776 [details]
File: proc_pid_status

Comment 12 Michal Halenka 2020-04-29 08:51:14 UTC
This happened when I was using external display and my laptop display.

External Monitor <-> DisplayPort <-> Dell DA300 hub <-> Thunderbolt <-> laptop

This happened at the moment when I disconnected Dell DA300's thunderbolt from my laptop.

There was nothing else than external monitor connected to the DA300 for the whole time.

Comment 13 Michal Halenka 2020-04-29 08:56:09 UTC
I am not very fluent in backtracing, but it seems to me that it is related to: https://github.com/swaywm/wlroots/issues/1684

Comment 14 Dan Čermák 2020-04-29 20:23:00 UTC
Can you force this crash to happen again by repeating the situation? (It might be necessary to start an application that still uses Xorg, as the backtrace suggests xwayland being involved.)

Comment 15 Michal Halenka 2020-04-30 07:58:54 UTC
I've tried to reproduce this issue:

- I am not sure if it is the same crash, but sway crashes almost every time when I connect/disconnect DA300 hub via thunderbolt.
- I also tried to connect/disconnect DisplayPort cable, and power on/off external monitor, and the crash did not occur.
- I've deleted all abrt problems yesterday, and now during this reproduction attempts abrt did not catch any problem.

Comment 16 Dan Čermák 2020-05-03 21:39:16 UTC
Could you try to install sway from this copr and give it if you can reproduce the issue as well: https://copr.fedorainfracloud.org/coprs/defolos/sway-experimental/? (That is sway & wlroots from the master branch)

Comment 17 Michal Halenka 2020-05-05 07:29:00 UTC
I've installed sway 1.4+git52bd6ae and wlroots 0.10.1+git46c83cb.

After reboot (just for sure), disconnect of DA300 no longer crashes sway (Yay!), unfortunattely I am not able to reconnect external monitor.

Sway sees it as:

    swaymsg -t get_outputs
    Output eDP-1 'Sharp Corporation 0x144A 0x00000000' (focused)
      Current mode: 3200x1800 @ 59.981998 Hz
      Position: 0,1080
      Scale factor: 2.000000
      Scale filter: nearest
      Subpixel hinting: unknown
      Transform: normal
      Workspace: 2
      Max render time: off
      Adaptive sync: disabled
      Available modes:
        3200x1800 @ 47.985001 Hz
        3200x1800 @ 59.981998 Hz
    
    Output DP-1 'Dell Inc. DELL P2719H GV1LPS2' (inactive)
      Available modes:
        720x400 @ 70.082001 Hz
        640x480 @ 59.939999 Hz
        640x480 @ 75.000000 Hz
        800x600 @ 60.317001 Hz
        800x600 @ 75.000000 Hz
        1024x768 @ 60.004002 Hz
        1024x768 @ 75.028999 Hz
        1152x864 @ 75.000000 Hz
        1280x1024 @ 60.020000 Hz
        1280x1024 @ 75.025002 Hz
        1600x900 @ 60.000000 Hz
        1920x1080 @ 60.000000 Hz


Executing `swaymsg output DP-1 enable` does not change anything.

Comment 18 Dan Čermák 2020-05-06 19:02:53 UTC
Hm, that is rather unfortunate. This probably means that the underlying bug is still present, it just manifests differently now.

Could you report this upstream https://github.com/swaywm/sway and post the link to the issue here? I'll try to help out, but I'm afraid you'll have to eventually also build sway yourself.

Comment 19 Michal Halenka 2020-05-09 18:06:18 UTC
Reported upstream GitHub as https://github.com/swaywm/sway/issues/5318

Comment 20 Dan Čermák 2020-05-30 15:00:37 UTC
Michal: should I rebuild sway and wlroots from git into my copr so that you can test it?

Comment 21 Fedora Update System 2020-05-31 07:48:33 UTC
FEDORA-2020-c8d4ba0d3d has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c8d4ba0d3d

Comment 22 Till Hofmann 2020-05-31 07:49:34 UTC
I've submitted the patched version as an update to F32. Please test!

Comment 23 Fedora Update System 2020-06-01 03:12:14 UTC
FEDORA-2020-c8d4ba0d3d has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c8d4ba0d3d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c8d4ba0d3d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 24 Fedora Update System 2020-06-03 01:49:46 UTC
FEDORA-2020-c8d4ba0d3d has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.