Bug 466760

Summary: Baloo file indexer crashes on computer boot in libc strlen function
Product: [Frameworks and Libraries] frameworks-baloo Reporter: punk.salt6165
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: REPORTED ---    
Severity: normal CC: tagwerk19
Priority: NOR    
Version First Reported In: 5.103.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Baloo debug symbols
Running Interactive Debug
Just shows the frequency of crashes (on every reboot, maybe even more often)

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. :)