<?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>305654</bug_id>
          
          <creation_ts>2012-08-23 10:07:16 +0000</creation_ts>
          <short_desc>Crash in KSharedDataCache::Private::mapSharedMemory</short_desc>
          <delta_ts>2018-11-01 23:52:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>kshareddatacache</component>
          <version>4.11.3</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jon Flowers">jonflowers10</reporter>
          <assigned_to name="kdelibs bugs">kdelibs-bugs-null</assigned_to>
          <cc>andrew.crouthamel</cc>
    
    <cc>anon</cc>
    
    <cc>cfeck</cc>
    
    <cc>coates</cc>
    
    <cc>danilo</cc>
    
    <cc>e.torkhov</cc>
    
    <cc>ehakanduran</cc>
    
    <cc>ichery865</cc>
    
    <cc>ilex.chesnokov</cc>
    
    <cc>jucortesr</cc>
    
    <cc>kde-games-bugs-null</cc>
    
    <cc>kdebugs</cc>
    
    <cc>kdebugs</cc>
    
    <cc>mpyne</cc>
    
    <cc>paul.millar</cc>
    
    <cc>rahulc93</cc>
    
    <cc>rdieter</cc>
    
    <cc>ricadvert</cc>
    
    <cc>wnc7prog</cc>
    
    <cc>zexavexxe</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1290266</commentid>
    <comment_count>0</comment_count>
    <who name="Jon Flowers">jonflowers10</who>
    <bug_when>2012-08-23 10:07:16 +0000</bug_when>
    <thetext>Application: kpat (3.6)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-29-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I was playing Yukon
I used control+z to undo a move when I noticed the size of the cards increase. I think I may have touched the trackpad while still holding the control key down. I then tried to decrease the size of the cards which were now too big for my screen so I held down control+z and zoomed out using the trackpad. That was when the crash occurred. The program restarts but when I choose a game it instantly crashes. It makes no difference which game I choose.

The crash can be reproduced every time.

-- Backtrace:
Application: KPatience (kpat), signal: Bus error
Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;.
[Current thread is 1 (Thread 0x7f6a610d4780 (LWP 13235))]

Thread 2 (Thread 0x7f6a4ce6f700 (LWP 13238)):
#0  0x00007f6a5a330fc0 in __pthread_mutex_lock (mutex=0x7f6a48000a60) at pthread_mutex_lock.c:113
#1  0x00007f6a59aa55a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6a59a691df in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6a59a69f04 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6a59a6a164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f6a5f1bf426 in QEventDispatcherGlib::processEvents (this=0x7f6a480008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f6a5f18ec82 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f6a5f18eed7 in QEventLoop::exec (this=0x7f6a4ce6edd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f6a5f08dfa7 in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:501
#9  0x00007f6a5f16e9ff in QInotifyFileSystemWatcherEngine::run (this=0x1feb960) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f6a5f090fcb in QThreadPrivate::start (arg=0x1feb960) at thread/qthread_unix.cpp:298
#11 0x00007f6a5a32ee9a in start_thread (arg=0x7f6a4ce6f700) at pthread_create.c:308
#12 0x00007f6a5da824bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6a610d4780 (LWP 13235)):
[KCrash Handler]
#6  0x00007f6a5f722804 in testAndSetOrdered (newValue=1, expectedValue=0, this=0x7f6a472d8000) at /usr/include/qt4/QtCore/qatomic_x86_64.h:145
#7  testAndSetAcquire (newValue=1, expectedValue=0, this=0x7f6a472d8000) at /usr/include/qt4/QtCore/qatomic_x86_64.h:267
#8  KSharedDataCache::Private::mapSharedMemory (this=0x1edc5f0) at ../../kdecore/util/kshareddatacache.cpp:1158
#9  0x00007f6a5f71ed43 in Private (expectedItemSize=0, defaultCacheSize=3145728, name=..., this=0x1edc5f0) at ../../kdecore/util/kshareddatacache.cpp:1003
#10 KSharedDataCache::KSharedDataCache (this=0x1ff9e30, cacheName=..., defaultCacheSize=3145728, expectedItemSize=0) at ../../kdecore/util/kshareddatacache.cpp:1428
#11 0x00007f6a5fc5bbde in KImageCache::KImageCache (this=0x1ff9e30, cacheName=..., defaultCacheSize=3145728, expectedItemSize=&lt;optimized out&gt;) at ../../kdeui/util/kimagecache.cpp:86
#12 0x00007f6a60ccd8d5 in KAbstractCardDeck::setTheme(KCardTheme const&amp;) () from /usr/lib/libkcardgame.so
#13 0x00007f6a60cd1d89 in KCardDeck::KCardDeck(KCardTheme const&amp;, QObject*) () from /usr/lib/libkcardgame.so
#14 0x000000000042e9b7 in _start ()

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1394871</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-03 18:47:45 +0000</bug_when>
    <thetext>*** Bug 324465 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1394872</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2013-09-03 18:49:44 +0000</bug_when>
    <thetext>bug #324465 suggest that kwin (this backtrace) and plasma-desktop (just mentioned) crashed at the same time and plasma desktop required double clicks after the auto restart.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411980</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-11-16 13:23:25 +0000</bug_when>
    <thetext>*** Bug 325102 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411982</commentid>
    <comment_count>4</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-11-16 13:24:00 +0000</bug_when>
    <thetext>*** Bug 327618 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411984</commentid>
    <comment_count>5</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-11-16 13:24:19 +0000</bug_when>
    <thetext>*** Bug 327632 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411986</commentid>
    <comment_count>6</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-11-16 13:24:36 +0000</bug_when>
    <thetext>*** Bug 327642 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411993</commentid>
    <comment_count>7</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-11-16 13:34:59 +0000</bug_when>
    <thetext>If you can reproduce this crash (starting system settings/kmix/amarok), please check:

- does removing /var/tmp/kdecache-USERNAME/plasma-*.kcache files prevent the crash? (Please save files for later inspection)

- did you customize the Workspace theme with &quot;Theme Details&quot; in system settings?

- is there a plasma-*.kcache file for the Workspace theme you use (or used in Theme Details)?

- if unsure, add the output of command &quot;dir /var/tmp/kdecache-USERNAME/plasma-*&quot; and the file &quot;~/.kde/share/config/plasmarc&quot;.

Also, did you use the &quot;bleachbit&quot; cleaning tool?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1412085</commentid>
    <comment_count>8</comment_count>
    <who name="E. Hakan Duran">ehakanduran</who>
    <bug_when>2013-11-16 20:28:05 +0000</bug_when>
    <thetext>Please disregard my bug report. I realized that this happened in my case due to a lack of virtual hard drive space. I apologize for the inconvenience my bug report caused.

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1420701</commentid>
    <comment_count>9</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-12-26 15:06:49 +0000</bug_when>
    <thetext>*** Bug 329231 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1421707</commentid>
    <comment_count>10</comment_count>
    <who name="Zetok">zexavexxe</who>
    <bug_when>2013-12-30 20:58:31 +0000</bug_when>
    <thetext>After update to 4.12 I can&apos;t reproduce it.

I don&apos;t remember customizing Workspace theme, but I&apos;m unsure what is exact meaning of &apos;customize&apos;. AFAIR only thing I did, was switching to other theme, which is Caledonia.

There is plasma-*.kcache file for Workspace theme I use:
-rw-r--r--  1 zetok zetok  81M 12-28 10:26 plasma_theme_Caledonia.kcache</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422444</commentid>
    <comment_count>11</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-01-03 13:13:06 +0000</bug_when>
    <thetext>Other possible causes (in addition to what is mentioned in comment #7):

- /var is not on an ext4 filesystem, so the cache could not be pre-allocated

- /var is full, so the cache could not be pre-allocated

Regarding bleachbit, I now found out, why people are still using it. Some privacy related web sites recommend using bleachbit, but unless their developers fix the issue with overwriting cache files while KDE runs, you _have_ to expect the crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422446</commentid>
    <comment_count>12</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-01-03 13:13:22 +0000</bug_when>
    <thetext>*** Bug 329552 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422450</commentid>
    <comment_count>13</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-01-03 13:19:23 +0000</bug_when>
    <thetext>*** Bug 329548 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422451</commentid>
    <comment_count>14</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-01-03 13:21:49 +0000</bug_when>
    <thetext>The backtrace for bug 329548 is a little bit different, maybe it gives a hint, if/how a crash could be prevented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422903</commentid>
    <comment_count>15</comment_count>
    <who name="Christian Esken">esken</who>
    <bug_when>2014-01-05 19:47:14 +0000</bug_when>
    <thetext>*** Bug 329626 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424366</commentid>
    <comment_count>16</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-01-12 19:21:57 +0000</bug_when>
    <thetext>*** Bug 329868 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1425520</commentid>
    <comment_count>17</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-01-18 01:00:06 +0000</bug_when>
    <thetext>*** Bug 330055 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429261</commentid>
    <comment_count>18</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-02-07 08:37:10 +0000</bug_when>
    <thetext>*** Bug 330874 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437855</commentid>
    <comment_count>19</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-03-26 20:48:28 +0000</bug_when>
    <thetext>*** Bug 332634 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453298</commentid>
    <comment_count>20</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-04 21:27:43 +0000</bug_when>
    <thetext>*** Bug 335791 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454024</commentid>
    <comment_count>21</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-09 00:21:52 +0000</bug_when>
    <thetext>*** Bug 335959 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454037</commentid>
    <comment_count>22</comment_count>
    <who name="">kdebugs</who>
    <bug_when>2014-06-09 01:36:16 +0000</bug_when>
    <thetext>Is there a good reason for Bug 327618 to still be open (see comment 4 above)?  It appears to have been triggered by low disk space, as my crash and others&apos; were.  Is there, besides that, a reliable way to reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454076</commentid>
    <comment_count>23</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-09 09:32:38 +0000</bug_when>
    <thetext>I already marked that bug as a duplicate. Please ask the reporter of bug 327618, why he reopened it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1457685</commentid>
    <comment_count>24</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-25 09:36:47 +0000</bug_when>
    <thetext>*** Bug 327618 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579490</commentid>
    <comment_count>25</comment_count>
    <who name="Märt Bakhoff">anon</who>
    <bug_when>2016-02-29 13:53:32 +0000</bug_when>
    <thetext>SDDM greeter started crashing on startup after upgrading to plasma-framework-5.19 on arch linux x86_64. Qt version 5.5.1, SDDM 0.13 with breeze theme. Reproduces every time. Downgrading to plasma-framework 5.18 helps. Is this the right bug or should I create a new one? 

Core was generated by `/usr/bin/sddm-greeter --socket /tmp/sddm-:0-VmMDWH --theme /usr/share/sddm/them&apos;.
Program terminated with signal SIGBUS, Bus error.
#0  0x00007f3a10faa4be in QBasicAtomicOps&lt;4&gt;::testAndSetRelaxed&lt;int&gt; (newValue=1, expectedValue=0, 
    _q_value=@0x7f3a048b3000: &lt;error reading variable&gt;) at /usr/include/qt/QtCore/qatomic_x86.h:232
232                      : &quot;memory&quot;);
[Current thread is 1 (Thread 0x7f3a274a77c0 (LWP 11680))]
(gdb) bt
#0  0x00007f3a10faa4be in QBasicAtomicOps&lt;4&gt;::testAndSetRelaxed&lt;int&gt; (newValue=1, expectedValue=0, 
    _q_value=@0x7f3a048b3000: &lt;error reading variable&gt;) at /usr/include/qt/QtCore/qatomic_x86.h:232
#1  QGenericAtomicOps&lt;QBasicAtomicOps&lt;4&gt; &gt;::testAndSetAcquire&lt;int, int&gt; (newValue=1, expectedValue=0, 
    _q_value=@0x7f3a048b3000: &lt;error reading variable&gt;) at /usr/include/qt/QtCore/qgenericatomic.h:144
#2  QBasicAtomicInteger&lt;int&gt;::testAndSetAcquire (newValue=1, expectedValue=0, this=0x7f3a048b3000) at /usr/include/qt/QtCore/qbasicatomic.h:138
#3  KSharedDataCache::Private::mapSharedMemory (this=this@entry=0xd52660)
    at /tmp/kcoreaddons/src/kcoreaddons-5.19.0/src/lib/caching/kshareddatacache.cpp:1144
#4  0x00007f3a10fa488a in KSharedDataCache::Private::Private (expectedItemSize=0, defaultCacheSize=16777216, name=..., this=0xd52660)
    at /tmp/kcoreaddons/src/kcoreaddons-5.19.0/src/lib/caching/kshareddatacache.cpp:987
#5  KSharedDataCache::KSharedDataCache (this=0xc05e60, cacheName=..., defaultCacheSize=16777216, expectedItemSize=0)
    at /tmp/kcoreaddons/src/kcoreaddons-5.19.0/src/lib/caching/kshareddatacache.cpp:1383
#6  0x00007f3a11b75058 in KSharedPixmapCacheMixin&lt;KSharedDataCache&gt;::KSharedPixmapCacheMixin (expectedItemSize=0, defaultCacheSize=16777216, 
    cacheName=..., this=0xc05e50) at /usr/include/KF5/KGuiAddons/kimagecache.h:89</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584303</commentid>
    <comment_count>26</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2016-03-23 02:25:57 +0000</bug_when>
    <thetext>This might be the right bug ticket (the backtrace is at least similar), but have you checked whether some of the workarounds mentioned in previous comments work?

At the very least, is the hard disk that hosts the /var directory nearly full? If so, you&apos;ll need to free up enough space if you&apos;re using a file system that doesn&apos;t support the posix_fallocate() system call that KSharedDataCache uses to try to avoid this crash.

Have you been using Bleachbit? If so, stop (or at least configure it to stop trying to shred important system files like the various caches used by Plasma...).

Finally, you may want to remove any existing KSharedDataCache caches (*.kcache files, either under &quot;$HOME/.cache&quot; or /var/tmp/kdecache-$USER or wherever else your system is configured to store cached data). Removing the cache (without editing its contents in the process) is always safe to do even if the system is running. If SDDM works normally after this, then it *is* a bug but at least you&apos;ll have a workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1805137</commentid>
    <comment_count>27</comment_count>
    <who name="Andrew Crouthamel">andrew.crouthamel</who>
    <bug_when>2018-11-01 13:40:57 +0000</bug_when>
    <thetext>Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1805837</commentid>
    <comment_count>28</comment_count>
    <who name="Andrew Crouthamel">andrew.crouthamel</who>
    <bug_when>2018-11-01 23:52:11 +0000</bug_when>
    <thetext>Per reporter via email:

Sorry, I can&apos;t re-test it.
I don&apos;t remember for what hardware it was.
And as it was so long, and no fresh reports - than it can closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>