<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>380114</bug_id>
          
          <creation_ts>2017-05-23 09:48:15 +0000</creation_ts>
          <short_desc>crash on exit in ~NotifyByAudio()</short_desc>
          <delta_ts>2019-10-24 08:21:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-knotifications</product>
          <component>general</component>
          <version>5.32.0</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="RJVB">rjvbertin</reporter>
          <assigned_to name="kdelibs bugs">kdelibs-bugs-null</assigned_to>
          <cc>alejandrohp</cc>
    
    <cc>antoine.viallon</cc>
    
    <cc>antonioni.rocha</cc>
    
    <cc>ants.karner</cc>
    
    <cc>bufalo1973</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>christoph</cc>
    
    <cc>chuck.eastus</cc>
    
    <cc>dap.darkness</cc>
    
    <cc>dennis.schridde</cc>
    
    <cc>derkweijers</cc>
    
    <cc>elvis.angelaccio</cc>
    
    <cc>gplm+kde</cc>
    
    <cc>houstonjohnr</cc>
    
    <cc>j.mairboeck</cc>
    
    <cc>jcarricksmith</cc>
    
    <cc>juampa2345</cc>
    
    <cc>kde</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>lambdasoftware</cc>
    
    <cc>liferer</cc>
    
    <cc>mike</cc>
    
    <cc>nasus.maximos</cc>
    
    <cc>nick.haflinger</cc>
    
    <cc>opensuse.lietuviu.kalba</cc>
    
    <cc>parajulidarshan2</cc>
    
    <cc>piotr.mierzwinski</cc>
    
    <cc>rdieter</cc>
    
    <cc>reinhardauner</cc>
    
    <cc>s.foschi</cc>
    
    <cc>simonandric5</cc>
    
    <cc>stakanov</cc>
    
    <cc>stefanolessismc</cc>
    
    <cc>stepes27</cc>
    
    <cc>stephan.peichl</cc>
    
    <cc>thesirdmz</cc>
    
    <cc>umvmac</cc>
    
    <cc>vikigoyal</cc>
    
    <cc>wbarker</cc>
    
    <cc>Wolfgang.Reh</cc>
    
    <cc>xavier.besnard</cc>
    
    <cc>zwo</cc>
          
          <cf_commitlink>https://commits.kde.org/knotifications/59bfcffc43d298d5b123337aa2ae13dbe8dc79d6</cf_commitlink>
          <cf_versionfixedin>5.47</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1677450</commentid>
    <comment_count>0</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2017-05-23 09:48:15 +0000</bug_when>
    <thetext>Application: rkward (0.6.9z+0.7.0+devel1)
 (Compiled from sources)
Qt Version: 5.8.0
Frameworks Version: 5.32.0
Operating System: Linux 4.9.8-ck1-mainline-core2-rjvb x86_64
Distribution: Ubuntu 14.04.5 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I had started rkward/kf5 and then quit it (its R backed currently fails for me, a priori for unrelated reasons).

This may be related to ticket #348414

-- Backtrace:
Application: RKWard (rkward), signal: Segmentation fault
Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;.
[Current thread is 1 (Thread 0x7fabd98ec780 (LWP 31728))]

Thread 2 (Thread 0x7fabb69b0700 (LWP 31730)):
#0  0x00007ffc1a755b6b in ?? ()
#1  0x00007fabb0007ed0 in ?? ()
#2  0x00000000d1bf6700 in ?? ()
#3  0x00007fabb0002ed0 in ?? ()
#4  0x00007fabb0002ed0 in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fabd98ec780 (LWP 31728)):
[KCrash Handler]
#6  0x00000000028c3780 in ?? ()
#7  0x00007fabbd75a4f6 in qDeleteAll&lt;QList&lt;Phonon::MediaObject*&gt;::const_iterator&gt; (end=..., begin=...) at /opt/local/include/qt5/QtCore/qalgorithms.h:320
#8  qDeleteAll&lt;QList&lt;Phonon::MediaObject*&gt; &gt; (c=...) at /opt/local/include/qt5/QtCore/qalgorithms.h:328
#9  NotifyByAudio::~NotifyByAudio (this=0x24ee390, __in_chrg=&lt;optimized out&gt;) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_KF5-Frameworks/kf5-knotifications/work/knotifications-5.32.0/src/notifybyaudio.cpp:47
#10 0x00007fabbd75a589 in NotifyByAudio::~NotifyByAudio (this=0x24ee390, __in_chrg=&lt;optimized out&gt;) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_KF5-Frameworks/kf5-knotifications/work/knotifications-5.32.0/src/notifybyaudio.cpp:49
#11 0x00007fabd1bcccb1 in QObjectPrivate::deleteChildren (this=this@entry=0x24da050) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/kernel/qobject.cpp:1970
#12 0x00007fabd1bd692f in QObject::~QObject (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.8.0/qtbase/src/corelib/kernel/qobject.cpp:1041
#13 0x00007fabbd72dcf9 in ~KNotificationManagerSingleton (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_KF5-Frameworks/kf5-knotifications/work/knotifications-5.32.0/src/knotificationmanager.cpp:61
#14 (anonymous namespace)::Q_QGS_s_self::Holder::~Holder (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_KF5-Frameworks/kf5-knotifications/work/knotifications-5.32.0/src/knotificationmanager.cpp:67
#15 0x00007fabbd72dcf9 in operator() (this=&lt;optimized out&gt;) from /opt/local/lib/x86_64-linux-gnu/libKF5Notifications.so.5
#16 KNotificationManager::self () at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_KF5-Frameworks/kf5-knotifications/work/knotifications-5.32.0/src/knotificationmanager.cpp:71
#17 0x00007fabd0f6e1a9 in __run_exit_handlers (status=0, listp=0x7fabd12f36c8 &lt;__exit_funcs&gt;, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#18 0x00007fabd0f6e1f5 in __GI_exit (status=&lt;optimized out&gt;) at exit.c:104
#19 0x00007fabd0f53f4c in __libc_start_main (main=0x4caa50 &lt;main(int, char**)&gt;, argc=3, argv=0x7ffc1a6bea28, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffc1a6bea18) at libc-start.c:321
#20 0x00000000004cdadd in _start ()

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1678345</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-29 23:12:55 +0000</bug_when>
    <thetext>*** Bug 379786 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1678347</commentid>
    <comment_count>2</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-29 23:14:12 +0000</bug_when>
    <thetext>*** Bug 377278 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1678349</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-29 23:14:41 +0000</bug_when>
    <thetext>*** Bug 370311 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1678351</commentid>
    <comment_count>4</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-29 23:15:05 +0000</bug_when>
    <thetext>*** Bug 373882 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1678353</commentid>
    <comment_count>5</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-29 23:15:35 +0000</bug_when>
    <thetext>*** Bug 346621 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1678355</commentid>
    <comment_count>6</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-05-29 23:15:58 +0000</bug_when>
    <thetext>*** Bug 366482 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1679065</commentid>
    <comment_count>7</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-06-02 18:01:01 +0000</bug_when>
    <thetext>*** Bug 379724 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1679067</commentid>
    <comment_count>8</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-06-02 18:02:03 +0000</bug_when>
    <thetext>*** Bug 378920 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685119</commentid>
    <comment_count>9</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2017-06-25 12:22:37 +0000</bug_when>
    <thetext>*** Bug 381371 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685120</commentid>
    <comment_count>10</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2017-06-25 12:31:30 +0000</bug_when>
    <thetext>IMHO double delete, will fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685121</commentid>
    <comment_count>11</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2017-06-25 12:35:46 +0000</bug_when>
    <thetext>Posted patch:

https://phabricator.kde.org/D6376

Thanks for the report, ugly :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685661</commentid>
    <comment_count>12</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-06-27 13:52:37 +0000</bug_when>
    <thetext>*** Bug 381228 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1687188</commentid>
    <comment_count>13</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2017-07-06 09:32:03 +0000</bug_when>
    <thetext>*** Bug 381962 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689442</commentid>
    <comment_count>14</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-07-18 04:01:18 +0000</bug_when>
    <thetext>*** Bug 382387 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1694361</commentid>
    <comment_count>15</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-08-13 11:42:44 +0000</bug_when>
    <thetext>*** Bug 383449 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1695890</commentid>
    <comment_count>16</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-08-21 15:27:19 +0000</bug_when>
    <thetext>*** Bug 383777 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696928</commentid>
    <comment_count>17</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2017-08-26 08:43:14 +0000</bug_when>
    <thetext>*** Bug 384017 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1697534</commentid>
    <comment_count>18</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-08-29 11:13:11 +0000</bug_when>
    <thetext>*** Bug 384124 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1698861</commentid>
    <comment_count>19</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-09-04 15:27:19 +0000</bug_when>
    <thetext>*** Bug 383347 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710372</commentid>
    <comment_count>20</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-11-09 00:28:11 +0000</bug_when>
    <thetext>*** Bug 386195 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710376</commentid>
    <comment_count>21</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-11-09 00:51:37 +0000</bug_when>
    <thetext>*** Bug 386559 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1714274</commentid>
    <comment_count>22</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-11-29 19:00:17 +0000</bug_when>
    <thetext>*** Bug 386770 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1714276</commentid>
    <comment_count>23</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-11-29 19:00:40 +0000</bug_when>
    <thetext>*** Bug 386184 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1714278</commentid>
    <comment_count>24</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-11-29 19:00:59 +0000</bug_when>
    <thetext>*** Bug 386022 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717087</commentid>
    <comment_count>25</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2017-12-16 12:48:55 +0000</bug_when>
    <thetext>*** Bug 387954 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717657</commentid>
    <comment_count>26</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-12-20 00:50:55 +0000</bug_when>
    <thetext>*** Bug 387237 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719221</commentid>
    <comment_count>27</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-12-31 13:46:17 +0000</bug_when>
    <thetext>*** Bug 387752 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719449</commentid>
    <comment_count>28</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-01-02 00:44:19 +0000</bug_when>
    <thetext>*** Bug 387780 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721324</commentid>
    <comment_count>29</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-01-10 17:02:53 +0000</bug_when>
    <thetext>*** Bug 388052 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726076</commentid>
    <comment_count>30</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-01-31 02:09:23 +0000</bug_when>
    <thetext>*** Bug 388958 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737915</commentid>
    <comment_count>31</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-03-14 00:19:06 +0000</bug_when>
    <thetext>*** Bug 391833 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752449</commentid>
    <comment_count>32</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2018-05-14 17:46:42 +0000</bug_when>
    <thetext>Git commit 59bfcffc43d298d5b123337aa2ae13dbe8dc79d6 by Albert Astals Cid.
Committed on 14/05/2018 at 17:46.
Pushed by aacid into branch &apos;master&apos;.

Fix crashes in NotifyByAudio when closing applications

Summary:
We have a race between close() and onAudioFinished() that resulted in the same
Phonon::MediaObject being added twice to m_reusablePhonons, which would result in a crash

Reviewers: #frameworks, cullmann, rjvbb, apol

Reviewed By: apol

Subscribers: cfeck, rjvbb, mpyne

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D11891

M  +9    -0    src/notifybyaudio.cpp

https://commits.kde.org/knotifications/59bfcffc43d298d5b123337aa2ae13dbe8dc79d6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1753042</commentid>
    <comment_count>33</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-05-16 22:21:03 +0000</bug_when>
    <thetext>*** Bug 393587 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761270</commentid>
    <comment_count>34</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-06-15 00:07:36 +0000</bug_when>
    <thetext>*** Bug 394718 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1762616</commentid>
    <comment_count>35</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-06-20 19:04:39 +0000</bug_when>
    <thetext>*** Bug 395663 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767735</commentid>
    <comment_count>36</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-07-19 12:46:10 +0000</bug_when>
    <thetext>*** Bug 395999 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769986</commentid>
    <comment_count>37</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-08-02 18:47:48 +0000</bug_when>
    <thetext>*** Bug 396545 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1805815</commentid>
    <comment_count>38</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-11-01 22:06:09 +0000</bug_when>
    <thetext>*** Bug 400426 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860118</commentid>
    <comment_count>39</comment_count>
    <who name="Elvis Angelaccio">elvis.angelaccio</who>
    <bug_when>2019-06-02 08:32:16 +0000</bug_when>
    <thetext>*** Bug 408185 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887438</commentid>
    <comment_count>40</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-10-24 08:21:41 +0000</bug_when>
    <thetext>*** Bug 393772 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>