Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2077849

Summary: inkscape segfault due to out of bounds access
Product: Red Hat Enterprise Linux 8 Reporter: Joe Wright <jwright>
Component: inkscape-flatpak-containerAssignee: Jan Horak <jhorak>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Krajnak <mkrajnak>
Severity: medium Docs Contact: Marek Suchánek <msuchane>
Priority: medium    
Version: 8.4CC: brclark, jhorak, jwright, mkrajnak, pandrade, sbarcomb, stransky, tpelka, tpopela, yzheng
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: inkscape-flatpak-container-flatpak-8060020220425084432.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1997106 Environment:
Last Closed: 2022-05-16 09:55:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1997106    
Bug Blocks:    

Comment 7 Martin Krajnak 2022-04-25 07:20:14 UTC
It's not fixed, I can still reproduce this. Please let me know if you need more gdb info but I believe that we just miss the patch.

$ flatpak run org.inkscape.Inkscape       
Gtk-Message: 09:17:47.595: Failed to load module "pk-gtk-module"
Gtk-Message: 09:17:47.601: Failed to load module "canberra-gtk-module"
/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 = Inkscape::Text::Layout::Character; _Alloc = std::allocator<Inkscape::Text::Layout::Character>; std::vector<_Tp, _Alloc>::const_reference = const Inkscape::Text::Layout::Character&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.

Emergency save activated!

Emergency save document locations:
  /home/test/New document 1.2022_04_25_09_17_53.0.svg
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
/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 = Inkscape::Text::Layout::Character; _Alloc = std::allocator<Inkscape::Text::Layout::Character>; std::vector<_Tp, _Alloc>::const_reference = const Inkscape::Text::Layout::Character&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
$ flatpak info org.inkscape.Inkscape 
Inkscape - Create and edit Scalable Vector Graphics images

          ID: org.inkscape.Inkscape
         Ref: app/org.inkscape.Inkscape/x86_64/stable
        Arch: x86_64
      Branch: stable
      Origin: inkscape-origin
  Collection: 
Installation: system
   Installed: 321.7 MB
     Runtime: com.redhat.Platform/x86_64/el8
         Sdk: com.redhat.Sdk/x86_64/el8

      Commit: ee6039241bc1dbc0a6ebfb84d9a2ac918e5e3c00b6dcb9a0f46ab41967822305
     Subject: Export org.inkscape.Inkscape
        Date: 2022-02-16 09:46:47 +0000
      Alt-id: 56d536ae9bd1eedac59c7ef326e1da3c84c9b8ef7201d370a407f881d4e1a26f