Bug 1637614 - Onboard crashes at launch
Summary: Onboard crashes at launch
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: onboard
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nemanja Milosevic
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-09 15:00 UTC by Vincent
Modified: 2023-09-14 04:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-27 22:37:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
backtrace of crash (123.54 KB, text/plain)
2018-10-19 14:01 UTC, Vincent
no flags Details
Workaround patch (567 bytes, patch)
2018-10-22 07:30 UTC, Mamoru TASAKA
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1799149 0 None None None 2018-10-22 07:28:41 UTC

Description Vincent 2018-10-09 15:00:56 UTC
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

Comment 1 Mamoru TASAKA 2018-10-18 08:22:31 UTC
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

Comment 2 Vincent 2018-10-19 14:01:47 UTC
Created attachment 1495652 [details]
backtrace of crash

Thanks for the reply. Hereby attached a backtrace, hope I've done it right.

Comment 3 Mamoru TASAKA 2018-10-19 14:55:53 UTC
* 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

Comment 4 Vincent 2018-10-19 20:12:16 UTC
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!

Comment 5 Mamoru TASAKA 2018-10-22 07:30:38 UTC
Created attachment 1496300 [details]
Workaround patch

Comment 6 Mamoru TASAKA 2018-11-12 05:17:03 UTC
Nemanja, would you mind my applying the patch myself?

Comment 7 Mamoru TASAKA 2019-01-10 23:05:48 UTC
Nemanja, would you mind my applying the patch myself for now?

Comment 8 Ben Cotton 2019-10-31 19:15:13 UTC
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.

Comment 9 Ben Cotton 2019-11-27 22:37:03 UTC
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.

Comment 10 Red Hat Bugzilla 2023-09-14 04:39:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.