#996910 linphone: Segmentation fault when registering a sip account

#996910#5
Date:
2021-10-20 16:06:05 UTC
From:
To:
Dear Maintainer,

I'm getting a segmentation fault every time I try to registar a regular UDP
account from my SIP provider:

[...]
: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[11:59:09:441][0x55a449eb92b0][Info]app/App.cpp:225: "Creating subwindow: `qrc:/ui/views/App/Settings/SettingsWindow.qml`."
[11:59:09:506][0x55a449eb92b0][Info]app/App.cpp:232: "Subwindow status: `1`."
[11:59:09:682][0x55a449eb92b0][Warning]qrc:/ui/views/App/Settings/SettingsAdvanced.qml:91: qrc:/ui/views/App/Settings/SettingsAdvanced.qml:91:7: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[11:59:09:911][0x55a449eb92b0][Warning]qrc:/ui/views/App/Settings/SettingsVideo.qml:149: qrc:/ui/views/App/Settings/SettingsVideo.qml:149:7: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[11:59:09:911][0x55a449eb92b0][Warning]qrc:/ui/views/App/Settings/SettingsVideo.qml:142: qrc:/ui/views/App/Settings/SettingsVideo.qml:142:7: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[11:59:10:027][0x55a449eb92b0][Warning]app/App.cpp:802: System tray not found on this system.
[11:59:10:062][0x55a449eb92b0][Warning]qrc:/ui/views/App/Main/Assistant/AssistantHome.qml:132: qrc:/ui/views/App/Main/Assistant/AssistantHome.qml:132:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[11:59:10:236][0x55a449eb92b0][Info]components/core/event-count-notifier/AbstractEventCountNotifier.cpp:71: "Notify event count: 0."
[11:59:20:311][0x55a449eb92b0][Info]components/assistant/AssistantModel.cpp:416: "Set config on assistant: `/usr/share/linphone/assistant/use-other-sip-account.rc`."
Segmentation fault

Thanks,

#996910#10
Date:
2021-10-20 16:48:43 UTC
From:
To:
X-Debbugs-CC: Tiago Bortoletto Vaz <tiago@debian.org>

When you try to register the account, what steps to you go through?  I
presume in the main window you're clicking in this order: Home ->
Assistant -> Use a SIP Account.  If so, does Linphone still crash if
you omit the "sip:" prefix in the input field "SIP Domain"?  That
field must be a resolvable hostname, domain name or an IP address, and
unfortunately the input validation in that dialog is not as good as it
should be.

If the above advice does not resolve the issue, please give detailed
steps on what you click and what information you enter in each field.
Also exit Linphone and then start a new Linphone instance from a
terminal like this:

  catchsegv linphone 2>&1 | tee /tmp/linphone-segfault.txt

Then post that file here after it has crashed.

Regards.

#996910#15
Date:
2021-10-20 20:49:33 UTC
From:
To:
Hi, thanks for the quick answer,

On Wed, Oct 20, 2021 at 06:48:43PM +0200, Dennis Filder wrote:
[...]

Yes, it crashes when I use a domain name without "sip:" prefix.

Sure, attached.

Let me know if there is anything else I can do to help.

Bests,

#996910#20
Date:
2021-10-21 16:04:56 UTC
From:
To:
X-Debbugs-CC: Tiago Bortoletto Vaz <tiago@debian.org>

What domain name are you using?  Also are you doing this from the same
dialog as before?  Because from the log output I would guess you are
using the settings menu instead of the account registering dialog.
Whether a crash happens from within the settings menu that would also
be important to know.  Also, are you running Orca by any chance?

That was not as illuminating as I had hoped.  If you can, download the
debug symbols package for linphone-desktop (or wherever the segfault
happens) from
http://debug.mirrors.debian.org/debian-debug/pool/main/l/linphone-desktop/
and run it under gdb to get a stack trace.

Regards.

#996910#25
Date:
2021-12-28 14:45:04 UTC
From:
To:
I've tried available subdomains from voip.ms provider. For instance,
vancouver1.voip.ms. I'm entering the registration data via the registering
dialog, the one which appears once we open Linphone for the first time. I've
also tried using the Preferences -> SIP accounts menu and get this segfault.
I'm not running Orca.

[...]

gdb log attached. I hope that can be useful :\

Bests,

#996910#30
Date:
2021-12-28 17:21:56 UTC
From:
To:
X-Debbugs-CC: Tiago Bortoletto Vaz <tiago@debian.org>

That stacktrace looks very similar to the ones from #983597 which
already has 3 entries in the Qt bugtracker[0] one of which has an
Orca-less reproducer.  Thus I'm inclined to mark this as a duplicate.

Unfortunately, tracking this down would probably require unoptimized
debug builds of most of the involved libraries, so that's something
the Qt devs have to solve.

Regards.

0: https://bugreports.qt.io/browse/QTBUG-84858

#996910#35
Date:
2021-12-29 13:49:41 UTC
From:
To:
That's fine. I'll keep an eye and try to provide them with some info if needed.
By the way, it doesn't depend on the domain, neither it gets to the auth step.

Sure, thanks for the investigation.

Bests,