apt-check segfault in libapt-pkg-libc6.8-6.so.4.6.0

Bug #287372 reported by Carl Karsten
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apt

installed ibex daily, tried to install dvdgrab, apt-get segfaulted:

juser@dhcp243:~/vid$ sudo apt-get install dvgrab
Reading package lists... Done
Segmentation fault (core dumped)

dmesg:
[35696.631474] apt-check[13562]: segfault at df117958 ip b7d015a7 sp bfc37b30 error 4 in libapt-pkg-libc6.8-6.so.4.6.0[b7ccb000+bf000]

juser@dhcp243:~$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
juser@dhcp243:~$ apt-cache policy apt
apt:
  Installed: 0.7.14ubuntu6+nmu1
  Candidate: 0.7.14ubuntu6+nmu1
  Version table:
 *** 0.7.14ubuntu6+nmu1 0
        100 /var/lib/dpkg/status
     0.7.14ubuntu6 0
        500 http://cp600 intrepid/main Packages
juser@dhcp243:~$ uname -a
Linux dhcp243 2.6.27-7-generic #1 SMP Fri Oct 17 22:24:21 UTC 2008 i686 GNU/Linux

juser@dhcp243:~$ sudo gdb
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu".
(gdb) file apt-get
Reading symbols from /usr/bin/apt-get...done.
(gdb) run install dvgrab
Starting program: /usr/bin/apt-get install dvgrab
Reading package lists... Done
Building dependency tree... 50%
Program received signal SIGSEGV, Segmentation fault.
0xb7f275a7 in pkgDepCache::CheckDep (this=0x90f2750, Dep=
      {Dep = 0xb770002c, Type = pkgCache::DepIterator::DepVer, Owner = 0x90f24f8}, Type=0, Res=@0xbfbde324) at ../build/include/apt-pkg/cacheiterators.h:124
124 ../build/include/apt-pkg/cacheiterators.h: No such file or directory.
 in ../build/include/apt-pkg/cacheiterators.h
(gdb) list
119 in ../build/include/apt-pkg/cacheiterators.h
(gdb) bt full
#0 0xb7f275a7 in pkgDepCache::CheckDep (this=0x90f2750, Dep=
      {Dep = 0xb770002c, Type = pkgCache::DepIterator::DepVer, Owner = 0x90f24f8}, Type=0, Res=@0xbfbde324) at ../build/include/apt-pkg/cacheiterators.h:124
No locals.
#1 0xb7f27927 in pkgDepCache::DependencyState (this=0x90f2750, D=@0xbfbde384)
    at ../build/include/apt-pkg/depcache.h:306
 State = 0 '\0'
#2 0xb7f29b10 in pkgDepCache::Update (this=0x90f2750, Prog=0xbfbde50c)
    at depcache.cc:623
 State = (unsigned char &) @0xb6fdc60b: 1 '\001'
 D = {Dep = 0xb770002c, Type = pkgCache::DepIterator::DepVer,
  Owner = 0x90f24f8}
 Group = 0 '\0'
 I = {Pkg = 0xb76f9590, Owner = 0x90f24f8, HashIndex = 6}
 Done = 98
#3 0xb7f2e545 in pkgDepCache::Init (this=0x90f2750, Prog=0xbfbde50c)
    at depcache.cc:154
 actions = {cache = @0x90f2750, released = false}
 Done = 34152
#4 0xb7f4f0bc in pkgCacheFile::Open (this=0xbfbde570, Progress=@0xbfbde50c,
    WithLock=<value optimized out>) at cachefile.cc:103
No locals.
#5 0x08059e4f in DoInstall (CmdL=@0xbfbdec64) at apt-get.cc:100
 Cache = {<pkgCacheFile> = {Map = 0x90f4398, Cache = 0x90f24f8,
    DCache = 0x90f2750, Policy = 0x91da9c8}, static SortCache = 0x0,
  List = 0x0}
 BrokenFix = <value optimized out>
 AutoMarkChanged = <value optimized out>
 ExpectedInst = <value optimized out>
 Packages = <value optimized out>
 Fix = {Cache = @0x0, Scores = 0x0, Flags = 0x0, Debug = 120,
  static This = 0x0}
 DefRemove = <value optimized out>
#6 0xb7f18aaf in CommandLine::DispatchArg (this=0xbfbdec64, Map=0xbfbdebec,
    NoMatch=true) at contrib/cmndline.cc:337
 Res = <value optimized out>
#7 0x080556e8 in main (argc=3, argv=0x8064684) at apt-get.cc:2829
 Args = {{ShortOpt = 104 'h', LongOpt = 0x805e1d8 "help",
    ConfName = 0x805e1d8 "help", Flags = 0}, {ShortOpt = 118 'v',
    LongOpt = 0x805e6e2 "version", ConfName = 0x805e6e2 "version", Flags = 0},
  {ShortOpt = 86 'V', LongOpt = 0x805ea0d "verbose-versions",
    ConfName = 0x805e4f1 "APT::Get::Show-Versions", Flags = 0}, {
    ShortOpt = 113 'q', LongOpt = 0x805e1d2 "quiet",
    ConfName = 0x805e1d2 "quiet", Flags = 2}, {ShortOpt = 113 'q',
    LongOpt = 0x805ea1e "silent", ConfName = 0x805e1d2 "quiet", Flags = 2}, {
    ShortOpt = 100 'd', LongOpt = 0x805ea25 "download-only",
    ConfName = 0x805e1dd "APT::Get::Download-Only", Flags = 0}, {
    ShortOpt = 98 'b', LongOpt = 0x805ea33 "compile",
    ConfName = 0x805e3bd "APT::Get::Compile", Flags = 0}, {ShortOpt = 98 'b',
    LongOpt = 0x805ea3b "build", ConfName = 0x805e3bd "APT::Get::Compile",
    Flags = 0}, {ShortOpt = 115 's', LongOpt = 0x805ea41 "simulate",
    ConfName = 0x805e1f5 "APT::Get::Simulate", Flags = 0}, {
    ShortOpt = 115 's', LongOpt = 0x805ea4a "just-print",
    ConfName = 0x805e1f5 "APT::Get::Simulate", Flags = 0}, {
    ShortOpt = 115 's', LongOpt = 0x805ea55 "recon",
    ConfName = 0x805e1f5 "APT::Get::Simulate", Flags = 0}, {
    ShortOpt = 115 's', LongOpt = 0x805ea5b "dry-run",
    ConfName = 0x805e1f5 "APT::Get::Simulate", Flags = 0}, {
    ShortOpt = 115 's', LongOpt = 0x805ea63 "no-act",
    ConfName = 0x805e1f5 "APT::Get::Simulate", Flags = 0}, {
    ShortOpt = 121 'y', LongOpt = 0x805eae4 "yes",
    ConfName = 0x805e208 "APT::Get::Assume-Yes", Flags = 0}, {
    ShortOpt = 121 'y', LongOpt = 0x805ea6a "assume-yes",
    ConfName = 0x805e208 "APT::Get::Assume-Yes", Flags = 0}, {
    ShortOpt = 102 'f', LongOpt = 0x805ea75 "fix-broken",
    ConfName = 0x805e21d "APT::Get::Fix-Broken", Flags = 0}, {
    ShortOpt = 117 'u', LongOpt = 0x805ea80 "show-upgraded",
    ConfName = 0x805e7ac "APT::Get::Show-Upgraded", Flags = 0}, {
    ShortOpt = 109 'm', LongOpt = 0x805ea8e "ignore-missing",
    ConfName = 0x805e821 "APT::Get::Fix-Missing", Flags = 0}, {
    ShortOpt = 116 't', LongOpt = 0x805ea9d "target-release",
    ConfName = 0x805e277 "APT::Default-Release", Flags = 1}, {
    ShortOpt = 116 't', LongOpt = 0x805eaac "default-release",
    ConfName = 0x805e277 "APT::Default-Release", Flags = 1}, {
    ShortOpt = 0 '\0', LongOpt = 0x805e84c "download",
    ConfName = 0x805e5c8 "APT::Get::Download", Flags = 0}, {ShortOpt = 0 '\0',
    LongOpt = 0x805eabc "fix-missing",
    ConfName = 0x805e821 "APT::Get::Fix-Missing", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eac8 "ignore-hold",
    ConfName = 0x805e932 "APT::Ignore-Hold", Flags = 0}, {ShortOpt = 0 '\0',
    LongOpt = 0x805e9e7 "upgrade", ConfName = 0x805e510 "APT::Get::upgrade",
    Flags = 0}, {ShortOpt = 0 '\0', LongOpt = 0x805eade "force-yes",
    ConfName = 0x805ead4 "APT::Get::force-yes", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eae8 "print-uris",
    ConfName = 0x805e33c "APT::Get::Print-URIs", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eaf3 "diff-only",
    ConfName = 0x805e306 "APT::Get::Diff-Only", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eafd "tar-only",
    ConfName = 0x805e384 "APT::Get::Tar-Only", Flags = 0}, {ShortOpt = 0 '\0',
    LongOpt = 0x805eb06 "dsc-only", ConfName = 0x805e46b "APT::Get::Dsc-Only",
    Flags = 0}, {ShortOpt = 0 '\0', LongOpt = 0x805e962 "purge",
    ConfName = 0x805e52f "APT::Get::Purge", Flags = 0}, {ShortOpt = 0 '\0',
    LongOpt = 0x805eb0f "list-cleanup",
    ConfName = 0x805e246 "APT::Get::List-Cleanup", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb1c "reinstall",
    ConfName = 0x805e53f "APT::Get::ReInstall", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb26 "trivial-only",
    ConfName = 0x805e7f1 "APT::Get::Trivial-Only", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb4e "remove",
    ConfName = 0x805e769 "APT::Get::Remove", Flags = 0}, {ShortOpt = 0 '\0',
    LongOpt = 0x805eb33 "only-source",
    ConfName = 0x805e28c "APT::Get::Only-Source", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb3f "arch-only",
    ConfName = 0x805e867 "APT::Get::Arch-Only", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb49 "auto-remove",
    ConfName = 0x805e25d "APT::Get::AutomaticRemove", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb55 "allow-unauthenticated",
    ConfName = 0x8060058 "APT::Get::AllowUnauthenticated", Flags = 0}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb6b "install-recommends",
    ConfName = 0x805eb7e "APT::Install-Recommends", Flags = 4}, {
    ShortOpt = 0 '\0', LongOpt = 0x805eb96 "fix-policy",
    ConfName = 0x805e65b "APT::Get::Fix-Policy-Broken", Flags = 0}, {
    ShortOpt = 99 'c', LongOpt = 0x805eba1 "config-file", ConfName = 0x0,
    Flags = 17}, {ShortOpt = 111 'o', LongOpt = 0x805ebad "option",
    ConfName = 0x0, Flags = 33}, {ShortOpt = 0 '\0', LongOpt = 0x0,
    ConfName = 0x0, Flags = 0}}
 Cmds = {{Match = 0x805e9cb "update",
    Handler = 0x8052ff0 <DoUpdate(CommandLine&)>}, {
    Match = 0x805e9e7 "upgrade",
    Handler = 0x805ba00 <DoUpgrade(CommandLine&)>}, {
    Match = 0x805eb1e "install",
    Handler = 0x8059dc0 <DoInstall(CommandLine&)>}, {
    Match = 0x805eb4e "remove",
    Handler = 0x8059dc0 <DoInstall(CommandLine&)>}, {
    Match = 0x805e962 "purge", Handler = 0x8059dc0 <DoInstall(CommandLine&)>},
  {Match = 0x805e968 "autoremove",
    Handler = 0x8059dc0 <DoInstall(CommandLine&)>}, {
    Match = 0x805e962 "purge", Handler = 0x8059dc0 <DoInstall(CommandLine&)>},
  {Match = 0x805e9d2 "dist-upgrade",
    Handler = 0x8059a80 <DoDistUpgrade(CommandLine&)>}, {
    Match = 0x805e9df "dselect-upgrade",
    Handler = 0x8059470 <DoDSelectUpgrade(CommandLine&)>}, {
    Match = 0x805e9ef "build-dep",
    Handler = 0x8057f20 <DoBuildDep(CommandLine&)>}, {
    Match = 0x805e9fd "clean", Handler = 0x8054660 <DoClean(CommandLine&)>}, {
    Match = 0x805e9f9 "autoclean",
    Handler = 0x8050100 <DoAutoClean(CommandLine&)>}, {
    Match = 0x805ea03 "check", Handler = 0x80544f0 <DoCheck(CommandLine&)>}, {
    Match = 0x805e48d "source", Handler = 0x804e150 <DoSource(CommandLine&)>},
  {Match = 0x805ea09 "moo", Handler = 0x8054630 <DoMoo(CommandLine&)>}, {
    Match = 0x805e1d8 "help", Handler = 0x8054b30 <ShowHelp(CommandLine&)>}, {
    Match = 0x0, Handler = 0}}
 CmdL = {ArgList = 0xbfbde92c, Conf = 0x90ec218, FileList = 0x9189a48}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.