Segfault generated in gdbserver with 32-bit binary and CPU that supports avx512

Solution Unverified - Updated -

Issue

  • Why gdbserver generates an error for 32-bit binaries when accessed through another session/terminal?

    /usr/include/c++/8/bits/stl_vector.h:950: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = reg; _Alloc = std::allocator<reg>; std::vector<_Tp, _Alloc>::const_reference = const reg&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
    

Environment

  • Red Hat Enterprise Linux 8
  • gcc-toolset-11-gdb

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content