Package: apt
Version: 2.9.17
Severity: normal

$ apt show :
/usr/include/c++/14/bits/basic_string.h:1269: 
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference 
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) 
[with _CharT = char; _Traits = std::char_traits<char>; _Alloc = 
std::allocator<char>; reference = char&; size_type = long unsigned int]: 
Assertion '__pos <= size()' failed.
Aborted (core dumped)
$


It looks OK in bookworm:

$ apt show :
N: Unable to locate package :
N: Unable to locate package :
E: No packages found
$


Backtrace:

#0  __pthread_kill_implementation (threadid=<optimized out>, 
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007ffff769dcef in __pthread_kill_internal (threadid=<optimized out>, 
signo=6) at ./nptl/pthread_kill.c:78
#2  0x00007ffff7649c42 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#3  0x00007ffff76324f0 in __GI_abort () at ./stdlib/abort.c:79
#4  0x00007ffff78d4f9e in std::__glibcxx_assert_fail(char const*, int, char 
const*, char const*) () from /lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff7cf918d in std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::operator[] 
(this=0x7fffffffd630, 
    __pos=<optimized out>) at /usr/include/c++/14/bits/basic_string.h:1265
#6  std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::operator[] (this=0x7fffffffd630, __pos=<optimized out>)
    at /usr/include/c++/14/bits/basic_string.h:1265
#7  APT::CacheSetHelper::PackageFromTask (this=this@entry=0x7fffffffdc90, 
pci=pci@entry=0x7fffffffd800, Cache=..., pattern="")
    at ./apt-pkg/cacheset.cc:63
#8  0x00007ffff7cfae01 in APT::CacheSetHelper::PackageFrom 
(this=0x7fffffffdc90, select=<optimized out>, pci=0x7fffffffd800, Cache=..., 
pattern=...)
    at /usr/include/c++/14/bits/basic_string.tcc:242
#9  0x00007ffff7cfab61 in APT::CacheSetHelper::PackageFromString 
(this=this@entry=0x7fffffffdc90, pci=pci@entry=0x7fffffffd800, Cache=..., 
str=":")
    at ./apt-pkg/cacheset.cc:326
#10 0x00007ffff7cfb55b in APT::CacheSetHelper::PackageFrom 
(this=0x7fffffffdc90, select=APT::CacheSetHelper::STRING, pci=0x7fffffffd800, 
Cache=..., 
    pattern=...) at ./apt-pkg/cacheset.cc:48
#11 APT::VersionContainerInterface::FromString (vci=vci@entry=0x7fffffffdbc0, 
Cache=..., pkg=":", 
    fallback=fallback@entry=APT::CacheSetHelper::CANDIDATE, helper=..., 
onlyFromName=onlyFromName@entry=false) at ./apt-pkg/cacheset.cc:462
#12 0x00007ffff7f3a8af in ShowPackage (CmdL=...) at 
/usr/include/c++/14/bits/basic_string.tcc:242
#13 0x00007ffff7d1017f in CommandLine::DispatchArg 
(this=this@entry=0x7fffffffe350, Map=<optimized out>, 
NoMatch=NoMatch@entry=true)
    at ./apt-pkg/contrib/cmndline.cc:373
#14 0x00007ffff7efbd44 in DispatchCommandLine (CmdL=..., Cmds=std::vector of 
length 33, capacity 64 = {...}) at ./apt-private/private-cmndline.cc:614
#15 0x00005555555562a1 in main (argc=3, argv=0x7fffffffe4d8) at 
./cmdline/apt.cc:123

Reply via email to