[Aptitude-devel] Bug#726047: aptitude: segfault during upgrade
Vaclav Ovsik
vaclav.ovsik at gmail.com
Fri Oct 11 14:44:00 UTC 2013
Package: aptitude
Version: 0.6.8.2-1.2
Severity: normal
Dear Maintainer,
while trying to upgrade latest packages a minute ago I have got
a segfault. Trying to restart (reran aptitude after dpkg --configure -a)
causes segfault further.
I have installed aptitude-dbg and there is bt:
bobek:~# gdb /usr/bin/aptitude core
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 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/aptitude-curses...Reading symbols from /usr/lib/debug/.build-id/36/30a21fba65abc7ff21f89060c3e30139cd883f.debug...done.
done.
warning: core file may not match specified executable file.
[New LWP 14684]
[New LWP 14695]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffcd1fe000
Core was generated by `aptitude'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007eff90df56e1 in pkgDPkgPM::ProcessDpkgStatusLine(int, char*) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
(gdb) bt
#0 0x00007eff90df56e1 in pkgDPkgPM::ProcessDpkgStatusLine(int, char*) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#1 0x00007eff90df7ca6 in pkgDPkgPM::DoDpkgStatusFd(int, int) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#2 0x00007eff90dfa08a in pkgDPkgPM::Go(int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#3 0x00007eff90d7cc0d in pkgPackageManager::DoInstallPostFork(int) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#4 0x00007eff9146ad14 in download_install_manager::run_dpkg (this=0x7eff951c2480, status_fd=-1)
at ../../../../src/generic/apt/download_install_manager.cc:169
#5 0x00007eff9139d557 in operator() (_A_a1=@0x7fffcd1a9eac: -1, this=0x7fffcd1a9ed0)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:515
#6 (anonymous namespace)::run_dpkg_with_cwidget_suspended (f=..., k=...) at ../../src/ui.cc:1215
#7 0x00007eff913b6168 in operator() (_A_a2=..., _A_a1=..., this=<optimized out>)
at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:147
#8 operator()<const sigc::slot1<pkgPackageManager::OrderResult, int>&, const sigc::slot1<void, pkgPackageManager::OrderResult>&> (_A_arg2=..., _A_arg1=..., this=<optimized out>)
at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:103
#9 sigc::internal::slot_call2<sigc::pointer_functor2<sigc::slot1<pkgPackageManager::OrderResult, int>, sigc::slot1<void, pkgPackageManager::OrderResult>, void>, void, sigc::slot1<pkgPackageManager::OrderResult, int>, sigc::slot1<void, pkgPackageManager::OrderResult> >::call_it (rep=<optimized out>, a_1=...,
a_2=...) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:173
#10 0x00007eff9146ba0c in operator() (_A_a2=..., _A_a1=..., this=0x7eff951c24c8)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:593
#11 download_install_manager::finish (this=this at entry=0x7eff951c2480,
result=result at entry=pkgAcquire::Continue, progress=<optimized out>, k=...)
at ../../../../src/generic/apt/download_install_manager.cc:265
#12 0x00007eff913bbc89 in ui_download_manager::done (this=0x7eff951c6d90, t=<optimized out>,
res=pkgAcquire::Continue) at ../../src/ui_download_manager.cc:63
#13 0x00007eff9131fdcc in operator() (_A_a2=@0x7fffcd1aa064: pkgAcquire::Continue,
_A_a1=@0x7fffcd1aa068: 0x7eff951c5fc0, this=0x7fffcd1aa070)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:593
#14 (anonymous namespace)::do_download_complete (t=0x7eff951c5fc0, res=pkgAcquire::Continue,
continuation=...) at ../../src/download_thread.cc:220
#15 0x00007eff913245b3 in operator() (_A_a3=..., _A_a2=@0x7eff95622500: pkgAcquire::Continue,
_A_a1=@0x7eff956224f8: 0x7eff951c5fc0, this=0x7eff956224f0)
at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:185
#16 operator()<download_thread*&, pkgAcquire::RunResult&, safe_slot2<void, download_thread*, pkgAcquire::RunResult>&> (_A_arg3=..., _A_arg2=@0x7eff95622500: pkgAcquire::Continue,
_A_arg1=@0x7eff956224f8: 0x7eff951c5fc0, this=0x7eff956224e8)
at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:123
---Type <return> to continue, or q <return> to quit---
#17 operator() (this=0x7eff956224e0) at /usr/include/sigc++-2.0/sigc++/adaptors/bind.h:1511
#18 sigc::internal::slot_call0<sigc::bind_functor<-1, sigc::pointer_functor3<download_thread*, pkgAcquire::RunResult, safe_slot2<void, download_thread*, pkgAcquire::RunResult>, void>, download_thread*, pkgAcquire::RunResult, safe_slot2<void, download_thread*, pkgAcquire::RunResult>, sigc::nil, sigc::nil, sigc::nil, sigc::nil>, void>::call_it (rep=0x7eff956224b0) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103
#19 0x00007eff913b76a5 in operator() (this=0x7fffcd1aa0e0)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:440
#20 aptitude::safe_slot_event::dispatch (this=<optimized out>) at ../../src/safe_slot_event.h:40
#21 0x00007eff90400f13 in cwidget::toplevel::mainloop(int) () from /usr/lib/libcwidget.so.3
#22 0x00007eff913b3f58 in ui_main () at ../../src/ui.cc:2936
#23 0x00007eff912d36e6 in main (argc=1, argv=<optimized out>) at ../../src/main.cc:1307
Next run in the gdb...
bobek:~# gdb --args aptitude upgrade
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 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/aptitude-curses...Reading symbols from /usr/lib/debug/.build-id/36/30a21fba65abc7ff21f89060c3e30139cd883f.debug...done.
done.
(gdb) c
The program is not being run.
(gdb) r
Starting program: /usr/bin/aptitude upgrade
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff0203700 (LWP 16039)]
The following packages will be upgraded:
msr-tools qemu qemu-keymaps qemu-kvm qemu-system qemu-system-arm qemu-system-mips qemu-system-misc
qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-user qemu-utils
13 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.6 MB of archives. After unpacking 447 kB will be used.
Do you want to continue? [Y/n/?]
(Reading database ... 573274 files and directories currently installed.)
Preparing to replace msr-tools 1.2-3 (using .../msr-tools_1.3-1_amd64.deb) ...
Unpacking replacement msr-tools ...
dpkg: error processing /var/cache/apt/archives/msr-tools_1.3-1_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/cpuid.1.gz', which is also in package cpuid 20130610-2
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b896e1 in pkgDPkgPM::ProcessDpkgStatusLine(int, char*) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
(gdb) bt
#0 0x00007ffff7b896e1 in pkgDPkgPM::ProcessDpkgStatusLine(int, char*) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#1 0x00007ffff7b8bca6 in pkgDPkgPM::DoDpkgStatusFd(int, int) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#2 0x00007ffff7b8e08a in pkgDPkgPM::Go(int) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#3 0x00007ffff7b10c0d in pkgPackageManager::DoInstallPostFork(int) ()
from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#4 0x0000555555753d14 in download_install_manager::run_dpkg (this=0x7fffffffde60, status_fd=-1)
at ../../../../src/generic/apt/download_install_manager.cc:169
#5 0x00005555556b8b7f in operator() (_A_a1=@0x7fffffffd438: -1, this=0x7fffffffd480)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:515
#6 (anonymous namespace)::run_dpkg_directly (f=..., k=...)
at ../../../src/cmdline/cmdline_do_action.cc:61
#7 0x000055555569f168 in operator() (_A_a2=..., _A_a1=..., this=<optimized out>)
at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:147
#8 operator()<const sigc::slot1<pkgPackageManager::OrderResult, int>&, const sigc::slot1<void, pkgPackageManager::OrderResult>&> (_A_arg2=..., _A_arg1=..., this=<optimized out>)
at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:103
#9 sigc::internal::slot_call2<sigc::pointer_functor2<sigc::slot1<pkgPackageManager::OrderResult, int>, sigc::slot1<void, pkgPackageManager::OrderResult>, void>, void, sigc::slot1<pkgPackageManager::OrderResult, int>, sigc::slot1<void, pkgPackageManager::OrderResult> >::call_it (rep=<optimized out>, a_1=...,
a_2=...) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:173
#10 0x0000555555754a0c in operator() (_A_a2=..., _A_a1=..., this=0x7fffffffdea8)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:593
#11 download_install_manager::finish (this=this at entry=0x7fffffffde60,
result=result at entry=pkgAcquire::Continue, progress=<optimized out>, k=...)
at ../../../../src/generic/apt/download_install_manager.cc:265
#12 0x00005555556e4ed7 in cmdline_do_download (m=m at entry=0x7fffffffde60, verbose=verbose at entry=0,
term_input=..., term_locale=..., term_metrics=..., term_output=...)
at ../../../src/cmdline/cmdline_util.cc:494
#13 0x00005555556baa02 in cmdline_do_action (argc=argc at entry=1, argv=argv at entry=0x7fffffffe790,
status_fname=status_fname at entry=0x0, simulate=simulate at entry=false,
assume_yes=assume_yes at entry=false, download_only=download_only at entry=false,
fix_broken=fix_broken at entry=false, showvers=showvers at entry=false, showdeps=showdeps at entry=false,
showsize=showsize at entry=false, showwhy=showwhy at entry=false,
visual_preview=visual_preview at entry=false, always_prompt=always_prompt at entry=false,
resolver_mode=resolver_mode_safe, resolver_mode at entry=resolver_mode_default,
safe_resolver_show_actions=safe_resolver_show_actions at entry=false,
no_new_installs=no_new_installs at entry=false, no_new_upgrades=no_new_upgrades at entry=false,
user_tags=..., arch_only=arch_only at entry=false, queue_only=queue_only at entry=false,
---Type <return> to continue, or q <return> to quit---
verbose=verbose at entry=0) at ../../../src/cmdline/cmdline_do_action.cc:395
#14 0x00005555555bd369 in main (argc=2, argv=0x7fffffffe788) at ../../src/main.cc:1173
(gdb)
Thanks for your time
Regards
--
Zito
-- Package-specific info:
Terminal: rxvt
$DISPLAY is set.
which aptitude: /usr/bin/aptitude
aptitude version information:
aptitude 0.6.8.2 compiled at Aug 25 2013 12:37:10
Compiler: g++ 4.8.1
Compiled against:
apt version 4.12.0
NCurses version 5.9
libsigc++ version: 2.2.10
Ept support enabled.
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 5.9.20130608
cwidget version: 0.5.16
Apt version: 4.12.0
aptitude linkage:
linux-vdso.so.1 (0x00007fff4bbf5000)
libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007fa6e6625000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fa6e63f5000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fa6e61cb000)
libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fa6e5fc6000)
libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007fa6e5cc6000)
libept.so.1.aptpkg4.12 => /usr/lib/libept.so.1.aptpkg4.12 (0x00007fa6e5a25000)
libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007fa6e5642000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa6e542a000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fa6e5173000)
libboost_iostreams.so.1.54.0 => /usr/lib/libboost_iostreams.so.1.54.0 (0x00007fa6e4f59000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa6e4d3d000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa6e4a39000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa6e473b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa6e4525000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa6e4178000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fa6e3f75000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa6e3d71000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fa6e3b60000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fa6e3b5a000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa6e3951000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa6e6faf000)
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages aptitude depends on:
ii aptitude-common 0.6.8.2-1.2
ii libapt-pkg4.12 0.9.12
ii libboost-iostreams1.54.0 1.54.0-3
ii libc6 2.17-93
ii libcwidget3 0.5.16-3.4
ii libept1.4.12 1.0.9
ii libgcc1 1:4.8.1-10
ii libncursesw5 5.9+20130608-1
ii libsigc++-2.0-0c2a 2.2.10-0.2
ii libsqlite3-0 3.8.0.2-1
ii libstdc++6 4.8.1-10
ii libtinfo5 5.9+20130608-1
ii libxapian22 1.2.15-2
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages aptitude recommends:
ii apt-xapian-index 0.46
ii aptitude-doc-cs [aptitude-doc] 0.6.8.2-1.2
ii aptitude-doc-en [aptitude-doc] 0.6.8.2-1.2
ii libparse-debianchangelog-perl 1.2.0-1
ii sensible-utils 0.0.9
Versions of packages aptitude suggests:
ii debtags 1.10.2
ii tasksel 3.17
-- no debconf information
More information about the Aptitude-devel
mailing list