From 031e47a5ce5b9446ecd0e638abd93fbf11d8fcee Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Mon, 1 Dec 2025 11:38:49 +0100 Subject: [PATCH] force crash on account settings opening --- Linphone/tool/Utils.cpp | 5 +++++ Linphone/tool/Utils.hpp | 3 +++ .../Page/Layout/Settings/AccountSettingsGeneralLayout.qml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/Linphone/tool/Utils.cpp b/Linphone/tool/Utils.cpp index 451c11c3a..e08c5f1bf 100644 --- a/Linphone/tool/Utils.cpp +++ b/Linphone/tool/Utils.cpp @@ -39,6 +39,7 @@ #include "tool/providers/AvatarProvider.hpp" #include +#include #include #include @@ -2287,3 +2288,7 @@ bool Utils::stringMatchFormat(QString toMatch, QRegularExpression regExp) { auto match = regExp.match(toMatch); return match.hasMatch(); } + +void Utils::forceCrash() { + raise(SIGSEGV); +} \ No newline at end of file diff --git a/Linphone/tool/Utils.hpp b/Linphone/tool/Utils.hpp index 0e74b556e..7d9e335b1 100644 --- a/Linphone/tool/Utils.hpp +++ b/Linphone/tool/Utils.hpp @@ -189,6 +189,9 @@ public: Q_INVOKABLE static bool stringMatchFormat(QString toMatch, QRegularExpression regExp); + // DEBUG + Q_INVOKABLE static void forceCrash(); + // QDir findDirectoryByName(QString startPath, QString name); static QString getApplicationProduct(); diff --git a/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml b/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml index 7e36fddd0..f83dc5142 100644 --- a/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml +++ b/Linphone/view/Page/Layout/Settings/AccountSettingsGeneralLayout.qml @@ -32,6 +32,8 @@ AbstractSettingsLayout { } ] + Component.onCompleted: UtilsCpp.forceCrash() + property alias account: mainItem.model // Account parameters