8000 Polybar - segmentation fault (core dumped) · Issue #979 · polybar/polybar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Polybar - segmentation fault (core dumped) #979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gaabster opened this issue Jan 28, 2018 · 2 comments
Closed

Polybar - segmentation fault (core dumped) #979

gaabster opened this issue Jan 28, 2018 · 2 comments
Labels

Comments

@gaabster
Copy link

Hi.

So this morning my polybar stopped working after pc restart.
What I was able to find it was a mpd issue.
This is the output of --log=trace:

 - config: Copying missing params (sub="module/backlight-acpi", base="module/xbacklight")
* Loaded /home/gabriel/.config/polybar/config
- config: Current bar section: [bar/example]
warn: No monitor specified, using "HDMI-1"
* Loaded monitor HDMI-1 (1920x1080+0+0)
* Bar geometry: 1920x35+0+0
- bar: Attach X event sink
- bar: Attach signal receiver
- controller: Install signal handler
- controller: Setup user-defined modules
- module/bspwm: Deconstructing
error: Disabling module "bspwm" (reason: Could not find socket: /tmp/bspwm_0_0-socket)
- mpdconnection.connect: 127.0.0.1, 6600, "", timeout: 15
error: module/mpd: Connection refused
error: module/xbacklight: Could not get data (err: XCB_NAME (15))
- module/xbacklight: Deconstructing
error: Disabling module "xbacklight" (reason: Not supported for "HDMI-1")
error: Disabling module "volume" (reason: Missing parameter "module/volume.type")
- module/battery: Attach inotify at /sys/class/power_supply/BAT0/energy_now
- module/battery: Attach inotify at /sys/class/power_supply/AC/online
- module/powermenu: Creating menu level 0
- module/powermenu: Creating menu level item 0
- module/powermenu: Creating menu level item 1
- module/powermenu: Creating menu level 1
- module/powermenu: Creating menu level item 0
- module/powermenu: Creating menu level item 1
- module/powermenu: Creating menu level 2
- module/powermenu: Creating menu level item 0
- module/powermenu: Creating menu level item 1
* Starting application
- controller: Main thread id = 1
* Starting module/i3
* Starting module/mpd
* Starting module/filesystem
* Starting module/xkeyboard
- module/mpd: Thread id = 2
* Starting module/memory
[1]    3136 segmentation fault (core dumped)  polybar example --log=trace

And this is the output of gdb -ex run -args polybar example:

 This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from polybar...done.
Starting program: /usr/local/bin/polybar example
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffeda24700 (LWP 3732)]
warn: No monitor specified, using "HDMI-1"
error: Disabling module "bspwm" (reason: Could not find socket: /tmp/bspwm_0_0-socket)
error: module/mpd: Connection refused
error: module/xbacklight: Could not get data (err: XCB_NAME (15))
error: Disabling module "xbacklight" (reason: Not supported for "HDMI-1")
error: Disabling module "volume" (reason: Missing parameter "module/volume.type")
[New Thread 0x7fffed223700 (LWP 3735)]
[New Thread 0x7fffeca22700 (LWP 3736)]
[New Thread 0x7fffe7fff700 (LWP 3738)]

Thread 4 "polybar" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeca22700 (LWP 3736)]
0x00005555558f3af1 in polybar::v3_1_0_35_g5ca1940::mpd::mpdstatus::match_state (this=0x0, state=polybar::v3_1_0_35_g5ca1940::mpd::mpdstate::PLAYING)
    at /home/gabriel/polybar/src/adapters/mpd.cpp:419
419	    return state == m_state;

So I commented out the
type = internal/mpd
in the config and it works again.

Now I have to explain few things. My mpd is installed but I didn't configure it yet so no daemon is running, could that be the issue here? I'm running a fresh arch install with i3wm.
Can anyone tell me why this happened?
Thank you and have a good day everyone.

@gaabster
Copy link
Author
gaabster commented Jan 28, 2018

Hi again.

MPD has to be running for polybar to work.
I don't know if that is how it shloud be. Maybe polybar should just disable the module?
Anyway I'm no expert and don't know how things like that work so I'll be going now.

Oh should I close the issue or has anyone any comments on this?

@patrick96
Copy link
Member
patrick96 commented Jan 31, 2018

This is not intended. I was able to reproduce this, it seems this is a bug I've have introduced when I fixed an issue with the mpd time token in 645a314

I will try to fix this as soon as possible. For now, either remove the mpd module or start the daemon before the bar.

For future reference, here is the full stack trace from someone who also had the same issue.

0x08127858 in polybar::v3_1_0_36_g5c7ff09::mpd::mpdstatus::match_state (this=0x0, state=polybar::v3_1_0_36_g5c7ff09::mpd::mpdstate::PLAYING) at /home/evoke/Desktop/polybar/src/adapters/mpd.cpp:419
419	    return state == m_state;
#0  0x08127858 in polybar::v3_1_0_36_g5c7ff09::mpd::mpdstatus::match_state (this=0x0, state=polybar::v3_1_0_36_g5c7ff09::mpd::mpdstate::PLAYING) at /home/evoke/Desktop/polybar/src/adapters/mpd.cpp:419
#1  0x0814c132 in polybar::v3_1_0_36_g5c7ff09::modules::mpd_module::update (this=0x832ae38) at /home/evoke/Desktop/polybar/src/modules/mpd.cpp:203
#2  0x08155f01 in polybar::v3_1_0_36_g5c7ff09::modules::event_module<polybar::v3_1_0_36_g5c7ff09::modules::mpd_module>::runner (this=0x832ae38) at /home/evoke/Desktop/polybar/include/modules/meta/event_module.hpp:23
#3  0xb7a2662e in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#4  0xb7900295 in start_thread (arg=0xb5c84b40) at pthread_create.c:333
#5  0xb782b0ae in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114

@patrick96 patrick96 reopened this Jan 31, 2018
patrick96 added a commit to patrick96/polybar that referenced this issue Jan 31, 2018
patrick96 added a commit to patrick96/polybar that referenced this issue Jan 31, 2018
NBonaparte pushed a commit that referenced this issue Feb 1, 2018
patrick96 added a commit that referenced this issue Jul 23, 2018
Breaking Changes:

* `0 < label-NAME-maxlen < 3` will now throw an exception and disable the containing module, if ellipsis is enabled for that label. (#1198)

Changelog:

Deprecations:
* `internal/volume` is now called `internal/alsa` (#967)
* temperature: The `%temperature%` is deprecated in favor of `%temperature-c%`(#897)
* mpd: `icon-repeatone` is deprecated in favor of `icon-single` (#1295), see #1279

Features:
* feat(mpd): Add support for icon-consume (#861)
* feat(bspwm): Add workspace separator (#942) 
* feat(i3): Add workspace separator (#938), see #929
* feat(build): Make polybar build on FreeBSD (#931, polybar/xpp#8), see #239
* feat(volume): Add pulseaudio backend (#779)
* feat(script): Add %pid% token for tail commands (#934)
* feat(temp): Add temperature tokens without unit (#897)
* feat(memory): Add memory used/free ramp (#1038), see #1037
* feat(memory): Add swap tokens (#1018) 
* feat(net): Add unknown-as-up option (#1077), see #457
* feat(config): Support fractional size and offset (#972), see #953
* feat(xwindow): Add label-empty (#1136)
* feat(battery): Add animation-discharging (analog to animation-charging) (#1190)
* feat(config): Support pixel offset for bar size and offset values (#1224)
* feat(mpd): Add `%album-artist%` token (#1263)
* feat(net): Add local_ip6 token (#1239), see #1234
* feat(net): Add nl80211 support (#1009), see #277

Fixes:
* fix(mpd): Wrong elapsed time when after standby (#921), see #915
* fix(config): Wrong min, maxlen when using the same token multiple times (#974), see #971
* fix(battery): use power_now correctly (#958), see #928
* fix(mpd): Crash when mpd isn't running (#983), see #979
* fix(xworkspaces): Respect 'enable-scroll' (#1002)
* fix(xbacklight): Respect 'enable-scroll' (#1014)
* fix(build): support xcb-proto >=1.13 (polybar/xpp#11), see #973
* fix(mpd): Respect MPD_HOST env variable (#1025), see #1007
* fix(i3): Reconnect i3 IPC socket on restart/error (#1099), see #762
* fix(cursor): Occasional crash on mouseover (#1124), see #1117
* fix(net): Mark 'not connected' on querying failure (#1171), see #1163
* fix(gcc): Fix -Wstringop-truncation warning (#1216, polybar/i3ipcpp#7), see #1215
* fix(builder): Don't truncate colors with same channels (#1217), see #1183
* fix(bspwm): Consistent behavior when scrolling through multiple desktops (#986), see #981
* fix(builder): Respect label-ellipsis option (#1198), see #1194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0