linnaea opened a new issue #8461: URL: https://github.com/apache/trafficserver/issues/8461
``` [abuild@linux-736e util]$ LD_LIBRARY_PATH=$PWD/.libs gdb .libs/test_tscpputil GNU gdb (GDB) Red Hat Enterprise Linux 8.2-15.el8 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from .libs/test_tscpputil...done. (gdb) run Starting program: /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/src/tscpp/util/.libs/test_tscpputil Missing separate debuginfos, use: yum debuginfo-install glibc-2.28-151.el8.x86_64 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". /usr/include/c++/8/string_view:172: constexpr const _CharT& std::basic_string_view<_CharT, _Traits>::operator[](std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char; _Traits = std::char_traits<char>; std::basic_string_view<_CharT, _Traits>::size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed. Program received signal SIGABRT, Aborted. 0x00007ffff6cf038f in raise () from /lib64/libc.so.6 Missing separate debuginfos, use: yum debuginfo-install libgcc-8.4.1-1.el8.x86_64 libstdc++-8.4.1-1.el8.x86_64 (gdb) bt #0 0x00007ffff6cf038f in raise () from /lib64/libc.so.6 #1 0x00007ffff6cdadc5 in abort () from /lib64/libc.so.6 #2 0x000055555560f97a in std::__replacement_assert (__condition=0x55555562da35 "__pos < this->_M_len", __function=<synthetic pointer>, __line=172, __file=0x55555562e220 "/usr/include/c++/8/string_view") at /usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2397 #3 std::basic_string_view<char, std::char_traits<char> >::operator[] (this=<optimized out>, this=<optimized out>, __pos=<optimized out>) at /usr/include/c++/8/string_view:172 #4 <lambda(ts::TextView, ts::TextView&, ts::TextView&)>::operator() (b=..., host=..., __closure=<optimized out>, port=...) at unit_tests/test_TextView.cc:278 #5 <lambda(ts::TextView, ts::TextView&, ts::TextView&)>::operator()(ts::TextView, ts::TextView &, ts::TextView &) (b=..., host=..., port=..., __closure=<optimized out>) at unit_tests/test_TextView.cc:275 #6 0x000055555561792d in ____C_A_T_C_H____T_E_S_T____8 () at unit_tests/test_TextView.cc:308 #7 0x00005555555b2769 in Catch::TestCase::invoke (this=<optimized out>) at /usr/include/c++/8/bits/shared_ptr_base.h:1018 #8 Catch::RunContext::invokeActiveTestCase (this=0x7fffffffe010) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:13020 #9 0x00005555555cbdca in Catch::RunContext::runCurrentTest (this=0x7fffffffe010, redirectedCout="", redirectedCerr="") at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:12993 #10 0x00005555555d5320 in Catch::RunContext::runTest (this=0x7fffffffe010, testCase=...) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:12754 #11 0x00005555555d9670 in Catch::(anonymous namespace)::TestGroup::execute (this=0x7fffffffe000) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:13347 #12 Catch::Session::runInternal (this=0x7fffffffe2b0) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:13553 #13 0x00005555555d9bae in Catch::Session::run (this=this@entry=0x7fffffffe2b0) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:13509 #14 0x00005555555ad02b in Catch::Session::run<char> (argv=0x7fffffffe558, argc=1, this=0x7fffffffe2b0) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:13226 #15 Catch::Session::run<char> (argv=0x7fffffffe558, argc=1, this=0x7fffffffe2b0) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:13226 #16 main (argc=1, argv=0x7fffffffe558) at /home/abuild/rpmbuild/BUILD/trafficserver-9.1.0/tests/include/catch.hpp:17526 (gdb) ``` https://github.com/apache/trafficserver/blob/b43c213f903f4cd73d785b653557151c44bc4992/src/tscpp/util/unit_tests/test_TextView.cc#L278 https://github.com/apache/trafficserver/blob/b43c213f903f4cd73d785b653557151c44bc4992/proxy/hdrs/MIME.cc#L2285 `idx == b.size()` would mean `b[idx]` is out of bounds. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
