https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112596
Bug ID: 112596
Summary: GCC regex error in
Product: gcc
Version: 9.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: svraghavan7 at gmail dot com
Target Milestone: ---
Created attachment 56623
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56623&action=edit
Gdb Output trace
I have a plugin code which is developed using Opentelemetry C++ where the code
is running fine on gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) when i
deploy the same code in gcc 9.5.0 or 11.4 (Ubuntu 9.5.0-1ubuntu1~22.04) the
plugin is generating following error.
terminate called after throwing an instance of '
std::bad_alloc'
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc what(): std::bad_alloc
at the stage of executing this code
std::__cxx11::basic_regex
>::basic_regex, std::allocator
>(std::__cxx11::basic_string, std::allocator
> const&, std::regex_constants::syntax_option_type)