rm5248 commented on issue #420: URL: https://github.com/apache/logging-log4cxx/issues/420#issuecomment-2436213853
Line 101 is [the definition of the function](https://github.com/apache/logging-log4cxx/blob/0ff3c8a454bd2de1bd911293af8febe42ab25b70/src/main/cpp/class.cpp#L101), which is odd. My best guess is that the reason it says that line is segfaulting is due to a mismatch between the C++ library that log4cxx was compiled with and the library it is running with. libstdc++ is generally stable between versions with backwards compatibility, but probably some part of the definition of `std::string` changed between the versions. Some things to try: 1. Force C++11 with `-DCMAKE_CXX_STANDARD=11` 2. Use an older compiler(e.g. the one that libstdc++ was compiled with) 3. Check to see when g++ is running which version of libstdc++ it is using, if it is the one bundled with the compiler or the one on the system -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org