Bug 466760 - Baloo file indexer crashes on computer boot in libc strlen function
Summary: Baloo file indexer crashes on computer boot in libc strlen function
Status: REPORTED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (other bugs)
Version First Reported In: 5.103.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-03 08:58 UTC by punk.salt6165
Modified: 2023-03-07 07:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Baloo debug symbols (3.26 KB, text/plain)
2023-03-03 08:58 UTC, punk.salt6165
Details
Running Interactive Debug (295.83 KB, image/png)
2023-03-03 09:00 UTC, punk.salt6165
Details
Just shows the frequency of crashes (on every reboot, maybe even more often) (131.10 KB, image/png)
2023-03-03 09:02 UTC, punk.salt6165
Details

Note You need to log in before you can comment on or make changes to this bug.
Description punk.salt6165 2023-03-03 08:58:20 UTC
Created attachment 156949 [details]
Baloo debug symbols

SUMMARY
***

Baloo File Extractor crashes on every reboot, often 3 times in a row. Dumping core.

***


STEPS TO REPRODUCE

This is probably not reproducable so easily, but for me it crashes on every boot. It dumps core in the strlen function so probably invalid pointer....

1. Reboot computer
2. Go into Crashed Processed Viewer
3. Should see the crashes.

OBSERVED RESULT

I see the crashes in Crashed Processed Viewer.

EXPECTED RESULT

Shouldnt crash on boot.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-8600K CPU @ 3.60GHz
Memory: 47.0 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT

ADDITIONAL INFORMATION

Output from balooctl status:
---
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Unknown" msgid_plural: "" msgctxt: ""
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Idle" msgid_plural: "" msgctxt: ""
Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 479,835
Files waiting for content indexing: 0
Files failed to index: 6
Current size of index is 1.40 GiB
---


I have attached pictures showing the crashes and my view when clicking "Run interactive debugger" from within the crash reporter. I also have a debug stack trace attached with symbols.

I dont think the 6 files that fails to index are causing the crash since it doesnt crash when i attempt to re-index them with balooctl (but it still doesnt index them).
Comment 1 punk.salt6165 2023-03-03 09:00:17 UTC
Created attachment 156950 [details]
Running Interactive Debug
Comment 2 punk.salt6165 2023-03-03 09:02:03 UTC
Created attachment 156951 [details]
Just shows the frequency of crashes (on every reboot, maybe even more often)
Comment 3 punk.salt6165 2023-03-03 09:03:16 UTC
I would be happy to help run specified commands in the interactive debugger if it helps you to understand whats happenining, just let me know.
Comment 4 tagwerk19 2023-03-03 16:21:16 UTC
There is also Bug 465801, appearing on F37 and specific to Wayland. Seems to cause a crash when baloo_file_extractor finished its work.

I don't see so much of an overlap but it would be interesting if you don't get a crash when logging in with X11
Comment 5 punk.salt6165 2023-03-07 07:59:19 UTC
(In reply to tagwerk19 from comment #4)
> There is also Bug 465801, appearing on F37 and specific to Wayland. Seems to
> cause a crash when baloo_file_extractor finished its work.
> 
> I don't see so much of an overlap but it would be interesting if you don't
> get a crash when logging in with X11

For some reason I cant log in to KDE using X11 anymore, I just get thrown back into GDM when i try. If I manage to figure it out, I will report back if baloo seems OK under X11. :)