Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Crash updating database from WebDAV source #660
I've configured MPD to use WebDAV for storage using the "curl" plugin:
It crashes due to an assertion failure whenever it tries to update the database. Sometimes this happens automatically at startup, and sometimes I have to run
Here is the complete output of running mpd:
Here is my configuration file:
Oh yeah, I'm running from a recent source checkout:
FWIW, I get pretty much the same crash with 0.20.18 (Ubuntu source package), 0.21.4 (Ubuntu binary package), and 0.21.15 (source tarball from musicpd.org). So this is not a recent bug.
Here's a gdb session with backtrace:
Something I found curious: if I walk up the stack to
No idea if that is relevant.
Oh yeah: my WebDAV server is Apache 2.4, from the Ubuntu package (2.4.38-2ubuntu2.3). The best evidence that MPD is talking to Apache as a WebDAV server is one line from Apache's access log right before MPD crashes:
The best evidence that Apache is providing a working WebDAV server: I can open
Confirmed: the commits that @MaxKellermann pushed to branch v0.21.x fix this bug -- MPD no longer crashes as soon as it starts updating from webdav storage. Thank you!
However, it looks like there are still problems updating from WebDAV. I'll open another ticket for the next crash...