Bug #504

Segfault on Saving Playlist with bad locale file metadata

Added by Daniel Bedrenko almost 3 years ago. Updated almost 3 years ago.

Status:Closed Start date:January 22, 2015
Priority:Major Due date:
Assignee:- % Done:

100%

Category:libaudcore
Target version:3.6
Affects version:3.5.2

Description

Steps to reproduce:

0) In File -> Settings -> Playlist -> uncheck "Do not load metadata [...]"
1) Open the attached audio file
2) Go to Playlist -> Export and save the playlist "test.audpl"
or
2.1) Just exit audacious (this automatically saves the open playlist tabs).

This crashes the program (thus many things like any config changes or playlist changes are lost). Sometimes if I load some of these bad files after ~5 mins it crashes by itself (does Audacious periodically save the tab playlists?).

When this track is added audacious spits out this in STDERR (I guess it's the track's title metadata):
Cannot convert from locale (UTF-8): L.

Here is the backtrace: ======================
Program received signal SIGSEGV, Segmentation fault.
0xb72bde46 in __strlen_sse2_bsf () from /usr/lib/libc.so.6
(gdb) bt
#0 0xb72bde46 in __strlen_sse2_bsf () from /usr/lib/libc.so.6
#1 0xb53bfb20 in ?? () from /usr/lib/audacious/Container/audpl.so
#2 0xb53bfe42 in ?? () from /usr/lib/audacious/Container/audpl.so
#3 0x08058b73 in _start ()

Lff.mod - The file I talk about in the bug report (27 kB) Daniel Bedrenko, January 22, 2015 22:17

hpt.sid - Another file to test with that gives "Cannot convert from locale" (3.4 kB) Daniel Bedrenko, January 22, 2015 22:17

History

#1 Updated by John Lindgren almost 3 years ago

  • % Done changed from 0 to 100
  • Target version set to 3.6
  • Status changed from New to Closed
  • Category set to libaudcore

The segfault is fixed in the Git version already. What you need to do to fix the "Cannot convert from locale" error is to add "ISO-8859-1" as a fallback character encoding (File -> Settings -> Playlist -> Fallback character encodings). This should also prevent the segfault in 3.5.2.

Also available in: Atom PDF