Description of problem: Onboard (the on screen keyboard) crashes at launch with the following error: /usr/include/c++/8/bits/stl_vector.h:950: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>; std::vector<_Tp, _Alloc>::const_reference = const unsigned int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed. Aborted (core dumped) It has something to do with a hardening compiler flag set since Fedora 28. Version-Release number of selected component (if applicable): onboard-1.4.1-10.fc29.x86_64 How reproducible: Launch onboard
If you can reproduce this issue, would you attach backtrace, for example by following below? $ sudo dnf install onboard-debug{info,source} python3-debug{info,source} $ gdb --args python3 onboard (gdb) run <when onboard crashes> (gdb) thread apply all bt full
Created attachment 1495652 [details] backtrace of crash Thanks for the reply. Hereby attached a backtrace, hope I've done it right.
* Well, I cannot reproduce this by just launching $ python3 /usr/bin/onboard . Is this issue reproducible for you just by doing $ python3 /usr/bin/onboard , or are there any other steps to reproduce? * While I cannot reproduce this, from the backtrace you provided, the following may fix the issue you see. Would you try it? https://koji.fedoraproject.org/koji/taskinfo?taskID=30332367
Yes,I can reproduce this every time by executing python3 /usr/bin/onboard. This was on a clean install of Fedora 29. However, your suggested fix works a charm! I installed the RPM and am typing this using onboard. Cheers!
Created attachment 1496300 [details] Workaround patch
Nemanja, would you mind my applying the patch myself?
Nemanja, would you mind my applying the patch myself for now?
This message is a reminder that Fedora 29 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '29'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 29 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days