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

Bug#771738: marked as done (apt-get segfaults on '[' in sources.list)



Your message dated Fri, 14 Aug 2015 20:25:20 +0200
with message-id <20150814182520.GA4636@crossbow>
and subject line Re: Bug#771738: apt-get segfaults on '[' in sources.list
has caused the Debian Bug report #771738,
regarding apt-get segfaults on '[' in sources.list
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
771738: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771738
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.0.9.3
Severity: minor


If sources.list contains a [ in it, it will segfault. Likely true for ] too, but I haven't tried.


> # cat /etc/apt/sources.list [eb
> http://ppa.launchpad.net/banshee-team/ppa/ubuntu trusty main deb-src
> http://ppa.launchpad.net/banshee-team/ppa/ubuntu trusty main 
> # sudo apt-get update Segmentation fault 


From gdb:
> 0x00007ffff7b17247 in pkgSourceList::ReadAppend(std::string) () from
> /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (gdb) bt #0
> 0x00007ffff7b17247 in pkgSourceList::ReadAppend(std::string) () from
> /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #1 0x00007ffff7b17b54 in
> pkgSourceList::ReadMainList() () from
> /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #2 0x00007ffff7b3ad41 in
> pkgCacheFile::BuildSourceList(OpProgress*) () from
> /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #3 0x0000000000414770 in
> DoUpdate(CommandLine&) () at apt-get.cc:1617 #4 0x00007ffff7af12a3 in
> CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from
> /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #5 0x00000000004093d3 in
> main () at apt-get.cc:3523 



Broken code is likely in sourcelist.cc, here:
> char *I; // CNC:2003-02-20 - Do not break if '#' is inside []. for (I
> = Buffer; *I != 0 && *I != '#'; I++) if (*I == '[') I = strchr(I + 1,
> ']'); *I = 0; 



Thanks,

-- 
-- Joshua Rogers <https://internot.info/>

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
On Fri, Aug 14, 2015 at 06:41:05PM +1000, Joshua Rogers wrote:
> On 14/08/15 18:29, Julian Andres Klode wrote:
> >>> > > # cat /etc/apt/sources.list [eb
> >>> > > http://ppa.launchpad.net/banshee-team/ppa/ubuntu trusty main deb-src
> >>> > > http://ppa.launchpad.net/banshee-team/ppa/ubuntu trusty main 
> >>> > > # sudo apt-get update Segmentation fault 
> >> > 
> > I cannot reproduce this. Can you attach a failing sources.list file?
> It has been fixed upstream, I believe.

Well, we are upstream, but if you say it is fixed, lets close the bug.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: