[Bug 1857731] [NEW] aptitude segfault if permission denied for /etc/apt/preferences

rkta 1857731 at bugs.launchpad.net
Fri Dec 27 23:09:35 UTC 2019


Public bug reported:

I have a /etc/apt/preferences file with permission 600. When I run
aptitude search PATTERN as a non-root user aptitude crashes with a
segfault.

[1]    29308 segmentation fault (core dumped)  aptitude search linux

When I change the permissions to 644 it works as expected.

I attached a strace log.

Let me know if I should provide more information.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: aptitude 0.8.10-6ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-72.81-generic 4.15.18
Uname: Linux 4.15.0-72-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
Date: Fri Dec 27 23:53:57 2019
SourcePackage: aptitude
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: aptitude (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

** Attachment added: "aptitude.strace"
   https://bugs.launchpad.net/bugs/1857731/+attachment/5315938/+files/aptitude.strace

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/1857731

Title:
  aptitude segfault if permission denied for /etc/apt/preferences

Status in aptitude package in Ubuntu:
  New

Bug description:
  I have a /etc/apt/preferences file with permission 600. When I run
  aptitude search PATTERN as a non-root user aptitude crashes with a
  segfault.

  [1]    29308 segmentation fault (core dumped)  aptitude search linux

  When I change the permissions to 644 it works as expected.

  I attached a strace log.

  Let me know if I should provide more information.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: aptitude 0.8.10-6ubuntu1
  ProcVersionSignature: Ubuntu 4.15.0-72.81-generic 4.15.18
  Uname: Linux 4.15.0-72-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.9
  Architecture: amd64
  Date: Fri Dec 27 23:53:57 2019
  SourcePackage: aptitude
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1857731/+subscriptions



More information about the foundations-bugs mailing list