Bug 384209

Summary: Confusing error message when mmap() fails
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Marc Mezzarobba <marc+bugs>
Component: generalAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: stefan.bruens
Priority: NOR    
Version First Reported In: 5.37.0   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marc Mezzarobba 2017-08-31 07:26:08 UTC
It would be nice it the following could give a more helpful error:

$ ulimit -Sv $((6*1024*1024))
$ balooctl enable
Failed to create database, removing corrupted database.
Failed to create database after deleting corrupted one.

(Probably related to bug 364042.)
Comment 1 Stefan BrĂ¼ns 2018-10-29 19:48:01 UTC
Why are you limiting the address range? baloo needs sufficient address space to mmap the db.
Comment 2 Marc Mezzarobba 2018-10-31 09:17:50 UTC
It wasn't intentional. Baloo was failing to start, and it took me a while to understand what was going on. It is a minor point in any case.
Comment 3 Christoph Feck 2018-11-09 11:11:01 UTC
Changing baloo not to use the mmap-based LMDB would entail a complete rewrite, which is not planned at this moment.