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

Bug#244835: marked as done ([apt-pkg] Cannot handle lines longer than ~300 chars in config)



Your message dated Sat, 08 May 2004 16:47:03 -0400
with message-id <E1BMYit-0002mU-00@newraff.debian.org>
and subject line Bug#244835: fixed in apt 0.5.25
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Apr 2004 08:18:06 +0000
>From pape-qn-5f369ee-submit=bugs.debian.org@smarden.org Tue Apr 20 01:18:06 2004
Return-path: <pape-qn-5f369ee-submit=bugs.debian.org@smarden.org>
Received: from smarden.org [212.21.76.77] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1BFqSE-0005lP-00; Tue, 20 Apr 2004 01:18:06 -0700
Received: (qmail 4874 invoked by uid 1000); 20 Apr 2004 08:18:25 -0000
Message-ID: <20040420081825.4873.qmail@0af21ef8e0b8cf.315fe32.mid.smarden.org>
Date: Tue, 20 Apr 2004 08:19:32 +0000
From: Gerrit Pape <pape-dbnbgs@smarden.org>
To: submit@bugs.debian.org
Subject: apt-get: hangs with long value in config file
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.8 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	LARGE_HEX autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: apt
Version: 0.5.24

Hi, when putting this into etc/apt/apt.conf.d/99test, apt-get hangs in
an infinite loop it seems:

# cat /etc/apt/apt.conf.d/99test 
DPkg
{
  Post-Invoke {"echo 678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901";}
}
# apt-get install --reinstall sed
...

This works:

# cat /etc/apt/apt.conf.d/99test 
DPkg
{
  Post-Invoke {"echo 67890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";}
}
# apt-get install --reinstall sed
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 29 not upgraded.
Need to get 0B/211kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 91707 files and directories currently installed.)
Preparing to replace sed 4.0.9-1 (using .../archives/sed_4.0.9-1_i386.deb) ...
Unpacking replacement sed ...
Setting up sed (4.0.9-1) ...

67890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
#

With another syntax, this hangs:

# cat /etc/apt/apt.conf.d/99test 
DPkg::Post-Invoke {"echo 6789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456";};
# apt-get install --reinstall sed
...

and this works:

# cat /etc/apt/apt.conf.d/99test 
DPkg::Post-Invoke {"echo 678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345";};
# apt-get install --reinstall sed
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 29 not upgraded.
Need to get 0B/211kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 91707 files and directories currently installed.)
Preparing to replace sed 4.0.9-1 (using .../archives/sed_4.0.9-1_i386.deb) ...
Unpacking replacement sed ...
Setting up sed (4.0.9-1) ...

678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345
#

Regards, Gerrit.
-- 
Open projects at http://smarden.org/pape/.

---------------------------------------
Received: (at 244835-close) by bugs.debian.org; 8 May 2004 20:53:05 +0000
>From katie@ftp-master.debian.org Sat May 08 13:53:05 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BMYoj-0005Xq-00; Sat, 08 May 2004 13:53:05 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BMYit-0002mU-00; Sat, 08 May 2004 16:47:03 -0400
From: Matt Zimmerman <mdz@debian.org>
To: 244835-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#244835: fixed in apt 0.5.25
Message-Id: <E1BMYit-0002mU-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 08 May 2004 16:47:03 -0400
Delivered-To: 244835-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 12

Source: apt
Source-Version: 0.5.25

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.5.25_all.deb
  to pool/main/a/apt/apt-doc_0.5.25_all.deb
apt-utils_0.5.25_i386.deb
  to pool/main/a/apt/apt-utils_0.5.25_i386.deb
apt_0.5.25.dsc
  to pool/main/a/apt/apt_0.5.25.dsc
apt_0.5.25.tar.gz
  to pool/main/a/apt/apt_0.5.25.tar.gz
apt_0.5.25_i386.deb
  to pool/main/a/apt/apt_0.5.25_i386.deb
libapt-pkg-dev_0.5.25_i386.deb
  to pool/main/a/apt/libapt-pkg-dev_0.5.25_i386.deb
libapt-pkg-doc_0.5.25_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.5.25_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 244835@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matt Zimmerman <mdz@debian.org> (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 ftpmaster@debian.org)


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

Format: 1.7
Date: Sat,  8 May 2004 12:52:20 -0700
Source: apt
Binary: apt-utils libapt-pkg-doc libapt-pkg-dev apt-doc apt
Architecture: source all i386
Version: 0.5.25
Distribution: unstable
Urgency: low
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Matt Zimmerman <mdz@debian.org>
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: 152711 238578 238943 239785 240074 241971 242388 243959 244176 244293 244369 244835 245923 246550 246925 247311
Changes: 
 apt (0.5.25) unstable; urgency=low
 .
   * Patch from Jason Gunthorpe to remove arbitrary length limit on Binary
     field in SourcesWriter::DoPackage
   * Fix typo in apt-cache(8) (Closes: #238578)
   * Fix obsolete reference to bug(1) in stub apt(8) man page
     (Closes: #245923)
   * Fix typo in configure-index (RecruseDepends -> RecurseDepends)
     (Closes: #246550)
   * Support DEB_BUILD_OPTIONS=noopt in debian/rules
     (Closes: #244293)
   * Increase length of line buffer in ReadConfigFile to 1024 chars;
     detect if a line is longer than that and error out
     (Closes: #244835)
   * Suppress a signed/unsigned warning in apt-cache.cc:DisplayRecord
   * Build apt-ftparchive with libdb4.2 rather than libdb2
     - Patch from Clint Adams to do most of the work
     - Build-Depends: s/libdb2-dev/libdb4.2-dev/
     - Add AC_PREREQ(2.50) to configure.in
     - Use db_strerror(err) rather than GlobalError::Errno (which uses strerror)
     - Add note to NEWS.Debian about upgrading old databases
   * Attempt to fix problems with chunked encoding by stripping only a single CR
     (Closes: #152711)
   * Modify debian/rules cvs-build to use cvs export, to avoid picking up
     junk files from the working directory
   * Add lang=fr attribute to refentry section of
     apt-extracttemplates.fr.1.sgml and apt-sortpkgs.fr.1.sgml so they are
     correctly built
   * Remove extraneous '\' characters from <command> tags in
     apt_preferences.fr.5.sgml
   * Translation updates:
     - Updated Swedish translation from Peter Karlsson  <peter@softwolves.pp.se>
       (Closes: #238943)
     - New Slovenian translation from Jure Ä?uhalev <gandalf@owca.info>
       (closes: #239785)
     - New Portuguese translation from Miguel Figueiredo <elmig@debianpt.org>
       (closes: #240074)
     - Updated Spanish translation from Ruben Porras <nahoo82@telefonica.net>
     - Updated Spanish translation of man pages from Ruben Porras
       <nahoo82@telefonica.net>
     - Updated Simplified Chinese translation from "Carlos Z.F. Liu" <carlos_liu@yahoo.com>
       (Closes: #241971)
     - Updated Russian translation from Dmitry Astapov <adept@despammed.com>
       (Closes: #243959)
     - Updated Polish translation from Marcin Owsiany <porridge@debian.org>
       (Closes: #242388)
     - Updated Czech translation from Miroslav Kure <kurem@upcase.inf.upol.cz>
       (Closes: #244369)
     - Updated Japanese translation from Kenshi Muto <kmuto@debian.org>
       (Closes: #244176)
     - Run make -C po update-po to update .po files
     - Updated French translation from Christian Perrier <bubulle@debian.org>
       (Closes: #246925)
     - Updated Danish translation from Claus Hindsgaul <claus_h@image.dk>
       (Closes: #247311)
Files: 
 b498d368cd955eb176803d0ca4aef9de 756 admin important apt_0.5.25.dsc
 01f9ade1f00f398c1c03ebcc85655e5e 1187769 admin important apt_0.5.25.tar.gz
 08ea3d780fd77cc39dd754c2cf5ac04a 67956 doc optional apt-doc_0.5.25_all.deb
 2f2ef58272571d74f8593a0be6fac4d9 96778 doc optional libapt-pkg-doc_0.5.25_all.deb
 e0352eb89097e7c52dac5d36a0e42f82 969520 base important apt_0.5.25_i386.deb
 1f7eb2a0c8219561e9ee21182fd663b3 67308 libdevel optional libapt-pkg-dev_0.5.25_i386.deb
 9342f5c13291623f11c733a3f7ee89c2 181608 admin optional apt-utils_0.5.25_i386.deb

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

iD8DBQFAnUSnArxCt0PiXR4RAn8jAKDCZsg5QSn+DWVY7yPD8v0PQd9kegCgn1aW
LIq0HD5KvrI+KGLADWiWZ6E=
=I/Qc
-----END PGP SIGNATURE-----



Reply to: