https://bugs.kde.org/show_bug.cgi?id=432376

--- Comment #13 from Martin Sandsmark <martin.sandsm...@kde.org> ---
That doesn't print anything, for some reason.

But it's fairly easy to build with asan and ubsan to get stacktraces to the
usage of freed memory (and other invalid memory stuff), just add
"include(ECMEnableSanitizers)" to the CMakeLists.txt, i. e.:

diff --git a/CMakeLists.txt b/CMakeLists.txt
  index df5da50a..9accafa2 100644
  --- a/CMakeLists.txt
  +++ b/CMakeLists.txt
  @@ -36,6 +36,7 @@ include(ECMGenerateHeaders)
   include(GenerateExportHeader)
   include(FeatureSummary)
   include(ECMQtDeclareLoggingCategory)
  +include(ECMEnableSanitizers)

   ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KONSOLEPRIVATE
       SOVERSION ${RELEASE_SERVICE_VERSION_MAJOR}


and then run cmake with "cmake -DECM_ENABLE_SANITIZERS='address;undefined' [...
whatever other options you use]"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to