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

Bug#50295: marked as done (apt-get segmentation violation in very wide terminal windows)



Your message dated Sun, 5 Dec 1999 19:51:12 -0700 (MST)
with message-id <Pine.LNX.3.96.991205195015.16211T-100000@wakko.deltatee.com>
and subject line Fixed
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.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Nov 1999 02:13:28 +0000
Received: (qmail 12536 invoked from network); 16 Nov 1999 02:13:28 -0000
Received: from solo.inovion.com (HELO inovion.com) (root@216.172.181.2)
  by master.debian.org with SMTP; 16 Nov 1999 02:13:28 -0000
Received: from biogate.com (xxiii@Excalibur.quantium.net [216.172.182.23])
	by inovion.com (8.8.8/8.8.7) with ESMTP id CAA02606
	for <submit@bugs.debian.org>; Tue, 16 Nov 1999 02:13:26 GMT
	(envelope-from xxiii@biogate.com)
Sender: xxiii@inovion.com
Message-ID: <3830C8BE.95EC4289@biogate.com>
Date: Tue, 16 Nov 1999 03:00:14 +0000
From: Dave E Martin XXIII <xxiii@biogate.com>
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: apt-get segmentation violation in very wide terminal windows
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Package: apt
Version: 0.3.14

excalibur:/home/xxiii/Eiffel/radacct# apt-get -v
apt 0.3.14 for i386 compiled on Nov  7 1999  20:34:21
excalibur:/home/xxiii/Eiffel/radacct# uname -a
Linux excalibur 2.2.10 #2 Wed Jun 16 00:23:31 EST 1999 i686 unknown
excalibur:/home/xxiii/Eiffel/radacct# ls -l /lib/libc.so.6
lrwxrwxrwx    1 root     root           13 Nov  9 16:35 /lib/libc.so.6
-> libc-2.1.2.so

When using apt-get in a terminal window with a very long line length
(such as 306 characters)
there will be a segmentation fault.  Reinvoking apt seems to work ok,
continuing where it left off.  If downloading something large, one may
go through several cycles of segmentation faults.  Shrinking my terminal
window down to a smaller column count (153) got rid of the segmentation
faults entirely.

I would guess that the problem is in the code or library which updates
the bytes transferred line during a download.

In experimenting, it appears the longer the line length, the sooner the
segmentation fault.
It appears as if a char was used as a counter or index somewhere with
the assumption that it would never overflow.

Which package is retreived is irrelevant, as long as it is big enough
for the segmentation fault to occur  before it is fully retreived.
some example output:

excalibur:/home/xxiii/Eiffel/radacct# apt-get install dnsutils
Reading Package Lists... Done
Building Dependency Tree... Done
1 packages upgraded, 0 newly installed, 0 to remove and 53 not upgraded.

Need to get 334kB of archives. After unpacking 0B will be used.
Get:1 ftp://ftp.us.debian.org unstable/main dnsutils 1:8.2.2p3-1 [334kB]

50% [1 dnsutils 169360/334kB 50%]Segmentation fault
excalibur:/home/xxiii/Eiffel/radacct# apt-get install dnsutils
Reading Package Lists... Done
Building Dependency Tree... Done
1 packages upgraded, 0 newly installed, 0 to remove and 53 not upgraded.

Need to get 334kB of archives. After unpacking 0B will be used.
Fetched 334kB in 1s (279kB/s)

debconf: failed to initialize Dialog frontend
debconf: falling back to Text frontend
100% [Scanning packages]
(Reading database ... 33131 files and directories currently installed.)
Preparing to replace dnsutils 1:8.2.2-4 (using
.../dnsutils_1%3a8.2.2p3-1_i386.deb) ...
Unpacking replacement dnsutils ...
Setting up dnsutils (8.2.2p3-1) ...


---------------------------------------
Received: (at 50295-done) by bugs.debian.org; 6 Dec 1999 02:51:35 +0000
Received: (qmail 24889 invoked from network); 6 Dec 1999 02:51:31 -0000
Received: from crash.ab.videon.ca (root@206.75.216.220)
  by master.debian.org with SMTP; 6 Dec 1999 02:51:31 -0000
Received: from wakko.deltatee.com (mail@wakko.powersurfr.com [24.108.53.97])
	by crash.ab.videon.ca (8.9.2/8.9.2) with ESMTP id TAA24610;
	Sun, 5 Dec 1999 19:51:15 -0700 (MST)
Received: from localhost (wakko.deltatee.com) [127.0.0.1] (jgg)
	by wakko.deltatee.com with smtp (Exim 2.11 #1)
	id 11uoF6-0003cj-00 (Debian); Sun, 5 Dec 1999 19:51:12 -0700
Date: Sun, 5 Dec 1999 19:51:12 -0700 (MST)
From: Jason Gunthorpe <jgg@ualberta.ca>
X-Sender: jgg@wakko.deltatee.com
To: apt@ualberta.ca
Subject: Fixed
Message-ID: <Pine.LNX.3.96.991205195015.16211T-100000@wakko.deltatee.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


This bug has been fixed in the latest upload:

apt (0.3.15) unstable; urgency=low

  * Added DSelect::WaitAfterDownload Closes: #49549
  * Fixed cast error in byteswap macro and supporting code. Closes: #50093
  * Fixed buffer overflow for wide terminal sizes. Closes: #50295
  * Made -s and clean not do anything. Closes: #50238
  * Problem with Protected packages and the new OR code.
  * /usr/share/doc stuff. Closes: #51017, #50228, #51141
  * Remove doesn't require a package to be installable. Closes: #51175
  * FTP proxy touch ups in the mabn page. Closes: #51315, #51314

 -- Ben Gertzfield <che@debian.org>  Sat,  4 Dec 1999 21:17:24 -0800


Reply to: