<table><tr><td style="">poboiko added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16165">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D16165#342550" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D16165#342550</a>, <a href="https://phabricator.kde.org/p/bruns/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@bruns</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Unfortunately 375131 is quite vague, they all speak about "baloo" hanging, but as "baloo" is not a single process, it is impossible to tell for sure which process crashes or hangs.</p>

<p>Apparent hangs of baloo_file are easy to produce, create a file 'baloo_file_extractor' with the following content:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="bash" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span class="ch">#! /bin/bash</span>
<span style="color: #304a96">echo</span> <span style="color: #766510">"S foobar"</span></pre></div>

<p>make it executable, and then (after killing the current baloo_file), run <tt style="background: #ebebeb; font-size: 13px;">PATH=./<path_with_fake_extractor> <path_to>/baloo_file</tt>. When you run baloo_monitor, you will see it says "Indexing foobar", but will make no further progress as the fake extractor has exited (equivalent to a crash here).</p>

<p>When you run baloo_file from build/bin, make sure you have the relevant baloo_file_extractor in the PATH first.</p></div>
</blockquote>

<p>Yeah, that's true. I guess that should be also not too hard to fix.<br />
But there is two parts of the bug. The first one is what you mentioned, while the second is about <tt style="background: #ebebeb; font-size: 13px;">baloo_file_extractor</tt> eating 100% CPU part, which is a bit more "interesting"...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R286 KFileMetaData</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16165">https://phabricator.kde.org/D16165</a></div></div><br /><div><strong>To: </strong>poboiko, Baloo, Frameworks<br /><strong>Cc: </strong>bruns, astippich, kde-frameworks-devel, ashaposhnikov, michaelh, spoorun, ngraham, abrahams<br /></div>