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

Bug#501274: apt-cache show segfaults when APT::Cache::AllVersions is false



Gerfried Fuchs <rhonda@deb.at> wrote:
> (gdb) run show vimoutliner
> Starting program: /home/rhonda/Debian/NMU/apt/apt-0.7.18/build/bin/apt-cache show vimoutliner
>
> Program received signal SIGSEGV, Segmentation fault.
> ShowPackage (CmdL=<value optimized out>) at apt-cache.cc:1438
> 1438		 if (V.end() == true || V.FileList().end() == true)
> (gdb) bt
> #0  ShowPackage (CmdL=<value optimized out>) at apt-cache.cc:1438
> #1  0x0ff391d4 in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.7-6.so.4.6
> #2  0x100082ac in main (argc=<value optimized out>, argv=0xbfff5524) at apt-cache.cc:1861
> (gdb) 

Axel Beckert <abe@deuxchevaux.org> wrote:
> What did segfault, too, was 
>
>   apt-cache --no-all-versions show abiword-gnome
>
> which is a virtual package only (now).
>
> All other virtual packages I tried, segfault, too: alsa, aalib1,
> x-terminal-emulator, emacsen, perl5, awk, x-www-browser, firefox,
> thunderbird.
>
> So the common thing with all the segfaults seems not "source name used
> as binary name" but "is only referred to or a virtual package".

ShowPackage has since been rewritten to use
VersionList::FromCommandLine.  Can anyone confirm the crash is present
or not with current versions?

Regards


Reply to: