This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/84865] Regular expression regex_search falls into infinite loop causing segfault on crayxc machines
- From: "shaoqin2 at illinois dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Mar 2018 21:43:23 +0000
- Subject: [Bug libstdc++/84865] Regular expression regex_search falls into infinite loop causing segfault on crayxc machines
- Auto-submitted: auto-generated
- References: <bug-84865-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865
--- Comment #3 from Bobby Lu <shaoqin2 at illinois dot edu> ---
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 (core dumped)
g++ -v
Using built-in specs.
COLLECT_GCC=/opt/gcc/7.1.0/bin/../snos/bin/g++
COLLECT_LTO_WRAPPER=/opt/gcc/7.1.0/snos/libexec/gcc/x86_64-suse-linux/7.1.0/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../cray-gcc-7.1.0-201705230545.65f29659747b4/configure
--prefix=/opt/gcc/7.1.0/snos --disable-nls --libdir=/opt/gcc/7.1.0/snos/lib
--enable-languages=c,c++,fortran
--with-gxx-include-dir=/opt/gcc/7.1.0/snos/include/g++
--with-slibdir=/opt/gcc/7.1.0/snos/lib --with-system-zlib --enable-shared
--enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog
--disable-multilib
Thread model: posix
gcc version 7.1.0 20170502 (Cray Inc.) (GCC)
uname -a
Linux edison03 4.4.103-92.56-default #1 SMP Wed Dec 27 16:24:31 UTC 2017
(2fd2155) x86_64 x86_64 x86_64 GNU/Linux