Description of problem: Recoll GUI crashes on startup Version-Release number of selected component (if applicable): 1.23.7-2.fc28 How reproducible: always Steps to Reproduce: 1. Start the GUI Actual results: /usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = regmatch_t; _Alloc = std::allocator<regmatch_t>; std::vector<_Tp, _Alloc>::reference = regmatch_t&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed. Aborted (core dumped) This was reported there, with a little more detail: https://opensourceprojects.eu/p/recoll1/tickets/45/ The code built 'by hand' (without the additional rpm build flags) works fine. The reporting user indicates a workaround by slightly changing the code in a way which should be equivalent to the existing code, which is, as far as I can see, correct. As they do not indicate how the code was rebuilt, the change in behaviour could be due to the different build method. The array is of size 2, so there should be no problem accessing the first element (meaning the assertion "__n < this->size()" should not fail as far as I can see).
Recompiling RPM with patch added did not help. I still get: /usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = regmatch_t; _Alloc = std::allocator<regmatch_t>; std::vector<_Tp, _Alloc>::reference = regmatch_t&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed. zsh: abort (core dumped) recoll
It don't crash in Fedora 27 (same spec file used).
Created attachment 1435749 [details] Fix c++ vector allocation
It was a recoll issue actually. It had no consequences, but it triggered an assertion activated by the _GLIBCXX_ASSERTIONS flag (maybe new in Fedora 28?). I just attached a patch.
Thanks! Yes, _GLIBCXX_ASSERTIONS is new in F28.
recoll-1.23.7-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8c47d084e9
recoll-1.23.7-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-ff500f5c32
recoll-1.23.7-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8c47d084e9
recoll-1.23.7-3.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-ff500f5c32
*** Bug 1567587 has been marked as a duplicate of this bug. ***
Similar problem has been detected: ...just trying to start recoll reporter: libreport-2.9.5 backtrace_rating: 3 cmdline: recoll crash_function: std::__replacement_assert executable: /usr/bin/recoll journald_cursor: s=82cd155ff80547be9f90f946121191be;i=aae9f;b=0b094f95f2f1441da9ceedaf8ffe88c9;m=3aeec3050;t=56c5903d22cac;x=67b7cb8c456a494f kernel: 4.16.8-300.fc28.x86_64 package: recoll-1.23.7-2.fc28 reason: recoll killed by SIGABRT rootdir: / runlevel: N 5 type: CCpp uid: 1000
Created attachment 1437605 [details] File: backtrace
recoll-1.23.7-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1541121 has been marked as a duplicate of this bug. ***
recoll-1.23.7-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1582942 has been marked as a duplicate of this bug. ***