Bug 1968 - VLC generates a segfault upon exiting after loading an XSPF file and saving it.
Summary: VLC generates a segfault upon exiting after loading an XSPF file and saving it.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: John Balcaen
QA Contact:
URL: https://trac.videolan.org/vlc/ticket/...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2011-06-29 18:45 CEST by Shlomi Fish
Modified: 2012-04-13 12:11 CEST (History)
2 users (show)

See Also:
Source RPM: qt4-4.7.4-11.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Shlomi Fish 2011-06-29 18:45:06 CEST
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  0xb0b56f55 in QDBusAdaptorConnector::relaySlot (this=0x847d810, 
    argv=0xbfffe1b8) at qdbusabstractadaptor.cpp:270
#1  0xb0b572bb in QDBusAdaptorConnector::qt_metacall (this=0x847d810, 
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfffe1b8)
    at qdbusabstractadaptor.cpp:366
#2  0xb1dc577d in QMetaObject::metacall (object=0x847d810, 
    cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbfffe1b8)
    at kernel/qmetaobject.cpp:237
#3  0xb1dd4fac in QMetaObject::activate (sender=0x8477708, m=0xb1ef52b0, 
    local_signal_index=0, argv=0xbfffe1b8) at kernel/qobject.cpp:3278
#4  0xb1dd54f5 in QObject::destroyed (this=0x8477708, _t1=0x8477708)
    at .moc/release-shared/moc_qobject.cpp:149
#5  0xb1dd7abd in QObject::~QObject (this=0x8477708, 
    __in_chrg=<value optimized out>) at kernel/qobject.cpp:843
#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  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  0xb17f7410 in ~SchedulerPrivate ()
    at /usr/src/debug/kdelibs-4.6.90/kio/kio/scheduler.cpp:667
#9  destroy () at /usr/src/debug/kdelibs-4.6.90/kio/kio/scheduler.cpp:736
#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 0xb7d644cf in __run_exit_handlers () from /lib/i686/libc.so.6
#12 0xb7d6452f in exit () from /lib/i686/libc.so.6
#13 0xb7d4dcae in __libc_start_main () from /lib/i686/libc.so.6
#14 0x08048b71 in _start () at ../sysdeps/i386/elf/start.S:119
(gdb) 

[/BACKTRACE]

Version-Release number of selected component (if applicable):

Cauldron.

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.
Comment 1 Shlomi Fish 2011-08-02 18:07:18 CEST
Hi all,

I nearly forgot about this bug, but I can still reproduce it on Mageia Cauldron (up-to-date as of today) on a Pentium 4 x86-32 machine. Can anyone look into it?

I reported this bug over a month ago and no one replied.

Regards,

-- Shlomi Fish
Comment 2 Manuel Hiebel 2011-08-02 23:56:32 CEST
upstream bug
Comment 3 Shlomi Fish 2011-08-03 10:04:33 CEST
(In reply to comment #2)
> upstream bug

Indeed, one can find the explanation here:

https://trac.videolan.org/vlc/ticket/5148#comment:1

Regards,

-- Shlomi Fish

URL: (none) => https://trac.videolan.org/vlc/ticket/5148#comment:1

Manuel Hiebel 2011-08-03 10:16:54 CEST

Keywords: (none) => UPSTREAM

Comment 4 Samuel Verschelde 2011-10-01 02:04:32 CEST
Assigning to maintainer (who happens to be the bug reporter :)) now that our maintainers database has an entry for this package. Please assign back to bugsquad@mageia.org in case of a mistake from me.

Assignee: bugsquad => shlomif

Comment 5 Marja Van Waes 2012-01-06 20:35:01 CET
pinging. because nothing happened to this report since more than 3 months ago, and it still has the status NEW or REOPENED

@ Shlomi

Upstream it says (but I'm pretty sure you know):

    Status changed from new to closed
    Resolution set to notvlc
    Component changed from Unknown to Interface: Qt4

Well known Qt4 bug that gets triggered by the KDE open/save dialogs.

See also:  https://bugs.launchpad.net/kdelibs/+bug/408719  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580396  http://bugs.kde.org/show_bug.cgi?id=234484

Is this true?:

https://bugs.launchpad.net/kdelibs/+bug/408719/comments/21

We have qt4-4.7.4-11.mga2.src.rpm, now 

cc'ing qt4 maintainer.

@ John,

It seems this bug was wrongly assigned. Do you agree this is a qt4 bug that can be solved by upgrading to version 4.8 ?

CC: (none) => marja11

Comment 6 Marja Van Waes 2012-01-06 20:36:17 CET
(In reply to comment #5)

> 
> cc'ing qt4 maintainer.
> 
> @ John,
> 
> It seems this bug was wrongly assigned. Do you agree this is a qt4 bug that can
> be solved by upgrading to version 4.8 ?

sorry, forgot to put you in the cc

CC: (none) => balcaen.john

Comment 7 Shlomi Fish 2012-01-09 12:10:56 CET
Is there any way I can resolve it as an UPSTREAM bug?

Regards,

-- Shlomi Fish
Comment 8 Marja Van Waes 2012-01-09 16:20:41 CET
(In reply to comment #7)
> Is there any way I can resolve it as an UPSTREAM bug?
> 
> Regards,
> 
> -- Shlomi Fish

No, we don't have that resolution, and it isn't in Samuel's proposed workflow, either
http://stormi.lautre.net/fichiers/mageia/triage.png

But if you agree it is a qt4 bug, you can assign it to that package and you can reassign this bug to John Balcaen :)
Comment 9 Shlomi Fish 2012-01-09 19:08:52 CET
OK, since it's a Qt4 bug I assigned it Qt4 and to John Balcean.

Assignee: shlomif => balcaen.john
Source RPM: vlc-1.1.10-3.mga2.tainted.src.rpm => qt4-4.7.4-11.mga2.src.rpm

Comment 10 John Balcaen 2012-01-09 20:17:12 CET
(In reply to comment #5)
[...]
> 
> @ John,
> 
> It seems this bug was wrongly assigned. Do you agree this is a qt4 bug that can
> be solved by upgrading to version 4.8 ?

No, because it is not fixed in Qt 4.8 ( cf http://bugs.kde.org/show_bug.cgi?id=234484)
And if we're reading thiago answer (http://lists.kde.org/?l=kde-core-devel&m=130268229205730&w=2 ) vlc is still crashing with yet another error so upgrading to Qt 4.8 won't fix it.
Qt upstream close a bug related as invalid : https://bugreports.qt.nokia.com/browse/QTBUG-18205

For now i'll try to apply the workaround patch for kdelibs.
Comment 11 John Balcaen 2012-01-09 20:44:35 CET
The patch seems to apply cleanly & build without problem locally on iurt so i push it on the BS, could you please test & see if it's working.
So far i'm not sure it's going to work with Qt 4.8 (not to notice that as said previously vlc is crashing for something different now in Qt 4.8 so..)
Comment 12 John Balcaen 2012-04-13 00:32:58 CEST
is it still valid ?
Marja Van Waes 2012-04-13 07:35:14 CEST

Keywords: (none) => NEEDINFO

Comment 13 Shlomi Fish 2012-04-13 12:11:28 CEST
(In reply to comment #12)
> is it still valid ?

Appears to work fine now on my Cauldron x86-64 laptop. So I'll close this bug now.

Regards,

-- Shlomi Fish

Keywords: NEEDINFO => (none)
Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.