https://bugs.kde.org/show_bug.cgi?id=435294
Bug ID: 435294 Summary: Baloo crashes when creating multiple directories in an indexed path Product: frameworks-baloo Version: 5.80.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Baloo File Daemon Assignee: stefan.bru...@rwth-aachen.de Reporter: o...@geek.co.il CC: baloo-bugs-n...@kde.org, n...@kde.org Target Milestone: --- SUMMARY With the file indexer enabled and idling, creating multiple directories and files at once in a monitoring path (for example as a result of a tarball extraction), file indexer crashes with this in the log: ----8<---- Apr 03 09:52:55 vesho baloo_file[3346599]: kf.baloo: "/home/odeda/Documents/bigor/test/foo/" EventCreate Apr 03 09:52:55 vesho baloo_file[3346599]: kf.baloo: "/home/odeda/Documents/bigor/test/a" EventCreate Apr 03 09:52:55 vesho baloo_file[3346599]: ASSERT: "!filePath.endsWith(QLatin1Char('/'))" in file /home/odeda/cvs/baloo/src/file/newfileindexer.cpp, line 38 Apr 03 09:52:56 vesho plasmashell[3346599]: KCrash: Attempting to start /usr/bin/baloo_file Apr 03 09:52:56 vesho plasmashell[3346599]: KCrash: crashing... crashRecursionCounter = 2 Apr 03 09:52:56 vesho plasmashell[3346599]: KCrash: Application Name = baloo_file path = /usr/bin pid = 3346599 Apr 03 09:52:56 vesho plasmashell[3346599]: KCrash: Arguments: /usr/bin/baloo_file Apr 03 09:52:56 vesho plasmashell[3346599]: KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi ----8<---- STEPS TO REPRODUCE 1. Configure file indexer to monitor a smaller directory structure, so initial indexing can complete quickly (my test has just a few thousands text, pdf and image files). 2. Make sure the indexer is stopped (`killall baloo_file baloo_file_extractor`) 3. Purge the database (`balooctl purge`) 4. Start the file indexer (I use the Info Center's File Index Monitor) 5. Quickly dump a few new files and directories into the monitored directory. I use this repro script: (mkdir ~/TESTDIR/test -p; base64 -d | tar -C ~/TESTDIR/test -jx) <<<QlpoOTFBWSZTWfR8wfsAAI97hcCAAIBAAf+AAzN/AJ4AAAEAEAAIMADWxCKRMU0AGg09QAMVNDQA9QNAACKmpGjQxGIAxH6pkDB8E5T2JBOI+AJTwSQaq2ZB4BmZJIyiC0dg7wbxoIEDQYHMYGZSrXIoxAVcQdAId8+1732iFgchknCJg5TOQzGBlfYYE4SoyZI4DAFWpgMwItPa83EgGoVLOLO1IhoDSivkc4H6NyYeweoNAaggKx0H6GYEjIyNYgfxdyRThQkPR8wfsA== This creates the directory structure test/foo/bar with a single empty file in each directory. OBSERVED RESULT Baloo daemon crashes. EXPECTED RESULT Baloo should not crash. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 5.21.80 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2 -- You are receiving this mail because: You are watching all bug changes.