VLC generates a segfault upon exiting after loading an XSPF file and saving it.
I'm on Mageia Linux Cauldron on a Pentium 4 x86-32 machine, see:
https://bugs.mageia.org/show_bug.cgi?id=1968
Description of problem:
Every time I load an XSPF file I prepared using VLC and save it again, it causes VLC to segfault. Here is the backtrace:
[BACKTRACE]
shlomif:~$ gdb /usr/bin/vlc
GNU gdb (GDB) 7.1-6.mga1 (Mageia release 1)
Copyright (C) 2010 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 "i586-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/vlc...Reading symbols from
/usr/lib/debug/usr/bin/vlc.debug...done.
done.
(gdb) r
Starting program: /usr/bin/vlc
[Thread debugging using libthread_db enabled]
VLC media player 1.1.10 The Luggage (revision exported)
warning: no loadable sections found in added symbol-file
/usr/lib/debug/lib/libwrap.so.0.7.6.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/usr/lib/libstdc++.so.6.0.14.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/lib/libgcc_s-4.5.2.so.1.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/usr/lib/libvpx.so.0.9.6.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/usr/lib/libssl.so.1.0.0.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/usr/lib/libcrypto.so.1.0.0.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/usr/lib/libvga.so.1.9.25.debug
warning: no loadable sections found in added symbol-file
/usr/lib/debug/usr/lib/liblua.so.5.1.debug
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[New Thread 0xb1afbb70 (LWP 6354)]
[New Thread 0xb1a7ab70 (LWP 6355)]
[0x804d274] main libvlc: Running vlc with the default interface. Use 'cvlc' to
use vlc without interface.
[New Thread 0xb19f9b70 (LWP 6356)]
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")
Blocked: call to putenv("LANGUAGE=en_GB:en")
KGlobal::locale::Warning your global KLocale is being recreated with a valid
main component instead of a fake component, this usually means you tried to
call i18n related functions before your main component was created. You should
not do that since it most likely will not work
kfilemodule(6316) KSambaSharePrivate::findSmbConf: KSambaShare: Could not find
smb.conf!
kfilemodule(6316)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned
initialize() D-Bus call failed: "The name org.kde.kded was not provided by any
.service files"
Blocked: call to setenv("TZ", ":Asia/Jerusalem", 1)
Blocked: call to unsetenv("TZ")
Blocked: call to setenv("TZ", ":Asia/Jerusalem", 1)
Blocked: call to unsetenv("TZ")
Blocked: call to setenv("TZ", ":Asia/Jerusalem", 1)
Blocked: call to unsetenv("TZ")
Blocked: call to setenv("TZ", ":Asia/Jerusalem", 1)
Blocked: call to setenv("TZ", ":Asia/Jerusalem", 1)
[New Thread 0xaf60cb70 (LWP 6375)]
[New Thread 0xae98ab70 (LWP 6376)]
[Thread 0xaf60cb70 (LWP 6375) exited]
[0x81ba794] main playlist: stopping playback
[Thread 0xae98ab70 (LWP 6376) exited]
[New Thread 0xae98ab70 (LWP 6378)]
[New Thread 0xaf60cb70 (LWP 6380)]
[Thread 0xaf60cb70 (LWP 6380) exited]
[New Thread 0xaf60cb70 (LWP 6381)]
[New Thread 0xae909b70 (LWP 6382)]
[Thread 0xaf60cb70 (LWP 6381) exited]
[Thread 0xae909b70 (LWP 6382) exited]
[Thread 0xae98ab70 (LWP 6378) exited]
[Thread 0xb1afbb70 (LWP 6354) exited]
[Thread 0xb19f9b70 (LWP 6356) exited]
[Thread 0xb1a7ab70 (LWP 6355) exited]
Program received signal SIGSEGV, Segmentation fault.
0xb0b56f55 in QDBusAdaptorConnector::relaySlot (this=0x847d810,
argv=0xbfffe1b8) at qdbusabstractadaptor.cpp:270
270 relay(d->currentSender->sender, d->currentSender->signal, argv);
Missing debug package(s), you should install:
kdebase4-workspace-debug-4.6.90-3.mga2.i586
(gdb)
(gdb)
(gdb) bt
[#0](https://code.videolan.org/videolan/vlc/-/issues/0) 0xb0b56f55 in QDBusAdaptorConnector::relaySlot (this=0x847d810,
argv=0xbfffe1b8) at qdbusabstractadaptor.cpp:270
[#1](https://code.videolan.org/videolan/vlc/-/issues/1) 0xb0b572bb in QDBusAdaptorConnector::qt_metacall (this=0x847d810,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfffe1b8)
at qdbusabstractadaptor.cpp:366
[#2](https://code.videolan.org/videolan/vlc/-/issues/2) 0xb1dc577d in QMetaObject::metacall (object=0x847d810,
cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbfffe1b8)
at kernel/qmetaobject.cpp:237
[#3](https://code.videolan.org/videolan/vlc/-/issues/3) 0xb1dd4fac in QMetaObject::activate (sender=0x8477708, m=0xb1ef52b0,
local_signal_index=0, argv=0xbfffe1b8) at kernel/qobject.cpp:3278
[#4](https://code.videolan.org/videolan/vlc/-/issues/4) 0xb1dd54f5 in QObject::destroyed (this=0x8477708, _t1=0x8477708)
at .moc/release-shared/moc_qobject.cpp:149
[#5](https://code.videolan.org/videolan/vlc/-/issues/5) 0xb1dd7abd in QObject::~QObject (this=0x8477708,
__in_chrg=<value optimized out>) at kernel/qobject.cpp:843
[#6](https://code.videolan.org/videolan/vlc/-/issues/6) 0xb17f1166 in KIO::Scheduler::~Scheduler (this=0x8477708,
__in_chrg=<value optimized out>)
at /usr/src/debug/kdelibs-4.6.90/kio/kio/scheduler.cpp:777
[#7](https://code.videolan.org/videolan/vlc/-/issues/7) 0xb17f1192 in KIO::Scheduler::~Scheduler (this=0x8477708,
__in_chrg=<value optimized out>)
at /usr/src/debug/kdelibs-4.6.90/kio/kio/scheduler.cpp:779
[#8](https://code.videolan.org/videolan/vlc/-/issues/8) 0xb17f7410 in ~SchedulerPrivate ()
at /usr/src/debug/kdelibs-4.6.90/kio/kio/scheduler.cpp:667
[#9](https://code.videolan.org/videolan/vlc/-/issues/9) destroy () at /usr/src/debug/kdelibs-4.6.90/kio/kio/scheduler.cpp:736
[#10](https://code.videolan.org/videolan/vlc/-/issues/10) 0xb1740d29 in KCleanUpGlobalStatic::~KCleanUpGlobalStatic (
---Type <return> to continue, or q <return> to quit---
this=0xb1937970, __in_chrg=<value optimized out>)
at /usr/src/debug/kdelibs-4.6.90/kdecore/kernel/kglobal.h:62
[#11](https://code.videolan.org/videolan/vlc/-/issues/11) 0xb7d644cf in __run_exit_handlers () from /lib/i686/libc.so.6
[#12](https://code.videolan.org/videolan/vlc/-/issues/12) 0xb7d6452f in exit () from /lib/i686/libc.so.6
[#13](https://code.videolan.org/videolan/vlc/-/issues/13) 0xb7d4dcae in __libc_start_main () from /lib/i686/libc.so.6
[#14](https://code.videolan.org/videolan/vlc/-/issues/14) 0x08048b71 in _start () at ../sysdeps/i386/elf/start.S:119
(gdb)
[/BACKTRACE]
How reproducible:
Always.
Steps to Reproduce:
1. Start vlc from the command line.
2. Enqueue some .ogg files.
3. Media -> Save playlist to file
4. Exit VLC.
5. Start vlc again.
6. File -> Open -> "test.xspf"
7. Stary playing.
8. Save again as step No. 3.
9. Exit VLC.
10. Result: segfault on the command-line.