Here is updated information if you are interested. I realize the
recommendation is probably to move to libc++.
This is using clang++-6.0. Updated test case regex.
clang++-6.0 -std=c++14 -O3 -g test.cpp
--
#include
#include
#include
int main() {
const std::string& output = regex_replace
Please provide more information like the back trace.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748344
Title:
clang++ regex_replace always segfaults with -O3
To manage notifications about this
I think the reduces test case is invalid - std::regex("") - although it
had the same crash signature as the real world crash.
Oh well, sorry for the spam.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs
Just for historical record for anyone who search this, I was able to
reproduce this with clang 4, 5 and 6.
I can only assume it is an issue with the version of libstdc++-dev
pushed to 16.04.03.
Running the resulting executable always triggers a segmentation fault
with -03 but runs correctly witho
I reported it because it is the default clang installed for 16.04 which
is the only clang we can expect the user to have.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748344
Title:
clang++ regex_r
3.8 is pretty old. you should try with a more recent version
(https://apt.llvm.org/ can help with that).
Anyway, I cannot reproduce the issue from 3.8 to 7.
** Changed in: llvm-defaults (Ubuntu)
Status: New => Won't Fix
--
You received this bug notification because you are a member of U
libstdc++-5-dev:
Installed: 5.4.0-6ubuntu1~16.04.6
Candidate: 5.4.0-6ubuntu1~16.04.6
Version table:
*** 5.4.0-6ubuntu1~16.04.6 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64
Packages
100 /var/lib/dpkg/status
5.4.0-6ubuntu1~16.04.4 500
500