[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-10 Thread corey taylor
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 =

[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-10 Thread Sylvestre Ledru
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

[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-09 Thread corey taylor
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.

[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-09 Thread corey taylor
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

[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-09 Thread corey taylor
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++

[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-09 Thread Sylvestre Ledru
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

[Bug 1748344] Re: clang++ regex_replace always segfaults with -O3

2018-02-08 Thread corey taylor
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