[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673815: libapt-pkg: segfault in pkgPackageManager::SmartUnPack()



Package: libapt-pkg4.12
Version: 0.9.3
Severity: serious
Justification: renders package unusable

Hi,

when running 'apt-get dist-upgrade', the command segfaults on amd64
after pressing 'y' in order to continue after the changes summary. The
segfault happens in pkgPackageManager::SmartUnPack() (according to gdb).
Looking at the backtrace, I suspect an endless loop filling up the stack
space.

This does *not* happen when running 'apt-get install <pkg>' (with extra
packages being installed).

See below for details:
# gdb --args apt-get dist-upgrade
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/apt-get...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  linux-sound-base mysql-client-5.1 mysql-server-5.1 mysql-server-core-5.1
The following NEW packages will be installed:
  cpp-4.7 g++-4.7 gcc-4.7 hardening-includes libexiv2-12 libitm1 libmysqlclient18 libnspr4 libnss3 libstdc++6-4.7-dev libsystemd-daemon0 nagios-plugins-common python-dbus-dev
The following packages will be upgraded:
  accountsservice alsa-base cpp g++ gcc geeqie geeqie-common libaccountsservice0 libmysqlclient-dev libnspr4-0d libnss3-1d lintian mysql-common nagios-plugins-basic python-dbus
15 upgraded, 13 newly installed, 4 to remove and 0 not upgraded.
Need to get 0 B/32.3 MB of archives.
After this operation, 8,273 kB of additional disk space will be used.
Do you want to continue [Y/n]? y

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b2763e in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
(gdb) bt
#0  0x00007ffff7b2763e in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#1  0x00007ffff7b29165 in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#2  0x00007ffff7b287a1 in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
…
#14158 0x00007ffff7b287a1 in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#14159 0x00007ffff7b29165 in pkgPackageManager::SmartUnPack(pkgCache::PkgIterator, bool, int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#14160 0x00007ffff7b2c90f in pkgPackageManager::OrderInstall() () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#14161 0x00007ffff7b2cd78 in pkgPackageManager::DoInstall(int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#14162 0x0000000000419e3b in ?? ()
#14163 0x000000000041d315 in ?? ()
#14164 0x00007ffff7aff962 in CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#14165 0x000000000040b35c in ?? ()
#14166 0x00007ffff6da8ead in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#14167 0x000000000040b641 in ?? ()
#14168 0x00007fffffffec58 in ?? ()
#14169 0x000000000000001c in ?? ()
#14170 0x0000000000000002 in ?? ()
#14171 0x00007fffffffee7c in ?? ()
#14172 0x00007fffffffee8d in ?? ()
#14173 0x0000000000000000 in ?? ()

Please tell me if you need any additional information.

TIA,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature


Reply to: