Bug #504

Segfault on Saving Playlist with bad locale file metadata

Added by Daniel Bedrenko about 9 years ago. Updated about 9 years ago.

Target version:
Start date:
January 22, 2015
Due date:
% Done:


Estimated time:
Affects version:


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"
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/
(gdb) bt
#0 0xb72bde46 in __strlen_sse2_bsf () from /usr/lib/
#1 0xb53bfb20 in ?? () from /usr/lib/audacious/Container/
#2 0xb53bfe42 in ?? () from /usr/lib/audacious/Container/
#3 0x08058b73 in _start ()

Lff.mod (27 KB) Lff.mod The file I talk about in the bug report Daniel Bedrenko, January 22, 2015 22:17
hpt.sid (3.44 KB) hpt.sid Another file to test with that gives "Cannot convert from locale" Daniel Bedrenko, January 22, 2015 22:17


#1 Updated by John Lindgren about 9 years ago

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

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