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

Benjamin Francois kwyxz at kwyxz.org
Tue Nov 2 22:47:18 GMT 2021


On Tue, 2 Nov 2021 13:53:20 +0100 Max Kellermann wrote:
> TLDR: it's complicated, and we can't see the real error just yet.

Hello! I am having the same issue so I thought I'd give it a go.
❯ 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...
(No debugging symbols found in mpd)
(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), 0x00007ffff36a6322 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007ffff36a6322 in __cxa_throw () at /lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x000055555559e71f in ()
#2 0x000055555565fa6c in ()
#3 0x0000555555660721 in ()
#4 0x00005555555a4aed in ()
#5 0x00005555555a4d4d in ()
#6 0x00005555555a302a in ()
#7 0x00007ffff32dde4a in __libc_start_main (main=
0x5555555a3010, argc=4, argv=0x7fffffffe5f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe5e8) at ../csu/libc-start.c:314
#8 0x00005555555a33da in ()
(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), 0x00007ffff36a6322 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007ffff36a6322 in __cxa_throw () at /lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x000055555558ba6e in ()
#2 0x00005555555a44ed in ()
#3 0x00005555555a4d4d in ()
#4 0x00005555555a302a in ()
#5 0x00007ffff32dde4a in __libc_start_main (main=
0x5555555a3010, argc=4, argv=0x7fffffffe5f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe5e8) at ../csu/libc-start.c:314
#6 0x00005555555a33da in ()
(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 0x00007ffff32dc536 in __GI_abort () at abort.c:79
#2 0x00007ffff32dc41f in __assert_fail_base
(fmt=0x7ffff34436b0 "%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 0x00007ffff32eb7f2 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 ()
#5 0x00005555555b7c56 in ()
#6 0x00005555555867a1 in ()
#7 0x00005555555a4d4d in ()
#8 0x00005555555a302a in ()
#9 0x00007ffff32dde4a in __libc_start_main (main=
0x5555555a3010, argc=4, argv=0x7fffffffe5f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe5e8) at ../csu/libc-start.c:314
#10 0x00005555555a33da in ()
(gdb) cont
Continuing.

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

Hope this helps!
Cheers,
Ben.

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


More information about the Pkg-mpd-maintainers mailing list