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 2213054 - python27:2.7/python-markupsafe debug symbols are not stripped.
Summary: python27:2.7/python-markupsafe debug symbols are not stripped.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-markupsafe
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Charalampos Stratakis
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-07 00:59 UTC by Charalampos Stratakis
Modified: 2023-11-14 17:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 15:36:08 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-159152 0 None None None 2023-06-07 01:00:13 UTC
Red Hat Product Errata RHSA-2023:7042 0 None None None 2023-11-14 15:36:27 UTC

Description Charalampos Stratakis 2023-06-07 00:59:16 UTC
rpminspect on RHEL8 is complaining of debugging symbols present in python-markupsafe.

More specifically .symtab is present in /usr/lib64/python2.7/site-packages/markupsafe/_speedups.so on all archs.

Inspecting the build logs I can see that on the python3 build we get:

"""
running install_scripts
+ rm /builddir/build/BUILDROOT/python-markupsafe-0.23-19.el8.aarch64//usr/lib64/python3.6/site-packages/markupsafe/_speedups.c
+ /usr/lib/rpm/find-debuginfo.sh -j8 --strict-build-id -m -i --build-id-seed 0.23-19.el8 --unique-debug-suffix -0.23-19.el8.aarch64 --unique-debug-src-base python-markupsafe-0.23-19.el8.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/MarkupSafe-0.23
extracting debug info from /builddir/build/BUILDROOT/python-markupsafe-0.23-19.el8.aarch64/usr/lib64/python3.6/site-packages/markupsafe/_speedups.cpython-36m-aarch64-linux-gnu.so
/usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.
12 blocks
+ /usr/lib/rpm/check-buildroot
"""

With the compiler flags being:
gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.6m -c markupsafe/_speedups.c -o build/temp.linux-aarch64-3.6/markupsafe/_speedups.o

While on the python2 build:
"""
Copying MarkupSafe.egg-info to /builddir/build/BUILDROOT/python-markupsafe-0.23-19.module+el8.9.0+18326+1b5baeee.aarch64/usr/lib64/python2.7/site-packages/MarkupSafe-0.23-py2.7.egg-info
running install_scripts
+ rm /builddir/build/BUILDROOT/python-markupsafe-0.23-19.module+el8.9.0+18326+1b5baeee.aarch64//usr/lib64/python2.7/site-packages/markupsafe/_speedups.c
+ /usr/lib/rpm/check-buildroot
"""

With the compiler flags being:
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-aarch64-2.7/markupsafe/_speedups.o

So the find-debuginfo script is not running.

Comment 2 Charalampos Stratakis 2023-06-08 12:53:03 UTC
This was done due to weird filtering from modularity related to the debuginfo packages. The best way forward would be to disable the rpminspect warnings through an rpminspect.yaml file.

Comment 4 Charalampos Stratakis 2023-07-11 14:03:06 UTC
PR is merged.

Comment 11 errata-xmlrpc 2023-11-14 15:36:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: python27:2.7 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:7042


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