Rasberry Pi: Segmentation fault

Need help with MPD?
Post Reply
bern
Posts: 15
Joined: April 28th, 2019, 6:06 pm

Rasberry Pi: Segmentation fault

Post by bern » September 23rd, 2019, 2:17 pm

Hi,
One of my player (mpd-0.21.11 installed on Rasberry Pi2) has suddenly stooped working.

Code: Select all

sudo systemctl status mpd
● mpd.service - Music Player Daemon
   Loaded: loaded (/etc/systemd/system/mpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Mon 2019-09-23 15:35:37 CEST; 17s ago
     Docs: man:mpd(1)
           man:mpd.conf(5)
  Process: 829 ExecStart=/usr/local/bin/mpd --no-daemon /etc/mpd.conf (code=killed, signal=SEGV)
 Main PID: 829 (code=killed, signal=SEGV)

Sep 23 15:35:36 raspberrypi systemd[1]: Starting Music Player Daemon...
Sep 23 15:35:37 raspberrypi systemd[1]: mpd.service: Main process exited, code=killed, status=11/SEGV
Sep 23 15:35:37 raspberrypi systemd[1]: mpd.service: Failed with result 'signal'.
Sep 23 15:35:37 raspberrypi systemd[1]: Failed to start Music Player Daemon.
When I tryto run MPD manually I receive 'Segmentation fault'.
So I compiled and build the newest mpd version (mpd-0.21.14) without any issue but nothing has changed still segmentation fault
Maybe some new Rasbian packets installed yesterday cause this?
From time to time I updated Rasbian in the standard way:

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
My kernel version is:

Code: Select all

Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
What to do to fix this?

max
Forum team
Posts: 938
Joined: January 15th, 2013, 3:43 pm

Re: Rasberry Pi: Segmentation fault

Post by max » September 23rd, 2019, 2:23 pm


bern
Posts: 15
Joined: April 28th, 2019, 6:06 pm

Re: Rasberry Pi: Segmentation fault

Post by bern » September 23rd, 2019, 2:43 pm

Code: Select all

pi@raspberrypi:~ $ gdb --args mpd --stdout --no-daemon --verbose
GNU gdb (Raspbian 8.2.1-2) 8.2.1
Copyright (C) 2018 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 "arm-linux-gnueabihf".
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 mpd...done.
(gdb) run
Starting program: /usr/local/bin/mpd --stdout --no-daemon --verbose

Program received signal SIGSEGV, Segmentation fault.
elf_dynamic_do_Rel (skip_ifunc=<optimized out>, lazy=<optimized out>, nrelative=<optimized out>, relsize=<optimized out>,
    reladdr=<optimized out>, map=0x76ff9a30) at do-rel.h:112
112     do-rel.h: No such file or directory.
(gdb) bt
#0  elf_dynamic_do_Rel (skip_ifunc=<optimized out>, lazy=<optimized out>, nrelative=<optimized out>, relsize=<optimized out>,
    reladdr=<optimized out>, map=0x76ff9a30) at do-rel.h:112
#1  _dl_relocate_object (scope=<optimized out>, reloc_mode=<optimized out>, consider_profiling=<optimized out>,
    consider_profiling@entry=0) at dl-reloc.c:258
#2  0x76fd1bbc in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, auxv=<optimized out>)
    at rtld.c:2199
#3  0x76fe5960 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7efff6c0, dl_main=0x76fcfd90 <dl_main>)
    at ../elf/dl-sysdep.c:253
#4  0x76fcf62c in _dl_start_final (arg=0x7efff6c0) at rtld.c:415
#5  _dl_start (arg=0x7efff6c0) at rtld.c:522
#6  0x76fcea40 in _start () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

max
Forum team
Posts: 938
Joined: January 15th, 2013, 3:43 pm

Re: Rasberry Pi: Segmentation fault

Post by max » September 23rd, 2019, 3:45 pm

This crash is inside your dynamic linker and has nothing to do with MPD.

Post Reply