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

Bug#335213: apt-get source segfault with non existing source packages



Package: apt
Version: 0.6.42
Severity: important

Hello,

I have a problem with a recent upgrade of apt (since 0.6.42 only, before
it worked without segfault with exactly the same command
line). Actually, when i do :

# apt-get source squashfs
Reading package lists... Done
Building dependency tree... Done
Segmentation fault

Or this command too :

# apt-get source foo
Reading package lists... Done
Building dependency tree... Done
Segmentation fault

But when doing :

# apt-get source libc6
Reading package lists... Done
Building dependency tree... Done
Need to get 13.8MB of source archives.
[..]

So, using apt source with debugging symbols, i have :

$ gdb ./apt-get
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-linux"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) r source squashfs
Starting program: /src/build/apt-0.6.42/bin/apt-get source squashfs
Reading package lists... Done
Building dependency tree... Done

Program received signal SIGSEGV, Segmentation fault.
FindSrc (Name=0xbf9c18d1 "squashfs",Recs=@0xbf9bfa30,SrcRecs=@0xbf9bfa20, Src=@0xbf9bf99c, Cache=@0x8089bd8) at cacheiterators.h:334
334        inline PkgFileIterator File() const {return PkgFileIterator(*Owner,FileP->File + Owner->PkgFileP);};
(gdb) bt
#0  FindSrc (Name=0xbf9c18d1 "squashfs", Recs=@0xbf9bfa30,SrcRecs=@0xbf9bfa20, Src=@0xbf9bf99c, Cache=@0x8089bd8) at cacheiterators.h:334
#1  0x0805b7a7 in DoSource (CmdL=@0xbf9bfe08) at apt-get.cc:1907
#2  0xb7f205f2 in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.3-6.so.3.10
#3  0x0805e9d2 in main (argc=3, argv=0xbf9bfea4) at apt-get.cc:2571

Regards,
Arnaud Fontaine

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Default-Release "unstable";
APT::Get "";  
APT::Get::Show-Upgraded "true";
APT::Get::Show-Versions "true";
APT::Get::AllowUnauthenticated "1";
APT::Get::List-Cleanup "true";
APT::CleanInstalled "true";
APT::Cache "";   
APT::Cache::AllVersions "false";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "/home/arnau/pub";
Dir::Cache::archives "apt/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d/";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p
$PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit 0;
fi";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";

-- /etc/apt/sources.list --

##################################################
# Official packages for Testing and Unstable     #
##################################################
deb http://ftp.de.debian.org/debian testing main contrib
deb-src http://ftp.de.debian.org/debian testing main contrib

deb http://ftp.de.debian.org/debian unstable main contrib
deb-src http://ftp.de.debian.org/debian unstable main contrib

##################################################
# Andesi, Cerkinfo (mplayer, transcode...)       #
##################################################
deb http://www.andesi.org/pub/debian woody main
deb http://www.andesi.org/public/work/apt ./
deb http://apt.cerkinfo.be/ unstable main contrib
deb-src http://apt.cerkinfo.be/ unstable main contrib
deb http://debian.duckcorp.org/unstable/binary-i386/ ./
deb-src http://debian.duckcorp.org/unstable/source/ ./

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-rc3-d500
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages apt depends on:
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-2  GCC support library
ii  libstdc++6                    4.0.2-2    The GNU Standard C++ Library v3

apt recommends no packages.

-- no debconf information

-- 
Arnaud Fontaine <arnaud@andesi.org> - http://www.andesi.org/ | GPG
Public Key available on pgp.mit.edu | Fingerprint: D792 B8A5 A567 B001
C342 2613 BDF2 A220 5E36 19D3

Attachment: pgplCuApkJyIu.pgp
Description: PGP signature


Reply to: