[k3b] [Bug 383835] Crash after closing audio project

Mark bugzilla_noreply at kde.org
Wed Aug 23 09:04:06 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=383835

--- Comment #7 from Mark <phobian at vivaldi.net> ---
G'Day again Leslie,
No idea why but can't get a breakpoint to take in gdb. All I then get is "No
symbol 'd' in current context."
The info I'm providing here probably misses the crucial point but it seems to
be the best I can do. After numerous runs, I've noticed that the first track is
always deleted correctly.

To get at least some info, I modified kfilemetadata-5.36.0/src/extractor.cpp
thus:
Extractor::~Extractor()
{
    qDebug() << "---In Extractor Destructor---";
    qDebug() << "\t" << "DEBUG d->m_plugin" << d->m_plugin;
    delete d->m_plugin;
    qDebug() << "\t" << "DEBUG d" << d;
    delete d;
}

and the resultant output and backtrace:

(K3b::AudioDoc::increaseDecoderUsage)
(K3b::AudioDoc::increaseDecoderUsage) finished
(K3b::AudioDoc::slotTrackChanged  K3b::AudioTrack(0x10ef0b0)
(K3b::AudioDoc::slotTrackChanged done
(K3b::AudioTrack::moveAfter(  K3b::AudioTrack(0x11ab770)  )
(K3b::AudioDoc::slotTrackChanged  K3b::AudioTrack(0x10ef0b0)
(K3b::AudioDoc::slotTrackChanged done
(K3b::AudioDoc::AudioDoc) deleting track  1  of  3
K3b::AudioTrack(0x1101970)
deleting sources.
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::EPubExtractor(0x1100410)
         DEBUG d 0x1102b80
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::Exiv2Extractor(0x1104a40)
         DEBUG d 0x1104aa0
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::FFmpegExtractor(0x1108270)
         DEBUG d 0x1107d50
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::OdfExtractor(0x1107d70)
         DEBUG d 0x1109070
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::Office2007Extractor(0x1107f00)
         DEBUG d 0x11099a0
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::OfficeExtractor(0x110a7f0)
         DEBUG d 0x110a6e0
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::PlainTextExtractor(0x110ac40)
         DEBUG d 0x110a8f0
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::POExtractor(0x1109f90)
         DEBUG d 0x110a6a0
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::PopplerExtractor(0x110ca00)
         DEBUG d 0x110ca40
---In Extractor Destructor---
         DEBUG d->m_plugin KFileMetaData::TagLibExtractor(0x110cef0)
         DEBUG d 0x1112fc0
finished
(K3b::AudioDoc::AudioDoc) deleted.
(K3b::AudioDoc::AudioDoc) deleting track  2  of  3
K3b::AudioTrack(0x11ab770)
deleting sources.
finished
(K3b::AudioDoc::AudioDoc) deleted.
(K3b::AudioDoc::AudioDoc) deleting track  3  of  3
K3b::AudioTrack(0x10ef0b0)
deleting sources.
---In Extractor Destructor---

Thread 1 "k3b" received signal SIGSEGV, Segmentation fault.
0x00007ffff7f9e4e8 in ?? ()
(gdb) bt
#0  0x00007ffff7f9e4e8 in  ()
#1  0x00007fffeef5aa24 in operator<<(QDebug, QObject const*) () at
/opt/qt5/lib/libQt5Core.so.5
#2  0x00007fffede5adf7 in KFileMetaData::Extractor::~Extractor()
(this=0x10ee260, __in_chrg=<optimized out>)
    at /home/mark/Downloads/kfilemetadata-5.36.0/src/extractor.cpp:36
#3  0x00007fffede5af04 in KFileMetaData::Extractor::~Extractor()
(this=0x10ee260, __in_chrg=<optimized out>)
    at /home/mark/Downloads/kfilemetadata-5.36.0/src/extractor.cpp:40
#4  0x00007fffede5e66a in
qDeleteAll<QList<KFileMetaData::Extractor*>::iterator>(QList<KFileMetaData::Extractor*>::iterator,
QList<KFileMetaData::Extractor*>::iterator) (begin=..., end=...) at
/opt/qt5/include/QtCore/qalgorithms.h:320
#5  0x00007fffede5d1b4 in
KFileMetaData::ExtractorCollection::~ExtractorCollection() (this=0x119e350,
__in_chrg=<optimized out>)
    at /home/mark/Downloads/kfilemetadata-5.36.0/src/extractorcollection.cpp:61
#6  0x00007fffede5d1f2 in
KFileMetaData::ExtractorCollection::~ExtractorCollection() (this=0x119e350,
__in_chrg=<optimized out>)
    at /home/mark/Downloads/kfilemetadata-5.36.0/src/extractorcollection.cpp:63
#7  0x00007ffff7a75983 in K3b::AudioDecoder::cleanup() (this=0x10ee0a0) at
/home/mark/Downloads/k3b/libk3b/plugin/k3baudiodecoder.cpp:550
#8  0x00007ffff7a73d3d in K3b::AudioDecoder::~AudioDecoder() (this=0x10ee0a0,
__in_chrg=<optimized out>)
    at /home/mark/Downloads/k3b/libk3b/plugin/k3baudiodecoder.cpp:166
#9  0x00007fffc8dcc32e in  () at /opt/kf5/lib/plugins/k3bwavedecoder.so
#10 0x00007fffc8dcc34a in  () at /opt/kf5/lib/plugins/k3bwavedecoder.so
#11 0x00007ffff7ad2ef5 in K3b::AudioDoc::decreaseDecoderUsage(K3b::AudioDecode

Mark

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the k3b mailing list