Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-2989

Undefined behavior in libX11 when loading Tk package

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • rhel-8.7.0
    • libX11
    • None
    • None
    • rhel-sst-display-window-management
    • None
    • False
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      There is an undefined behavior when using the latest Tcl/Tk build (from 8.6.13 sources) on latest RHEL 7 and 8 releases:
      https://core.tcl-lang.org/tk/tktview?name=e42eef33ee

      The bug is in FreeDesktop libX11 library:
      https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/36
      It has been fixed some time ago, but it was not back-ported to RHEL 7.x and 8.x branches.
      The latest RHEL 9.4 does not exhibit this issue.

      Is it possible to backport the above mentioned fix in libX11 library to RHEL 7 and 8 branches?

      Steps to reproduce:

      • build the latest Tcl/Tk library from source-code (8.6.13 version)
      • launch wish8.6 with valgrind

      Also GCC address sanitizer reports this issue as heap-use-after-free

              rhn-engineering-ofourdan Olivier Fourdan
              jira-bugzilla-migration RH Bugzilla Integration
              Jose Exposito Quintana Jose Exposito Quintana
              Tomas Pelka Tomas Pelka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: