[Bug 2074330] Re: [SRU] please enable framepointer for libio-dirent-perl
Vladimir Petko
2074330 at bugs.launchpad.net
Sun Nov 17 22:48:09 UTC 2024
Verification:
- Validate symbols (pass):
# wget https://launchpad.net/ubuntu/+archive/primary/+files/libio-dirent-perl-dbgsym_0.05-1.1ubuntu0.1_amd64.ddeb
# apt install ./libio-dirent-perl-dbgsym_0.05-1.1ubuntu0.1_amd64.ddeb
# wget https://gist.githubusercontent.com/julian-klode/85e55553f85c410a1b856a93dce77208/raw/488b8509e6f23fe48f917961fe711b285dcb2e28/dwprod.py
# apt install python3-pyelftools
# python3 dwprod.py /usr/lib/x86_64-linux-gnu/perl5/5.38/auto/IO/Dirent/Dirent.so
/usr/lib/x86_64-linux-gnu/perl5/5.38/auto/IO/Dirent/Dirent.so elf
/usr/lib/x86_64-linux-gnu/perl5/5.38/auto/IO/Dirent/Dirent.so unit <artificial> produced-by GNU GIMPLE 13.3.0 -mno-omit-leaf-frame-pointer -mtune=generic -march=x86-64 -g -O2 -O2 -fno-openmp -fno-openacc -fcf-protection=full -fPIC -fasynchronous-unwind-tables -fstack-protector-strong -fltrans
/usr/lib/x86_64-linux-gnu/perl5/5.38/auto/IO/Dirent/Dirent.so unit Dirent.c produced-by GNU C17 13.3.0 -mno-omit-leaf-frame-pointer -mtune=generic -march=x86-64 -g -g -O2 -O2 -fwrapv -fno-strict-aliasing -fno-omit-frame-pointer -flto -ffat-lto-objects -fstack-protector-strong -fcf-protection=full -fPIC -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection
-fno-omit-framepointer flag is present
** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libio-dirent-perl in Ubuntu.
https://bugs.launchpad.net/bugs/2074330
Title:
[SRU] please enable framepointer for libio-dirent-perl
Status in libio-dirent-perl package in Ubuntu:
Fix Released
Status in libio-dirent-perl source package in Noble:
Fix Committed
Status in libio-dirent-perl source package in Oracular:
Fix Released
Status in libio-dirent-perl package in Debian:
Fix Released
Bug description:
[Impact]
In order to help developers with profiling, Ubuntu enabled frame-
pointers for packages in the main archive.
https://ubuntu.com/blog/ubuntu-performance-engineering-with-frame-
pointers-by-default
The `Affects` packages were missed due to the packaging issues. These
have been fixed on Oracular and can now be ported to Noble.
[Test Plan]
Look at the DW_AT_producer in the associated debug ELF file for flags.
-fno-omit-frame-pointer should be present after the fix.
The following scripts can be used as a reference
https://gist.github.com/julian-klode/85e55553f85c410a1b856a93dce77208
https://gist.github.com/julian-klode/95818246eaef0ac6a54588f7f368e25c
Run the smoke test:
$apt-get install libio-dirent-perl
$apt source libio-dirent-perl
cd to package source directory
$sed -i 's/use blib;//g' test.pl
$perl test.pl
Expected output:
ok 1
ok 2
ok 3
[Where problems could occur]
No source changes are made. The packaging fixes have enabled other
security hardening flags. This could have unintended effects.
[Other Info]
changes in dpkg have been made to make sure frame-pointers are not
enabled on s390x and ppc64el.
[Original Description]
Note: libio-dirent-perl has very old packaging that has not been updated for a while.
The package can be switched to a modern debhelper version and this
will allow to make it honour dpkg build flags.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libio-dirent-perl/+bug/2074330/+subscriptions
More information about the foundations-bugs
mailing list