BelledonneCommunications / linphone-desktop

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of git://git.linphone.org/linphone-desktop.git
https://linphone.org/
GNU General Public License v3.0
391 stars 200 forks source link

Segmentation fault when adding new SIP account on Ubuntu 20.04 #436

Open vlad88sv opened 3 years ago

vlad88sv commented 3 years ago

When adding an account via "Use a SIP account" I get a crash after filling the form and clicking Use

(gdb) continue
Continuing.
[Detaching after fork from child process 484363]
process 484225 is executing new program: /usr/bin/env
process 484225 is executing new program: /usr/bin/bash
[Detaching after fork from child process 484373]
process 484225 is executing new program: /tmp/.mount_LinphoM5qPJ1/usr/bin/linphone
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
QML debugging is enabled. Only use this in a safe environment.
[New Thread 0x7fffe8cb9700 (LWP 484376)]
[New Thread 0x7fffe3fff700 (LWP 484377)]
[New Thread 0x7fffe1bb8700 (LWP 484379)]
[New Thread 0x7fffe13b7700 (LWP 484380)]
[New Thread 0x7fffe0bb6700 (LWP 484381)]
[New Thread 0x7fffd796b700 (LWP 484382)]
[13:54:20:630][0xc6c380][Info]app/App.cpp:212: "Starting Linphone (bin: linphone)"
[13:54:20:630][0xc6c380][Info]app/App.cpp:213: "Use locale: en_US"
[13:54:20:678][0xc6c380][Info]app/AppController.cpp:90: Available fonts :  ("aakar", "Abyssinica SIL", "Andale Mono", "Ani", "AnjaliOldLipi", "Arial", "Arial Black", "Bitstream Charter", "C059 [UKWN]", "C059 [urw]", "Carlito", "Century Schoolbook L", "Chandas", "Chilanka", "Comic Sans MS", "Courier 10 Pitch", "Courier New", "D050000L [urw]", "D050000L [URW ]", "DejaVu Math TeX Gyre", "DejaVu Sans", "DejaVu Sans Condensed", "DejaVu Sans Mono", "DejaVu Serif", "DejaVu Serif Condensed", "Dingbats", "Droid Sans Fallback", "Dyuthi", "Fira Code", "Fira Code Light", "Fira Code Medium", "Fira Code Retina", "FiraCode Nerd Font", "FiraCode Nerd Font Mono", "FreeMono", "FreeSans", "FreeSerif", "Gargi", "Garuda", "Gayathri", "Gayathri Thin", "Georgia", "Gubbi", "Hack Nerd Font", "Hack Nerd Font Mono", "Impact", "Jamrul", "KacstArt", "KacstBook", "KacstDecorative", "KacstDigital", "KacstFarsi", "KacstLetter", "KacstNaskh", "KacstOffice", "KacstOne", "KacstPen", "KacstPoster", "KacstQurn", "KacstScreen", "KacstTitle", "KacstTitleL", "Kalapi", "Kalimati", "Karumbi", "Keraleeyam", "Khmer OS", "Khmer OS System", "Kinnari", "Laksaman", "Lato", "Lato Black", "Lato Hairline", "Lato Heavy", "Lato Light", "Lato Medium", "Lato Semibold", "Lato Thin", "Liberation Mono", "Liberation Sans", "Liberation Sans Narrow", "Liberation Serif", "Lightworks Symbols", "Lightworks Symbols 3", "Likhan", "LKLUG", "Lohit Assamese", "Lohit Bengali", "Lohit Devanagari", "Lohit Gujarati", "Lohit Gurmukhi", "Lohit Kannada", "Lohit Malayalam", "Lohit Odia", "Lohit Tamil", "Lohit Tamil Classical", "Lohit Telugu", "Loma", "Manjari", "Manjari Thin", "Meera", "Mitra Mono", "Monospace", "mry_KacstQurn", "Mukti Narrow", "Nakula", "Navilu", "Nimbus Mono L", "Nimbus Mono PS [urw]", "Nimbus Mono PS [UKWN]", "Nimbus Roman [urw]", "Nimbus Roman [UKWN]", "Nimbus Roman No9 L", "Nimbus Sans [urw]", "Nimbus Sans [UKWN]", "Nimbus Sans L", "Nimbus Sans Narrow [urw]", "Nimbus Sans Narrow [UKWN]", "Norasi", "Noto Color Emoji", "Noto Mono", "Noto Sans", "Noto Sans CJK HK", "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans Mono CJK HK", "Noto Sans Mono CJK JP", "Noto Sans Mono CJK KR", "Noto Sans Mono CJK SC", "Noto Sans Mono CJK TC", "Noto Sans UI", "Noto Serif CJK JP", "Noto Serif CJK KR", "Noto Serif CJK SC", "Noto Serif CJK TC", "OpenSymbol", "ori1Uni", "P052 [UKWN]", "P052 [urw]", "Padauk", "Padauk Book", "padmaa", "padmaa-Bold.1.1", "Pagul", "Phetsarath OT", "Pothana2000", "Purisa", "Rachana", "RaghuMalayalamSans", "Rasa", "Rasa Light", "Rasa Medium", "Rasa SemiBold", "Rekha", "Saab", "Sahadeva", "Samanata", "Samyak Devanagari", "Samyak Gujarati", "Samyak Malayalam", "Samyak Tamil", "Sans Serif", "Sarai", "Sawasdee", "Serif", "Standard Symbols L", "Standard Symbols PS [URW ]", "Standard Symbols PS [urw]", "Suruma", "TakaoGothic", "TakaoPGothic", "Tibetan Machine Uni", "Times New Roman", "Tlwg Mono", "Tlwg Typewriter", "Tlwg Typist", "Tlwg Typo", "Trebuchet MS", "Ubuntu", "Ubuntu Condensed", "Ubuntu Light", "Ubuntu Mono", "Ubuntu Thin", "Umpush", "Uroob", "URW Bookman [urw]", "URW Bookman [UKWN]", "URW Bookman L", "URW Chancery L", "URW Gothic [UKWN]", "URW Gothic [urw]", "URW Gothic L", "URW Palladio L", "Vemana2000", "Verdana", "Waree", "Webdings", "Yrsa", "Yrsa Light", "Yrsa Medium", "Yrsa SemiBold", "Z003 [urw]", "Z003 [UKWN]")
[13:54:20:678][0xc6c380][Info]:0: "Running app..."
[New Thread 0x7fffd716a700 (LWP 484383)]
[13:54:20:708][0xc6c380][Info]app/App.cpp:316: "Activated selectors:" ("custom", "en_US", "unix", "linux", "ubuntu")
[13:54:20:710][0xc6c380][Info]app/App.cpp:503: "Registering types..."
[13:54:20:712][0xc6c380][Info]app/App.cpp:539: "Registering shared types..."
[13:54:20:712][0xc6c380][Info]app/App.cpp:551: "Registering tool types..."
[13:54:20:712][0xc6c380][Info]app/App.cpp:560: "Registering shared tool types..."
[13:54:20:792][0xc6c380][Info]app/App.cpp:340: "Loading main view..."
[13:54:20:855][0xc6c380][Info]components/core/CoreManager.cpp:242: "Launch async core creation."
[New Thread 0x7fffd5e11700 (LWP 484384)]
[New Thread 0x7fffd5610700 (LWP 484385)]
[Thread 0x7fffd5610700 (LWP 484385) exited]
[New Thread 0x7fffd5610700 (LWP 484386)]
[Thread 0x7fffd5610700 (LWP 484386) exited]
[13:54:21:432][0xc6c380][Info]components/core/CoreManager.cpp:212: "Set `Friends` path: `/home/vlad/.local/share/linphone/friends.db`"
[13:54:21:433][0xc6c380][Info]components/core/CoreManager.cpp:213: "Set `CallLogs` path: `/home/vlad/.local/share/linphone/call-history.db`"
[13:54:21:433][0xc6c380][Info]components/core/CoreManager.cpp:77: "Core created. Enable iterate."
[13:54:21:433][0xc6c380][Info]components/core/CoreHandlers.cpp:76: "Core started."
[13:54:21:434][0xc6c380][Info]components/sip-addresses/SipAddressesModel.cpp:544: Sip addresses model initialized in: 0 ms.
[13:54:21:444][0xc6c380][Info]components/core/event-count-notifier/AbstractEventCountNotifier.cpp:66: "Notify event count: 0."
[New Thread 0x7fffd5610700 (LWP 484387)]
[13:54:21:520][0xc6c380][Info]app/App.cpp:778: "Open Linphone app."
[13:54:21:520][0xc6c380][Info]app/App.cpp:225: "Creating subwindow: `qrc:/ui/views/App/Calls/CallsWindow.qml`."
[13:54:21:559][0xc6c380][Info]app/App.cpp:232: "Subwindow status: `1`."
[13:54:21:564][0xc6c380][Info]app/App.cpp:225: "Creating subwindow: `qrc:/ui/views/App/Settings/SettingsWindow.qml`."
[13:54:21:601][0xc6c380][Info]app/App.cpp:232: "Subwindow status: `1`."
[New Thread 0x7fffd4b11700 (LWP 484388)]
[13:54:21:825][0xc6c380][Info]components/core/event-count-notifier/AbstractEventCountNotifier.cpp:66: "Notify event count: 0."
[13:54:24:888][0xc6c380][Info]components/assistant/AssistantModel.cpp:416: "Set config on assistant: `/tmp/.mount_LinphoM5qPJ1/usr/share/linphone/assistant/use-other-sip-account.rc`."
[13:54:36:814][0xc6c380][Info]components/core/CoreManager.cpp:180: "Refresh registers."
[New Thread 0x7fffab6cc700 (LWP 484394)]
[13:54:53:725][0xc6c380][Info]app/App.cpp:785: "Update nat policy."
[13:54:57:532][0xc6c380][Info]components/assistant/AssistantModel.cpp:416: "Set config on assistant: `/tmp/.mount_LinphoM5qPJ1/usr/share/linphone/assistant/use-other-sip-account.rc`."

Thread 1 "AppRun.wrapped" received signal SIGSEGV, Segmentation fault.
0x00007ffff727bf30 in linphone::Address::setTransport(linphone::TransportType) () from /tmp/.mount_LinphoM5qPJ1/usr/bin/../lib/liblinphone++.so.10
vlad88sv commented 3 years ago

Note: I got confirmation that this happens in Mac too. linphone.crash.log

julonexus commented 3 years ago

Please run your app with --verbose option.

vlad88sv commented 3 years ago

It seems it can't parse the URI. I replaced the real domain with an equal pattern (numbers+text).

[07:00:49:255][Info]Core:linphone: [org.antlr.runtime.MismatchedTokenException]  reason [1805:38: ( ( ( userinfo[NULL] )=> userinfo[$fast_uri::current] fast_hostport[$fast_uri::current] ) | fast_hostport[$fast_uri::current] )]
[07:00:49:255][Error]Core:linphone: fast_header_address parser error for [sip:master.sandbox.123abc.com
]
[07:00:49:255][Warning]Core:linphone: Cannot create Address, bad uri [sip:master.sandbox.123abc.com
]
vlad88sv commented 3 years ago

Tested with latest Dic 2020 version, still an issue:

Thread 1 "AppRun.wrapped" received signal SIGSEGV, Segmentation fault.
linphone::Address::setTransport (this=0x0, transport=linphone::TransportType::Udp) at src/linphone++.cc:3452
3452    src/linphone++.cc: No such file or directory.