PDA

View Full Version : musicpd 0.14.1 not starting


lungten
February 3rd, 2009, 06:23
Few days back, I upgraded my MPD from version 0.13.2 to the latest version in the ports (0.14.1) and the new version failed to start at all.

When I try to start, it says

Starting musicpd.
Assertion failed: (urllen), function song_alloc, file song.c, line 38.
Abort trap (core dumped)


Any ideas what could be causing this? Or is something wrong in the source?

kamikaze
February 3rd, 2009, 21:51
No idea. Are all your ports up to date? Or at least all the ones mpd depends on?

lungten
February 4th, 2009, 04:25
Are all your ports up to date? Or at least all the ones mpd depends on?
Yes, my ports are up to date. No dependency or installation problems. Just that I cannot start it.

kamikaze
February 4th, 2009, 07:33
Maybe your music database is broken. There's something about urllen, might be there's something it doesn't like.

hark
February 4th, 2009, 16:42
You might try deleting the mpd database (which will be rebuilt when you start mpd again). By default, the database is ~/.mpd/db (as specified in ~/.mpdconf).

EDIT: A backtrace would be really helpful too:

* Recompile mpd with make WITH_DEBUG=1 && make deinstall reinstall
* Crash mpd again to generate a core file with debugging symbols
* Open the core file with gdb mpd -core mpd.core
* Give gdb the bt command to get the trace
* Paste trace :3

lungten
February 6th, 2009, 06:22
Thank you very much kamikaze and hark. The problem as you suspected was caused by the mpd.db file.