apt-cache search segfault on alpha

Bug #24407 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
apt (Debian)
Fix Released
Unknown
apt (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Automatically imported from Debian bug report #335103 http://bugs.debian.org/335103

Revision history for this message
In , Joey Hess (joeyh) wrote : reproduced by others too..

I'm not the only one seeing this, so I am relctantly upgrading it to RC.

Which sucks, I needed this version of apt in testing to release the d-i
beta with. :-(

--
see shy jo

Revision history for this message
In , Joey Hess (joeyh) wrote : severity of 335103 is serious

# Automatically generated email from bts, devscripts version 2.9.8
severity 335103 serious

Revision history for this message
In , Joey Hess (joeyh) wrote : block 324506 with 335103

# Automatically generated email from bts, devscripts version 2.9.8
block 324506 with 335103

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #335103 http://bugs.debian.org/335103

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 21 Oct 2005 18:37:34 -0400
From: Joey Hess <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: apt-cache search segfault on alpha

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: apt
Version: 0.6.42
Severity: important
Tags: d-i

apt-cache search <anything> seems to segfault on alpha (i386 and sparc
are ok). 0.6.41 was ok. Unfortunatly this prevents d-i from working
since it uses apt-cache search to work out what kernel packages are
available for install.

I built apt and got a backtrace, here's the result.

(gdb) r search apt
Starting program: /root/tmp/apt-0.6.42/build/bin/apt-cache search apt

Program received signal SIGSEGV, Segmentation fault.
LocalityCompare (a=3DVariable "a" is not available.
) at apt-cache.cc:64
64 if (A->File =3D=3D B->File)
(gdb) bt
#0 LocalityCompare (a=3DVariable "a" is not available.
) at apt-cache.cc:64
#1 0x000002000033bc58 in bsearch () from /lib/libc.so.6.1
#2 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#3 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#4 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#5 0x000002000033bc24 in bsearch () from /lib/libc.so.6.1
#6 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#7 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#8 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#9 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#10 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#11 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#12 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#13 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#14 0x000002000033bc0c in bsearch () from /lib/libc.so.6.1
#15 0x000002000033bea4 in qsort () from /lib/libc.so.6.1
#16 0x00000001200038c0 in LocalitySort (begin=3DVariable "begin" is not ava=
ilable.
) at apt-cache.cc:72
#17 0x000000012000ae84 in Search (CmdL=3D@0x11ffff5a8) at apt-cache.cc:1298
#18 0x000002000005e164 in CommandLine::DispatchArg ()
   from /usr/lib/libapt-pkg-libc6.3-6.so.3.10
#19 0x000000012000f288 in main (argc=3DVariable "argc" is not available.
) at apt-cache.cc:1798
(gdb)=20

--=20
see shy jo

--huq684BweRXVnRxX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDWW0Xd8HHehbQuO8RAqYJAJ9fr8C3VawXS/F1QnXOyATvVa3VTgCfUMpz
BD6EWOgzX2Q3m7uqUQiQutQ=
=KAoI
-----END PGP SIGNATURE-----

--huq684BweRXVnRxX--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 21 Oct 2005 19:35:28 -0400
From: Joey Hess <email address hidden>
To: <email address hidden>
Subject: reproduced by others too..

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'm not the only one seeing this, so I am relctantly upgrading it to RC.

Which sucks, I needed this version of apt in testing to release the d-i
beta with. :-(

--=20
see shy jo

--CE+1k2dSO48ffgeK
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDWXtAd8HHehbQuO8RAkqoAJsGAUlQ7hSi7H/KqxdB6Dqx4LRg/ACeMtM4
wD6q8mO+geZSeJRF2oKJLNg=
=TlTD
-----END PGP SIGNATURE-----

--CE+1k2dSO48ffgeK--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 21 Oct 2005 19:35:37 -0400
From: Joey Hess <email address hidden>
To: <email address hidden>
Subject: severity of 335103 is serious

# Automatically generated email from bts, devscripts version 2.9.8
severity 335103 serious

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 21 Oct 2005 19:36:55 -0400
From: Joey Hess <email address hidden>
To: <email address hidden>
Subject: block 324506 with 335103

# Automatically generated email from bts, devscripts version 2.9.8
block 324506 with 335103

Revision history for this message
In , Michael Vogt (mvo) wrote : Bug#335103: fixed in apt 0.6.42.1

Source: apt
Source-Version: 0.6.42.1

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive:

apt-doc_0.6.42.1_all.deb
  to pool/main/a/apt/apt-doc_0.6.42.1_all.deb
apt-utils_0.6.42.1_i386.deb
  to pool/main/a/apt/apt-utils_0.6.42.1_i386.deb
apt_0.6.42.1.dsc
  to pool/main/a/apt/apt_0.6.42.1.dsc
apt_0.6.42.1.tar.gz
  to pool/main/a/apt/apt_0.6.42.1.tar.gz
apt_0.6.42.1_i386.deb
  to pool/main/a/apt/apt_0.6.42.1_i386.deb
libapt-pkg-dev_0.6.42.1_i386.deb
  to pool/main/a/apt/libapt-pkg-dev_0.6.42.1_i386.deb
libapt-pkg-doc_0.6.42.1_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.6.42.1_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <email address hidden> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 22 Oct 2005 23:44:35 +0200
Source: apt
Binary: apt-utils libapt-pkg-doc libapt-pkg-dev apt-doc apt
Architecture: source all i386
Version: 0.6.42.1
Distribution: unstable
Urgency: low
Maintainer: APT Development Team <email address hidden>
Changed-By: Michael Vogt <email address hidden>
Description:
 apt - Advanced front-end for dpkg
 apt-doc - Documentation for APT
 apt-utils - APT utility programs
 libapt-pkg-dev - Development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - Documentation for APT development
Closes: 282918 335102 335103 335213
Changes:
 apt (0.6.42.1) unstable; urgency=low
 .
   * fix a incorrect example in the apt_prefrences man page
     (thanks to Filipus Klutiero, closes: #282918)
   * apt-pkg/pkgrecords.cc:
     - revert patch from last version, it causes trouble on alpha
       and ia64 (closes: #335102, #335103)
   * cmdline/apt-get.cc:
     - be extra carefull in FindSrc (closes: #335213)
Files:
 185f6757b533151b1172c5f722001230 789 admin important apt_0.6.42.1.dsc
 3a3b50a6b0b205ec8f234df1c3d81914 1446646 admin important apt_0.6.42.1.tar.gz
 a8deb255adedc7ecd8983d00672d4ad0 85370 doc optional apt-doc_0.6.42.1_all.deb
 609cefb8841e4772488a2c735ffaf956 108818 doc optional libapt-pkg-doc_0.6.42.1_all.deb
 c09cc206914d3dda935be0ef95a0187e 1209214 admin important apt_0.6.42.1_i386.deb
 3d64b0fcce0746ccd74efcdca9c871db 78806 libdevel optional libapt-pkg-dev_0.6.42.1_i386.deb
 5d2ec628114a561d9c2e1269860c771e 200390 admin important apt-utils_0.6.42.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDW1+6liSD4VZixzQRAouBAJ9cxrcxzvQbU2LY3GaTmpjY4a2ZgACfQE0c
GEPD+5OOVQMolN+A3OXr7Go=
=dERh
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.2 KiB)

Message-Id: <email address hidden>
Date: Sun, 23 Oct 2005 03:17:07 -0700
From: Michael Vogt <email address hidden>
To: <email address hidden>
Subject: Bug#335103: fixed in apt 0.6.42.1

Source: apt
Source-Version: 0.6.42.1

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive:

apt-doc_0.6.42.1_all.deb
  to pool/main/a/apt/apt-doc_0.6.42.1_all.deb
apt-utils_0.6.42.1_i386.deb
  to pool/main/a/apt/apt-utils_0.6.42.1_i386.deb
apt_0.6.42.1.dsc
  to pool/main/a/apt/apt_0.6.42.1.dsc
apt_0.6.42.1.tar.gz
  to pool/main/a/apt/apt_0.6.42.1.tar.gz
apt_0.6.42.1_i386.deb
  to pool/main/a/apt/apt_0.6.42.1_i386.deb
libapt-pkg-dev_0.6.42.1_i386.deb
  to pool/main/a/apt/libapt-pkg-dev_0.6.42.1_i386.deb
libapt-pkg-doc_0.6.42.1_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.6.42.1_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <email address hidden> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 22 Oct 2005 23:44:35 +0200
Source: apt
Binary: apt-utils libapt-pkg-doc libapt-pkg-dev apt-doc apt
Architecture: source all i386
Version: 0.6.42.1
Distribution: unstable
Urgency: low
Maintainer: APT Development Team <email address hidden>
Changed-By: Michael Vogt <email address hidden>
Description:
 apt - Advanced front-end for dpkg
 apt-doc - Documentation for APT
 apt-utils - APT utility programs
 libapt-pkg-dev - Development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - Documentation for APT development
Closes: 282918 335102 335103 335213
Changes:
 apt (0.6.42.1) unstable; urgency=low
 .
   * fix a incorrect example in the apt_prefrences man page
     (thanks to Filipus Klutiero, closes: #282918)
   * apt-pkg/pkgrecords.cc:
     - revert patch from last version, it causes trouble on alpha
       and ia64 (closes: #335102, #335103)
   * cmdline/apt-get.cc:
     - be extra carefull in FindSrc (closes: #335213)
Files:
 185f6757b533151b1172c5f722001230 789 admin important apt_0.6.42.1.dsc
 3a3b50a6b0b205ec8f234df1c3d81914 1446646 admin important apt_0.6.42.1.tar.gz
 a8deb255adedc7ecd8983d00672d4ad0 85370 doc optional apt-doc_0.6.42.1_all.deb
 609cefb8841e4772488a2c735ffaf956 108818 doc optional libapt-pkg-doc_0.6.42.1_all.deb
 c09cc206914d3dda935be0ef95a0187e 1209214 admin important apt_0.6.42.1_i386.deb
 3d64b0fcce0746ccd74efcdca9c871db 78806 libdevel optional libapt-pkg-dev_0.6.42.1_i386.deb
 5d2ec628114a561d9c2e1269860c771e 200390 admin important apt-utils_0.6.42.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDW1+6liSD4VZixzQRAouBAJ9cxrcxzvQbU2LY3GaTmpjY4a2ZgACfQE0c
GEPD+5OOVQMolN+A3OXr7Go=...

Read more...

Revision history for this message
Michael Vogt (mvo) wrote :

fixed in our apt as well.

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.