Bug 246448 - Crash when exiting applications / on shutdown [Phonon::PulseSupport, Phonon::PulseSupport::getInstance, Phonon::AudioOutputPrivate::~AudioOutputPrivate]
Summary: Crash when exiting applications / on shutdown [Phonon::PulseSupport, Phonon::...
Status: RESOLVED DUPLICATE of bug 210427
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Pulsesupport (show other bugs)
Version: 4.4.2 (KDE 4.5)
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
: 252616 253529 256305 260981 262272 265777 272670 276040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-01 19:27 UTC by Oswald Buddenhagen
Modified: 2011-07-13 10:15 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oswald Buddenhagen 2010-08-01 19:27:40 UTC
Application: konversation (1.3.1+ #4064)
KDE Platform Version: 4.5.62 (KDE 4.5.62 (KDE 4.6 >= 20100729)) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.34.1 i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
just a regular logout/shutdown with some applications still running ...

-- Backtrace:
Application: Konversation (konversation), signal: Segmentation fault
[KCrash Handler]
#7  0x6f3c07c4 in Phonon::PulseSupport::PulseSupport() () from /opt/kde4/lib/libphonon.so.4
#8  0x6f3c0bcf in Phonon::PulseSupport::getInstance() () from /opt/kde4/lib/libphonon.so.4
#9  0x6f3a1c6e in Phonon::AudioOutputPrivate::~AudioOutputPrivate() () from /opt/kde4/lib/libphonon.so.4
#10 0x6f39a31f in Phonon::MediaNode::~MediaNode() () from /opt/kde4/lib/libphonon.so.4
#11 0x6f3a07c6 in Phonon::AbstractAudioOutput::~AbstractAudioOutput() () from /opt/kde4/lib/libphonon.so.4
#12 0x6f3a4df3 in Phonon::AudioOutput::~AudioOutput() () from /opt/kde4/lib/libphonon.so.4
#13 0x6e24c799 in QObjectPrivate::deleteChildren (this=0x98a1420) at /var/hda3/troll/qt-47/src/corelib/kernel/qobject.cpp:1949
#14 0x6e252835 in ~QObject (this=0x997b890, __in_chrg=<value optimized out>) at /var/hda3/troll/qt-47/src/corelib/kernel/qobject.cpp:945
#15 0x0809dcbb in Konversation::Sound::~Sound() ()
#16 0x6e24c799 in QObjectPrivate::deleteChildren (this=0x94b5d80) at /var/hda3/troll/qt-47/src/corelib/kernel/qobject.cpp:1949
#17 0x6e252835 in ~QObject (this=0x779a6c88, __in_chrg=<value optimized out>) at /var/hda3/troll/qt-47/src/corelib/kernel/qobject.cpp:945
#18 0x6e23f8c8 in ~QCoreApplication (this=0x779a6c88, __in_chrg=<value optimized out>) at /var/hda3/troll/qt-47/src/corelib/kernel/qcoreapplication.cpp:648
#19 0x6d8f22e1 in ~QApplication (this=0x779a6c88, __in_chrg=<value optimized out>) at /var/hda3/troll/qt-47/src/gui/kernel/qapplication.cpp:1156
#20 0x6e9784ba in KApplication::~KApplication() () from /opt/kde4/lib/libkdeui.so.5
#21 0x6e9802b8 in KUniqueApplication::~KUniqueApplication() () from /opt/kde4/lib/libkdeui.so.5
#22 0x0808db36 in Application::~Application() ()
#23 0x0809ba69 in main ()

Reported using DrKonqi
Comment 1 Eike Hein 2010-08-02 00:55:07 UTC
Looks like Phonon to me, I'll reassign. There have been a few crashers in PA's PulseAudio stuff over time (not just in Konvi, I also remember a big thread on Okular). IIRC it does nested event loop stuff and so on, always tricky.
Comment 2 Myriam Schweingruber 2010-08-14 12:49:56 UTC
Sorry, but your backtrace is not useful, as you are lacking debugging symbols. If you can reproduce this bug, please check here on how to get a valid backtrace:

http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Please install the phonon-dbg package.
Comment 3 Myriam Schweingruber 2010-08-14 13:11:48 UTC
nvm, I should open my eyes...
Comment 4 Myriam Schweingruber 2010-08-14 16:07:20 UTC
*** Bug 236524 has been marked as a duplicate of this bug. ***
Comment 5 Myriam Schweingruber 2010-08-14 16:07:39 UTC
*** Bug 246762 has been marked as a duplicate of this bug. ***
Comment 6 Colin Guthrie 2010-08-14 18:06:54 UTC
For reference, I think the above two duplicate marks are incorrect (one of them is a duplicate of the other, but neither relate to this bug - I don't envy Myriam's work here - lots of numbers flying all over the place and would confuse the hell out of me!! :D)
Comment 7 Myriam Schweingruber 2010-09-29 12:33:09 UTC
*** Bug 252616 has been marked as a duplicate of this bug. ***
Comment 8 Myriam Schweingruber 2010-10-09 11:56:15 UTC
*** Bug 253529 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2010-11-20 16:57:53 UTC
[Comment from a bug triager]
A better backtrace from bug 256305:
[KCrash Handler]
#6  0x00007f440a972def in Phonon::PulseSupport::PulseSupport (this=0x2b9f860)
at /usr/src/debug/phonon-4.4.2/phonon/pulsesupport.cpp:703
#7  0x00007f440a97317f in Phonon::PulseSupport::getInstance () at
/usr/src/debug/phonon-4.4.2/phonon/pulsesupport.cpp:656
#8  0x00007f440a958963 in Phonon::AudioOutputPrivate::~AudioOutputPrivate
(this=0x2b46250, __in_chrg=<value optimized out>) at
/usr/src/debug/phonon-4.4.2/phonon/audiooutput.cpp:538
#9  0x00007f440a958a49 in Phonon::AudioOutputPrivate::~AudioOutputPrivate
(this=0x2b46250, __in_chrg=<value optimized out>) at
/usr/src/debug/phonon-4.4.2/phonon/audiooutput.cpp:544
#10 0x00007f440a957a03 in Phonon::AbstractAudioOutput::~AbstractAudioOutput
(this=0x2b2fba0, __in_chrg=<value optimized out>) at
/usr/src/debug/phonon-4.4.2/phonon/abstractaudiooutput.cpp:40
#11 0x00007f440a95b47f in ~AudioOutput (this=<value optimized out>,
__in_chrg=<value optimized out>) at
/usr/src/debug/phonon-4.4.2/phonon/audiooutput.h:51
#12 Phonon::AudioOutput::~AudioOutput (this=<value optimized out>,
__in_chrg=<value optimized out>) at
/usr/src/debug/phonon-4.4.2/phonon/audiooutput.h:51
Comment 10 Dario Andres 2010-11-20 16:58:01 UTC
*** Bug 256305 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2010-12-23 00:06:00 UTC
[Comment from a bug triager]
From bug 260981:
- What I was doing when the application crashed:
Closing Konversation (through contextual menu from system tray)
Comment 12 Dario Andres 2010-12-23 00:06:29 UTC
*** Bug 260981 has been marked as a duplicate of this bug. ***
Comment 13 Pino Toscano 2011-01-06 11:16:09 UTC
*** Bug 262272 has been marked as a duplicate of this bug. ***
Comment 14 Myriam Schweingruber 2011-02-10 20:44:25 UTC
*** Bug 265777 has been marked as a duplicate of this bug. ***
Comment 15 Myriam Schweingruber 2011-05-11 14:26:16 UTC
*** Bug 272670 has been marked as a duplicate of this bug. ***
Comment 16 Myriam Schweingruber 2011-06-21 22:06:19 UTC
*** Bug 276040 has been marked as a duplicate of this bug. ***
Comment 17 Colin Guthrie 2011-06-22 13:24:43 UTC
I wonder how to fix this. It seems that the instance has already been deleted but the singleton reference remains....

Will ask Harald if he has any bright ideas here.
Comment 18 Harald Sitter 2011-07-13 10:15:13 UTC
PulseSupport is destructed before the Phonon frontend objects. However only the backend singleton can shutdown PulseSupport. The backend singleton is only deleted once all medianodes are deleted.
UNLESS
one switches the backend at runtime, in which case the backend will be destroyed before! all frontend objects (latter remain existing, whereas all backend stuff should go away) which in turn leads to this crash. Once the frontend AudioOutput tries to cleanup pulsesupport (assuming PulseSupport still exists) it falls over dead because the backend took down PulseSupprot along with it.

Backend runtime switching was for issues like this (and many others) completely removed in Phonon git master and should get released as Phonon 4.6 within the next couple of months.

*** This bug has been marked as a duplicate of bug 210427 ***