polybar: segmentation fault when `pin-workspaces = false` in xworkspaces module
Checklist
- I have read the appropriate section in the contributing guidelines
- I believe this issue is a problem with polybar itself and not a misconfiguration on my part.
- I have searched for other open and closed issues that may have already reported this problem.
- I have checked the known issues page for this problem.
Describe the bug
removing or setting pin-workspaces = false results in segmentation fault
Was it working before?
- Did you also experience this bug in an earlier version of polybar (yes/no/don’t know)?
- If no, what was the last version where this worked correctly? not to my knowledge
To Reproduce
[module/workspaces]
type = internal/xworkspaces
pin-workspaces = false
[bar/main]
modules-left = workspaces
Polybar Log
[1] 319850 segmentation fault (core dumped) polybar -q main -c ~/dotfiles/linux/polybar/docky/config.ini
Screenshots
Environment:
- WM: AwesomeWM
- Distro: Arch
- Output of
polybar -vvv:
polybar 3.5.5
Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard
X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor
Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Additional context
xprop -root after the crash
_NET_CURRENT_DESKTOP(CARDINAL) = 0
_NET_ACTIVE_WINDOW(WINDOW): window id # 0x1200007
ESETROOT_PMAP_ID(PIXMAP): pixmap id # 0x4000001
_XROOTPMAP_ID(PIXMAP): pixmap id # 0x4000001
_NET_CLIENT_LIST(WINDOW): window id # 0x1200007, 0x1000005
_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x1000005, 0x1200007
PULSE_COOKIE(STRING) = "5ff9019729bcb7d17a8e9f46f64b015d858f7b8c64128b0edeeec97b83ad2da7f9fd487313b776bffedb17f51c9ce0ce575893f3846628fcf325305e4a56b98f05c0b9478ddba64314e9e59d5026fe815b95a55f0ee514df3599d6c13c5581d62c8e7a9557152c0e2b4d0a9a4c868e3f1ccdadcf3da4553c640b294b0076a3998b51c6367fc99c9920f4794419c53f1806bb30079618494648491ce6de3b829d5d38d8128cdf74eebe2c04417c1de8fa63f00c769660ca3b193f728eb585d0763bd6338a499b5bc2aaaabf1eed3b975f7410ac0a395444819faa322f76f494a72c081fdb1b844b6a2c7036ff788b6b2df1d182246afdd4d1c22a7c573a351635"
PULSE_SERVER(STRING) = "{5d23e2a19cb8467997830c10f0665354}unix:/run/user/1000/pulse/native"
PULSE_ID(STRING) = "1000@5d23e2a19cb8467997830c10f0665354/313358"
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x400005
_NET_SUPPORTED(ATOM) = _NET_SUPPORTED, _NET_SUPPORTING_WM_CHECK, _NET_STARTUP_ID, _NET_CLIENT_LIST, _NET_CLIENT_LIST_STACKING, _NET_NUMBER_OF_DESKTOPS, _NET_CURRENT_DESKTOP, _NET_DESKTOP_NAMES, _NET_ACTIVE_WINDOW, _NET_CLOSE_WINDOW, _NET_FRAME_EXTENTS, _NET_WM_NAME, _NET_WM_STRUT_PARTIAL, _NET_WM_ICON_NAME, _NET_WM_VISIBLE_ICON_NAME, _NET_WM_DESKTOP, _NET_WM_WINDOW_TYPE, _NET_WM_WINDOW_TYPE_DESKTOP, _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_DROPDOWN_MENU, _NET_WM_WINDOW_TYPE_POPUP_MENU, _NET_WM_WINDOW_TYPE_TOOLTIP, _NET_WM_WINDOW_TYPE_NOTIFICATION, _NET_WM_WINDOW_TYPE_COMBO, _NET_WM_WINDOW_TYPE_DND, _NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_ICON, _NET_WM_PID, _NET_WM_STATE, _NET_WM_STATE_STICKY, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_ABOVE, _NET_WM_STATE_BELOW, _NET_WM_STATE_MODAL, _NET_WM_STATE_HIDDEN, _NET_WM_STATE_DEMANDS_ATTENTION
RESOURCE_MANAGER(STRING) =
XFree86_DDC_EDID1_RAWDATA(INTEGER) = 0, -1, -1, -1, -1, -1, -1, 0, 13, -82, -62, 21, 0, 0, 0, 0, 4, 23, 1, 4, -107, 34, 19, 120, 2, 70, 53, -98, 87, 87, -108, 39, 20, 80, 84, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -76, 59, -128, 74, 113, 56, 52, 64, 90, 60, 105, 0, 88, -62, 16, 0, 0, 26, -51, 39, -128, 74, 113, 56, 52, 64, 90, 60, 105, 0, 88, -62, 16, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 12, 51, -1, 15, 60, -106, 33, 20, 51, -106, 0, 0, 0, 0, 112
GDK_VISUALS(INTEGER) = 937, 1004
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
XFree86_has_VT(INTEGER) = 1
XFree86_VT(INTEGER) = 7
Xorg_Seat(STRING) = "seat0"
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- fix(xworkspaces): Segfault for wrong _NET_CURRENT_DESKTOP While it shouldn't happen with compliant WMs, it was possibe to crash polybar with _NET_CURRENT_DESKTOP >= _NET_NUMBER_OF_DESKTOPS and this s... — committed to patrick96/polybar by patrick96 3 years ago
- fix(xworkspaces): Segfault for wrong _NET_CURRENT_DESKTOP While it shouldn't happen with compliant WMs, it was possibe to crash polybar with _NET_CURRENT_DESKTOP >= _NET_NUMBER_OF_DESKTOPS and this s... — committed to polybar/polybar by patrick96 3 years ago
No worries. Segfaults should still not be possible in polybar, so I appreciate the report 😃