Bug 264008 - audio/deadbeef: segmentation fault
Summary: audio/deadbeef: segmentation fault
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL: https://www.freshports.org/audio/dead...
Keywords: crash
Depends on: 264442
Blocks:
  Show dependency treegraph
 
Reported: 2022-05-15 23:23 UTC by Slawomir Wojciech Wojtczak
Modified: 2022-12-05 03:42 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2022-05-15 23:23:45 UTC
The Deadbeef does segmentation fault in the most up to date 'Latest' branch on FreeBSD 13.1-RELEASE and 13.1-RC6.

Regards.
Comment 1 Slawomir Wojciech Wojtczak 2022-06-02 22:04:34 UTC
Hi,

and progress on this one?

What maintainer says?

The deadbeef works on GhostBSD (which is little older).

What about now on FreeBSD?
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2022-06-03 06:04:41 UTC
(In reply to Slawomir Wojciech Wojtczak from comment #1)

I probably should just update the port to the latest (recently released) version, but if I manage to reproduce the segfault easily, I might commit the quick fix.
Comment 3 Slawomir Wojciech Wojtczak 2022-06-03 11:46:03 UTC
Just tried on a freshly installed FreeBSD 13.1 with packages from 'latest' branch and its the same. Everything fresh. So problem still exists.

Regards.
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2022-06-06 04:47:01 UTC
(In reply to Slawomir Wojciech Wojtczak from comment #3)
> So problem still exists.
Since you gave no details, I can only assume that the crash happens when playing MP3 files due to bug #264442.  Could you deselect the MAD option, select MPG123 instead, and see if this helps?
Comment 5 Slawomir Wojciech Wojtczak 2022-06-06 07:42:22 UTC
(In reply to Alexey Dokuchaev from comment #4)

Hi,

tell me which details you need and I will provide them.



Yes - it crashes on MP3 file playback attempt.

Here is the console output:

% deadbeef
starting deadbeef 0.7.2
server_start
searching for GUI plugins in /home/vermaden/.local/lib64/deadbeef
searching for GUI plugins in /home/vermaden/.local/lib/deadbeef
searching for GUI plugins in /usr/local/lib/deadbeef
load_plugin_dir /usr/local/lib/deadbeef: scandir found 44 files
found gui plugin ddb_gui_GTK2.so
added GTK2 gui plugin
load gui plugin
checking GUI plugin: GTK2
found selected GUI plugin: GTK2
loading plugin /usr/local/lib/deadbeef/ddb_gui_GTK2.so
loading plugins from /home/vermaden/.local/lib64/deadbeef
loading plugins from /home/vermaden/.local/lib/deadbeef
loading plugins from /usr/local/lib/deadbeef
load_plugin_dir /usr/local/lib/deadbeef: scandir found 44 files
loading plugin /usr/local/lib/deadbeef/aac.so
loading plugin /usr/local/lib/deadbeef/adplug.so
loading plugin /usr/local/lib/deadbeef/alac.so
loading plugin /usr/local/lib/deadbeef/artwork.so
loading plugin /usr/local/lib/deadbeef/cdda.so
loading plugin /usr/local/lib/deadbeef/converter.so
loading plugin /usr/local/lib/deadbeef/converter_gtk2.so
loading plugin /usr/local/lib/deadbeef/dca.so
loading plugin /usr/local/lib/deadbeef/ddb_ao.so
loading plugin /usr/local/lib/deadbeef/ddb_dumb.so
loading plugin /usr/local/lib/deadbeef/ddb_mono2stereo.so
loading plugin /usr/local/lib/deadbeef/ddb_shn.so
loading plugin /usr/local/lib/deadbeef/dsp_libsrc.so
loading plugin /usr/local/lib/deadbeef/ffap.so
loading plugin /usr/local/lib/deadbeef/flac.so
loading plugin /usr/local/lib/deadbeef/gme.so
loading plugin /usr/local/lib/deadbeef/hotkeys.so
loading plugin /usr/local/lib/deadbeef/in_sc68.so
loading plugin /usr/local/lib/deadbeef/lastfm.so
loading plugin /usr/local/lib/deadbeef/m3u.so
loading plugin /usr/local/lib/deadbeef/mms.so
loading plugin /usr/local/lib/deadbeef/mp3.so
loading plugin /usr/local/lib/deadbeef/musepack.so
loading plugin /usr/local/lib/deadbeef/notify.so
loading plugin /usr/local/lib/deadbeef/oss.so
loading plugin /usr/local/lib/deadbeef/pltbrowser_gtk2.so
loading plugin /usr/local/lib/deadbeef/shellexec.so
loading plugin /usr/local/lib/deadbeef/shellexecui_gtk2.so
loading plugin /usr/local/lib/deadbeef/sid.so
loading plugin /usr/local/lib/deadbeef/sndfile.so
loading plugin /usr/local/lib/deadbeef/supereq.so
loading plugin /usr/local/lib/deadbeef/tta.so
loading plugin /usr/local/lib/deadbeef/vfs_curl.so
loading plugin /usr/local/lib/deadbeef/vfs_zip.so
loading plugin /usr/local/lib/deadbeef/vorbis.so
loading plugin /usr/local/lib/deadbeef/vtx.so
loading plugin /usr/local/lib/deadbeef/wavpack.so
loading plugin /usr/local/lib/deadbeef/wildmidi.so
loading plugin /usr/local/lib/deadbeef/wma.so
selected output plugin: OSS output plugin
INFO: loading playlist CD
INFO: from file /home/vermaden/.config/deadbeef/playlists/0.dbpl
INFO: loading playlist Mesa
INFO: from file /home/vermaden/.config/deadbeef/playlists/1.dbpl
INFO: loading playlist Prodigy
INFO: from file /home/vermaden/.config/deadbeef/playlists/2.dbpl
INFO: loading playlist Opeth
INFO: from file /home/vermaden/.config/deadbeef/playlists/3.dbpl
INFO: loading playlist 80s
INFO: from file /home/vermaden/.config/deadbeef/playlists/4.dbpl
INFO: loading playlist Keygen
INFO: from file /home/vermaden/.config/deadbeef/playlists/5.dbpl
INFO: loading playlist Reinkaos
INFO: from file /home/vermaden/.config/deadbeef/playlists/6.dbpl
INFO: loading playlist Insomnium
INFO: from file /home/vermaden/.config/deadbeef/playlists/7.dbpl
INFO: loading playlist UT
INFO: from file /home/vermaden/.config/deadbeef/playlists/8.dbpl
gtkui plugin compiled for gtk version: 2.24.33
connecting button tray signals
zsh: segmentation fault  deadbeef
% 



The switch (recompilation) from MAD to MPG123 worked! Thanks! Now deadbeef(1) plays MP3 music as usual.

Should the port (at least until fixed) have that MPG123 option as default for now?



... also the audio/deadbeef port has some problems fetching the tarball:

# make -C /usr/ports/audio/deadbeef fetch                  
===>  Cleaning for deadbeef-0.7.2_19
===>   deadbeef-0.7.2_19 depends on file: /usr/local/sbin/pkg - found
=> deadbeef-0.7.2.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://downloads.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://downloads.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://excellmedia.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://excellmedia.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://freefr.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://freefr.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://jaist.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://jaist.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://nchc.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://nchc.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://netcologne.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://netcologne.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://netix.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
fetch: https://netix.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2: Not Found
=> Attempting to fetch https://superb-dca2.dl.sourceforge.net/project/deadbeef/deadbeef-0.7.2.tar.bz2
(...)

This is the link I used to manually place needed tarball into the /usr/ports/distfiles location:

- https://deac-ams.dl.sourceforge.net/project/deadbeef/Archive/deadbeef-0.7.2.tar.bz2



Regards.
Comment 6 Alexey Dokuchaev freebsd_committer freebsd_triage 2022-06-06 08:01:45 UTC
(In reply to Slawomir Wojciech Wojtczak from comment #5)
> tell me which details you need and I will provide them.
> Yes - it crashes on MP3 file playback attempt.
That's pretty much enough. :-)

> The switch (recompilation) from MAD to MPG123 worked!  Should the port (at
> least until fixed) have that MPG123 option as default for now?
Maybe, I haven't decided yet.

> the port has some problems fetching the tarball
I'll be updating it soonish(tm), so just ignore those for now.
Comment 7 Slawomir Wojciech Wojtczak 2022-06-06 08:29:31 UTC
(In reply to Alexey Dokuchaev from comment #6)

Thank You again.

I tried to 'migrate' to Sayonara player (while Deadbeef was not working) but its not as good as Deadbeef - but if Deadbeef would 'end' tomorrow quite decent tho.

Regards.
Comment 8 tedbell 2022-06-11 23:47:15 UTC
deadbeef-0.7.7_19 segfaults on FreeBSD 13.1-RELEASE when using libmad-0.16.0.
Playing other formats works but playing mp3s results in a segmentation fault unless deadbeef is built in ports with mpg123 support, and mpg123 is selected as the mp3 plugin in the app.

Some mp3s play too fast with the mpg123 plugin.
Comment 9 tedbell 2022-06-13 08:19:07 UTC
EDIT: mpg123 plays files too fast on deadbeef if the samplerate is below 44100.
Comment 10 Daniel Engberg freebsd_committer freebsd_triage 2022-06-22 07:21:21 UTC
If possible please try the patch attached in PR 264442 (Patch for libmad v2), this should fix libmad.
Comment 11 Daniel Engberg freebsd_committer freebsd_triage 2022-06-25 19:46:28 UTC
Should be fixed as of e0b51d322893b00805bd3e233476f5983b692894
Comment 12 Daniel Engberg freebsd_committer freebsd_triage 2022-06-26 06:39:17 UTC
As for the mpg123 issue, there's a bunch of parsing issues fixed in later versions of deadbeef so bumping version might solve these.
Comment 13 Alexey Dokuchaev freebsd_committer freebsd_triage 2022-06-26 06:58:28 UTC
(In reply to Daniel Engberg from comment #12)
> bumping version might solve these.
I'll be committing some pre-update changes soon and will bump once for all of them.