[Pkg-mpd-maintainers] Bug#998310: mpd: fails to start with "Assertion `sockets.empty()' failed."

Benjamin Francois kwyxz at kwyxz.org
Wed Nov 3 16:23:48 GMT 2021


On Wed%2C 3 Nov 2021 07%3A08%3A23 %2B0100 Max Kellermann wrote%3A
> Thanks%2C that was almost helpful - but you did not install mpd-dbgsym%2C

Whoops :'D let's try one more time then.
❯ sudo gdb --args mpd --stderr --no-daemon --verbose
GNU gdb (Debian 10.1-2) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 mpd...
Reading symbols from /usr/lib/debug/.build-id/26/be37e73d656eddadb9ab98d3becf1abd7d1696.debug...
(gdb) catch throw
Catchpoint 1 (throw)
(gdb) run
Starting program: /usr/bin/mpd --stderr --no-daemon --verbose
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
config_file: loading file /etc/mpd.conf
path: SetFSCharset: fs charset is
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.7
opus: libopus 1.3.1
sndfile: libsndfile-1.0.31
adplug: adplug 2.3.3
simple_db: reading DB

Catchpoint 1 (exception thrown), 0x00007ffff36a5322 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007ffff36a5322 in __cxa_throw () at /lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x000055555559e71f in db_load_internal(TextFile&, Directory&) (file=<optimized out>, music_root=<optimized out>) at ../src/db/plugins/simple/DatabaseSave.cxx:112
#2 0x000055555565fa6c in SimpleDatabase::Load() (this=0x55555578a040) at ../src/db/plugins/simple/SimpleDatabasePlugin.cxx:158
#3 0x0000555555660721 in SimpleDatabase::Open() (this=0x55555578a040) at ../src/db/plugins/simple/SimpleDatabasePlugin.cxx:178
#4 0x00005555555a4aed in glue_db_init_and_load (config=..., instance=...) at ../src/Main.cxx:221
#5 InitDatabaseAndStorage (config=..., instance=...) at ../src/Main.cxx:244
#6 MainConfigured(options const&, ConfigData const&) (options=<optimized out>, raw_config=...) at ../src/Main.cxx:444
#7 0x00005555555a4d4d in MainOrThrow(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cxx:650
#8 0x00005555555a302a in mpd_main(int, char**) (argv=<optimized out>, argc=<optimized out>) at ../src/Main.cxx:656
#9 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cxx:668
(gdb) cont
Continuing.
exception: Tag list mismatch, discarding database file
curl: version 7.74.0
curl: with GnuTLS/3.7.2

Catchpoint 1 (exception thrown), 0x00007ffff36a5322 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007ffff36a5322 in __cxa_throw () at /lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x000055555558ba6e in PidFile::PidFile(AllocatedPath const&) (path=<optimized out>, this=<optimized out>) at ../src/unix/PidFile.hxx:46
#2 daemonize_commit() () at ../src/unix/Daemon.cxx:212
#3 0x00005555555a44ed in MainConfigured(options const&, ConfigData const&) (options=<optimized out>, raw_config=...) at ../src/Main.cxx:468
#4 0x00005555555a4d4d in MainOrThrow(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cxx:650
#5 0x00005555555a302a in mpd_main(int, char**) (argv=<optimized out>, argc=<optimized out>) at ../src/Main.cxx:656
#6 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cxx:668
(gdb) cont
Continuing.
mpd: ../src/event/Loop.cxx:60: EventLoop::~EventLoop(): Assertion `sockets.empty()' failed.

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x00007ffff32db536 in __GI_abort () at abort.c:79
#2 0x00007ffff32db41f in __assert_fail_base
(fmt=0x7ffff34426b0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55555569afa2 "sockets.empty()", file=0x55555569af5c "../src/event/Loop.cxx", line=60, function=<optimized out>) at assert.c:92
#3 0x00007ffff32ea7f2 in __GI___assert_fail
(assertion=0x55555569afa2 "sockets.empty()", file=0x55555569af5c "../src/event/Loop.cxx", line=60, function=0x55555569af44 "EventLoop::~EventLoop()")
at assert.c:101
#4 0x00005555555e5458 in EventLoop::~EventLoop() (this=this at entry=0x7fffffffcbc8, __in_chrg=<optimized out>) at ../src/event/Loop.cxx:60
#5 0x00005555555b7c56 in EventThread::~EventThread() (this=0x7fffffffcbc8, __in_chrg=<optimized out>) at ../src/event/Thread.hxx:43
#6 Instance::~Instance() (this=this at entry=0x7fffffffc310, __in_chrg=<optimized out>) at ../src/Instance.cxx:75
#7 0x00005555555867a1 in MainConfigured(options const&, ConfigData const&) (options=<optimized out>, raw_config=<optimized out>) at ../src/Main.cxx:578
#8 0x00005555555a4d4d in MainOrThrow(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cxx:650
#9 0x00005555555a302a in mpd_main(int, char**) (argv=<optimized out>, argc=<optimized out>) at ../src/Main.cxx:656
#10 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../src/Main.cxx:668
(gdb) cont
Continuing.

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mpd-maintainers/attachments/20211103/d39825ec/attachment.htm>


More information about the Pkg-mpd-maintainers mailing list