[Bug c++/112596] New: GCC regex error in

2023-11-17 Thread svraghavan7 at gmail dot com via Gcc-bugs
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)

[Bug libstdc++/112596] GCC regex error in Opentelemetry C++

2023-11-20 Thread svraghavan7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112596

--- Comment #2 from Veeraraghavan Sekar  ---
Okay thanks @Jonathan for your comments. Code works during some examples with
GCC11.4 but fails some case with above shared error. You have common reason on
what cause 

_Unwind_Resume and _Unwind_RaiseException_Phase2? 

Does D_GLIBCXX_USE_CXX11_ABI flag will have impact? Since I am less experienced
in C++ please bear with me on type of questions.

[Bug libstdc++/112596] GCC regex error in Opentelemetry C++

2023-11-20 Thread svraghavan7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112596

--- Comment #4 from Veeraraghavan Sekar  ---
Okay thanks