[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2023-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #12 from Jonathan Wakely --- Is the engine a C++ application, or C, or something else?

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2023-10-27 Thread a1ba.omarov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #11 from Alibek Omarov --- I reproduced it with the game engine loading game mod, on Ubuntu Linux system. Both the engine and the mod are open source, but I'm trying to craft a smaller example.

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2023-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #10 from Jonathan Wakely --- My best guess for what's happening in the original report is that the shared library is being loaded into a running process which uses an older version of libstdc++, and so the locale facets needed by the

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2023-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #9 from Jonathan Wakely --- If this only happens when the shared library is loaded from a closed source application, you really need to talk to Oracle.

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2023-10-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #8 from Jonathan Wakely --- We still don't have a complete description of the problem though.

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2023-10-26 Thread a1ba.omarov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 Alibek Omarov changed: What|Removed |Added CC||a1ba.omarov at gmail dot com ---

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2017-11-17 Thread spamdrop at fodvo dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 spamdrop at fodvo dot org changed: What|Removed |Added Version|7.1.0 |7.2.0 --- Comment #6 from

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2017-11-16 Thread spamdrop at fodvo dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #5 from spamdrop at fodvo dot org --- Taking Johnathan's recommendation on Sept 29, I rebuilt the entire app, all libaries etc using -D_GLIBCXX_USE_CXX11_ABI=0 Carefully isolating the libs and LD_LIBRARY_PATH. Using ABI=0, the

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2017-09-30 Thread spamdrop at fodvo dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #4 from spamdrop at fodvo dot org --- One more comment to add before I forget, If I change the regex string to remove the []'s, while the program doesn't do the correct thing (obviously), it at least doesn't throw the exception. Not

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2017-09-30 Thread spamdrop at fodvo dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #3 from spamdrop at fodvo dot org --- Thanks, I'll look into, but due to a deadline I have right now, I need to fallback to 4.9.2 until I get my POC project running. But thanks for the quick reply.

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2017-09-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #2 from Jonathan Wakely --- Actually the gdb output does show the right libstdc++ is being used: Reading symbols from /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6...done. Loaded symbols for /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6 Try

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast

2017-09-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366 --- Comment #1 from Jonathan Wakely --- It looks like the libstdc++.so.6 that the application links to is older than the version you compiled against, and doesn't have support for the new std::string type used in your callback. It might work to