[Bug 2074330] Re: please enable framepointer for libio-dirent-perl

Launchpad Bug Tracker 2074330 at bugs.launchpad.net
Mon Oct 14 03:26:22 UTC 2024


** Merge proposal linked:
   https://code.launchpad.net/~vpa1977/ubuntu/+source/libio-dirent-perl/+git/libio-dirent-perl/+merge/474990

-- 
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:
  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:
  New
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
  $cat << EOF > test.pl
  use IO::Dirent;
   
  ## slurp-style
  opendir DIR, "/etc";
  my @entries = readdirent(DIR);
  closedir DIR;
   
  print \$entries[0]->{name}, "\n";
  print \$entries[0]->{type}, "\n";
  print \$entries[0]->{inode}, "\n";
   
  ## using the enumerator
  opendir DIR, "/etc";
  while( my \$entry = nextdirent(DIR) ) {
    print \$entry->{name} . "\n";
    print \$entry->{type} . "\n";
    print \$entry->{inode} . "\n";
  }
  closedir DIR;
  EOF
  $perl test.pl

  The test should print contents of /etc/ directory

  [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