Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: shaoqin2 at illinois dot edu
Target Milestone: ---
Using regex_search in a multi threaded environment on crayxc super computer
will cause infinite loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
--- Comment #1 from Bobby Lu ---
No compiler warning is generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
--- Comment #3 from Bobby Lu ---
Created attachment 43659
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43659&action=edit
Single source file to reproduce the bug
compile with
g++ -std=c++11 regex.cpp -lpthread
./a.out
Segmentation fault
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
Bobby Lu changed:
What|Removed |Added
Attachment #43659|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
--- Comment #7 from Bobby Lu ---
Created attachment 43661
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43661&action=edit
Gdb stack trace.
$ ulimit
unlimited
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
Bobby Lu changed:
What|Removed |Added
Attachment #43661|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
--- Comment #11 from Bobby Lu ---
(In reply to Tim Shen from comment #9)
> I see. Can you show the ulimit *stack* information? I believe it's -s.
>
> Also, try -O2 so that the functions are inlined.
>
> As for the stack overflow, it's a known i