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

Bug#282862: Apt hungs while reading sources.lst with long comments



Package: apt
Version: 0.5.4

Hello,

I've recently found a bug in apt tool. Apt hangs while reading
sources.lst file containing lines with long comments (more > 300 
chars), like:

#longlonglonglonglonglong .... long (300 chars)

Apt-get hungs, strace apt-get update gives:
...
open("/etc/apt/sources.list", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1459, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40014000
read(4, "#longlonglonglonlonglonglonglonl"..., 4096) = 1459

 Debian 3.0/Woody, recent updates.=20

 Home-made kernel form vanilla sources (plus patch-o-matic-ng).
 # uname -a
 Linux temptation.home.ltd 2.4.28-pre2 #2 Tue Sep 7 11:16:53 CEST 2004
 i586 unknown
 
-- 
Piotr 'QuakeR' Gasidło, BOFH @ pandora.barbara.eu.org
############## sending lusers to /dev/null since 1998
##### Waiting for tomorrow, for a little ray of light
### Waiting for tomorrow just to see your smile again

Attachment: signature.asc
Description: Digital signature


Reply to: