segv in apt 1.2.7 with dist-upgrade

Bug #1562402 reported by LaMont Jones on 2016-03-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Undecided
Unassigned

Bug Description

The following NEW packages will be installed:
  maas-region-api
The following packages will be upgraded:
  console-setup console-setup-linux devscripts git git-man
  keyboard-configuration language-pack-en language-pack-en-base
  language-pack-gnome-en language-pack-gnome-en-base libboost-filesystem1.58.0
  libboost-system1.58.0 libboost-thread1.58.0 libc-bin libcups2 libgusb2
  liblxc1 libmirclient9 libmircommon5 libmirprotobuf3 libpam-systemd libpcre3
  libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib
  libsystemd0 libudev1 locales lxc lxc-common lxc-templates lxc1 maas maas-cli
  maas-common maas-dhcp maas-dns maas-proxy maas-rack-controller
  maas-region-controller mdadm multiarch-support python-simplestreams
  python-twisted python-twisted-bin python-twisted-conch python-twisted-core
  python-twisted-mail python-twisted-names python-twisted-news
  python-twisted-runner python-twisted-web python-twisted-words python2.7
  python2.7-minimal python3 python3-django-maas python3-lxc
  python3-maas-client python3-maas-provisioningserver python3-minimal
  python3-simplestreams python3-software-properties python3-twisted
  software-properties-common systemd systemd-sysv ubuntu-minimal ubuntu-mono
  ubuntu-standard ucf udev virt-manager virtinst
75 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Need to get 0 B/35.0 MB of archives.
After this operation, 3,892 kB disk space will be freed.
Do you want to continue? [Y/n]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b79209 in pkgCache::DepIterator::GlobOr(pkgCache::DepIterator&, pkgCache::DepIterator&) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
(gdb) bt
#0 0x00007ffff7b79209 in pkgCache::DepIterator::GlobOr(pkgCache::DepIterator&, pkgCache::DepIterator&) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#1 0x00007ffff7b719ab in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#2 0x00007ffff7b74bdd in ?? () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#3 0x00007ffff7b7224b in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#4 0x00007ffff7b7768a in pkgPackageManager::OrderInstall() () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#5 0x00007ffff7b76c11 in pkgPackageManager::DoInstall(APT::Progress::PackageManager*) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#6 0x00007ffff78353e0 in InstallPackages(CacheFile&, bool, bool, bool) ()
   from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0
#7 0x00007ffff7858ede in ?? () from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0
#8 0x00007ffff7afbc66 in CommandLine::DispatchArg(CommandLine::Dispatch const*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#9 0x00007ffff782adf3 in DispatchCommandLine(CommandLine&, std::vector<CommandLine::Dispatch, std::allocator<CommandLine::Dispatch> > const&) () from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0
#10 0x0000555555557b39 in ?? ()
#11 0x00007ffff6ed3841 in __libc_start_main (main=0x555555557aa0, argc=2, argv=0x7fffffffeb68, init=<optimized out>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffeb58) at ../csu/libc-start.c:291
#12 0x0000555555557bf9 in ?? ()
(gdb)

LaMont Jones (lamont) wrote :

And here is the trace from 1.2.8:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Need to get 798 kB/35.8 MB of archives.
After this operation, 3,549 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://ubuntu-mirror.wfg-office/ubuntu xenial/main amd64 python3-gi amd64 3.20.0-0ubuntu1 [153 kB]
Get:2 http://ubuntu-mirror.wfg-office/ubuntu xenial/universe amd64 python-gi-cairo amd64 3.20.0-0ubuntu1 [6,246 B]
Get:3 http://ubuntu-mirror.wfg-office/ubuntu xenial/main amd64 python-gi amd64 3.20.0-0ubuntu1 [194 kB]
Get:4 http://ubuntu-mirror.wfg-office/ubuntu xenial/main amd64 python-setuptools all 20.3.1-1 [170 kB]
Get:5 http://ubuntu-mirror.wfg-office/ubuntu xenial/main amd64 python-pkg-resources all 20.3.1-1 [108 kB]
Get:6 http://ubuntu-mirror.wfg-office/ubuntu xenial/main amd64 python3-setuptools all 20.3.1-1 [88.1 kB]
Get:7 http://ubuntu-mirror.wfg-office/ubuntu xenial/main amd64 python3-pkg-resources all 20.3.1-1 [78.8 kB]
Fetched 798 kB in 0s (17.4 MB/s)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b3e00d in debVersioningSystem::CheckDep(char const*, int, char const*) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
(gdb) bt
#0 0x00007ffff7b3e00d in debVersioningSystem::CheckDep(char const*, int, char const*) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#1 0x00007ffff7b7161b in pkgPackageManager::CheckRConflicts(pkgCache::PkgIterator, pkgCache::DepIterator, char const*)
    () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#2 0x00007ffff7b71af8 in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#3 0x00007ffff7b74bdd in ?? () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#4 0x00007ffff7b7224b in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#5 0x00007ffff7b7768a in pkgPackageManager::OrderInstall() () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#6 0x00007ffff7b76c11 in pkgPackageManager::DoInstall(APT::Progress::PackageManager*) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#7 0x00007ffff78353e0 in InstallPackages(CacheFile&, bool, bool, bool) ()
   from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0
#8 0x00007ffff7858ede in ?? () from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0
#9 0x00007ffff7afbc66 in CommandLine::DispatchArg(CommandLine::Dispatch const*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
#10 0x00007ffff782adf3 in DispatchCommandLine(CommandLine&, std::vector<CommandLine::Dispatch, std::allocator<CommandLine::Dispatch> > const&) () from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0
#11 0x0000555555557b39 in ?? ()
#12 0x00007ffff6ed3841 in __libc_start_main (main=0x555555557aa0, argc=2, argv=0x7fffffffeb58, init=<optimized out>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffeb48) at ../csu/libc-start.c:291
#13 0x0000555555557bf9 in ?? ()
(gdb)

Julian Andres Klode (juliank) wrote :

This bug has been fixed upstream in commit 6df5632313e9ce77c47ee4bcf6e32a028c4534d0:

    Do not mark packages for keep that we want to remove

See https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=6df5632 for details.

Expect a 1.2.9 release shortly.

Changed in apt (Ubuntu):
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.2.9

---------------
apt (1.2.9) unstable; urgency=high

  [ David Kalnischkies ]
  * drop confusing comma from no strong hash message

  [ Julian Andres Klode ]
  * Do not mark packages for keep that we want to remove (LP: #1562402)
    (This fixes some upgrades involving renames where the old package
     is removed)

 -- Julian Andres Klode <email address hidden> Sun, 27 Mar 2016 01:26:51 +0100

Changed in apt (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers