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 ---
- To: submit@bugs.debian.org
- Subject: apt-get segfaults on '[' in sources.list
- From: Joshua Rogers <megamansec@gmail.com>
- Date: Tue, 02 Dec 2014 10:46:00 +1100
- Message-id: <547CFDB8.3030005@gmail.com>
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 ---
- To: 771738-done@bugs.debian.org
- Subject: Re: Bug#771738: apt-get segfaults on '[' in sources.list
- From: David Kalnischkies <david@kalnischkies.de>
- Date: Fri, 14 Aug 2015 20:25:20 +0200
- Message-id: <20150814182520.GA4636@crossbow>
- In-reply-to: <[🔎] 55CDA9A1.7000004@gmail.com>
- References: <547CFDB8.3030005@gmail.com> <[🔎] 20150814102847.GA10926@debian.org> <[🔎] 55CDA9A1.7000004@gmail.com>
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 KalnischkiesAttachment: signature.asc
Description: Digital signature
--- End Message ---