[Bug 266006] net/linphone: 4.4.8_1 crashes on on camera access

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Aug 2022 21:50:35 UTC

            Bug ID: 266006
           Summary: net/linphone: 4.4.8_1 crashes on on camera access
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zirias@freebsd.org
          Reporter: rz@fabmicro.ru
             Flags: maintainer-feedback?(zirias@freebsd.org)
          Assignee: zirias@freebsd.org

I upgraded net/linphone package today to 4.4.8_1 and found that it cannot
access my USB camera any more, it crashes soon as as I press "VIDEO PREVIEW",
neither video calls can be made. I then upgraded all the packages using pkg -f
upgrade, but that did not help. So, I "setenv CMAKE_BUILD_TYPE Debug" and
recompiled linphone, linphonelibrary and mediastreamer from ports, the run it
from inside GDB. It seems the bug is somewhere in meadistreamer, see backtrace

It used to work well before recent, though I don't remember what version it

rz@butterfly:~ % uname -a
FreeBSD butterfly 13.1-RELEASE-p1 FreeBSD 13.1-RELEASE-p1 GENERIC amd64

rz@butterfly:~ % pkg info linphone
Name           : linphone
Version        : 4.4.8_1,1
Installed on   : Wed Aug 24 00:17:06 2022 +05
Origin         : net/linphone
Architecture   : FreeBSD:13:amd64

rz@butterfly:~ % pkg info liblinphone
Name           : liblinphone
Version        : 5.1.32_1
Installed on   : Wed Aug 24 02:26:06 2022 +05
Origin         : net/liblinphone
Architecture   : FreeBSD:13:amd64

rz@butterfly:~ % pkg info mediastreamer
Name           : mediastreamer
Version        : 5.1.43
Installed on   : Wed Aug 24 00:10:29 2022 +05
Origin         : net/mediastreamer
Architecture   : FreeBSD:13:amd64

rz@butterfly:~ % gdb /usr/local/bin/linphone
GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd13.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/linphone...
(No debugging symbols found in /usr/local/bin/linphone)
(gdb) run
Starting program: /usr/local/bin/linphone 
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
QML debugging is enabled. Only use this in a safe environment.
[New LWP 118821 of process 2187]
[New LWP 118822 of process 2187]
[New LWP 118823 of process 2187]
[New LWP 118824 of process 2187]
[New LWP 118825 of process 2187]
[New LWP 118826 of process 2187]
[New LWP 118827 of process 2187]
[New LWP 118828 of process 2187]
[New LWP 118829 of process 2187]
[New LWP 118830 of process 2187]
[New LWP 118831 of process 2187]
[New LWP 118832 of process 2187]
[New LWP 118833 of process 2187]
[New LWP 118834 of process 2187]
[New LWP 118835 of process 2187]
[New LWP 118836 of process 2187]
[New LWP 118837 of process 2187]
[New LWP 118838 of process 2187]
[New LWP 118839 of process 2187]
[New LWP 118840 of process 2187]
[New LWP 118841 of process 2187]
[New LWP 118842 of process 2187]
[New LWP 118843 of process 2187]
[New LWP 118844 of process 2187]
[New LWP 118845 of process 2187]
[New LWP 118846 of process 2187]
[New LWP 118847 of process 2187]
[New LWP 118848 of process 2187]
[New LWP 118849 of process 2187]
[New LWP 118850 of process 2187]
[02:43:06:090][0x81346e040][Info]app/App.cpp:232: "Starting Linphone (bin:
[02:43:06:090][0x81346e040][Info]app/App.cpp:233: "Use locale: en"
[02:43:06:105][0x81346e040][Info]app/AppController.cpp:109: Available fonts : 
("Adobe Courier", "Adobe Helvetica", "Adobe New Century Schoolbook", "Adobe
Times", "Adobe Utopia", "Arabic Newspaper", "Arimo", "B&H Lucida", "B&H
LucidaBright", "B&H LucidaTypewriter", "Bitstream Charter", "Bitstream
Terminal", "Caladea", "Carlito", "Courier", "Courier 10 Pitch", "Cousine",
"Cursor", "cursor.pcf", "DEC Terminal", "deccurs.pcf", "decsess.pcf", "DejaVu
Math TeX Gyre", "DejaVu Sans", "DejaVu Sans Condensed", "DejaVu Sans Mono",
"DejaVu Serif", "DejaVu Serif Condensed", "Droid Arabic Kufi", "Droid Arabic
Naskh", "Droid Naskh Shift Alt", "Droid Sans", "Droid Sans Arabic", "Droid Sans
Armenian", "Droid Sans Ethiopic", "Droid Sans Fallback", "Droid Sans Georgian",
"Droid Sans Hebrew", "Droid Sans Japanese", "Droid Sans Mono", "Droid Serif",
"East Syriac Adiabene", "East Syriac Ctesiphon", "Estrangelo Antioch",
"Estrangelo Edessa", "Estrangelo Midyat", "Estrangelo Nisibin", "Estrangelo
Nisibin Outline", "Estrangelo Quenneshrin", "Estrangelo Talada", "Estrangelo
TurAbdin", "Ets Caption", "Ets Teletext", "Ets Teletext Wide", "Gentium Basic",
"Gentium Book Basic", "Goha-Tibeb Zemen", "GOST type A", "GOST Type AU", "GOST
type B", "GOST Type BU", "jmk Modd", "jmk Neep", "jmk Neep Alt", "Led Fixed",
"Liberation Mono", "Liberation Sans", "Liberation Serif", "Linux Biolinum G",
"Linux Libertine Display G", "Linux Libertine G", "Luxi Mono [b&h]", "Luxi Mono
[B&H ]", "Luxi Sans [b&h]", "Luxi Sans [B&H ]", "Luxi Serif [B&H ]", "Luxi
Serif [b&h]", "micro.pcf", "Misc Fixed", "Misc Fixed Wide", "Monospace", "MUTT
ClearlyU Alternate Glyphs Wide", "MUTT ClearlyU PUA", "MUTT ClearlyU Wide",
"Noto Sans", "Noto Sans UI", "Sans Serif", "Schumacher Clean", "Schumacher
Clean Wide", "Serif", "Serto Batnan", "Serto Jerusalem", "Serto Jerusalem
Outline", "Serto Kharput", "Serto Malankara", "Serto Mardin", "Serto Urhoy",
"Sony Fixed", "Symbol type A", "Symbol type B", "Tinos", "Twitter Color Emoji",
"Unifont", "Unifont CSUR", "Unifont Upper", "Utopia")
[02:43:06:105][0x81346e040][Info]app/main.cpp:70: "Running app..."
[New LWP 118851 of process 2187]
[02:43:06:122][0x81346e040][Info]app/App.cpp:362: "Activated selectors:"
("custom", "C", "unix", "freebsd", "freebsd")
[02:43:06:122][0x81346e040][Info]app/App.cpp:601: "Registering types..."
[02:43:06:122][0x81346e040][Info]app/App.cpp:690: "Registering shared types..."
[02:43:06:122][0x81346e040][Info]app/App.cpp:710: "Registering tool types..."
[02:43:06:122][0x81346e040][Info]app/App.cpp:722: "Registering shared tool
[02:43:06:200][0x81346e040][Info]app/App.cpp:406: "Loading main view..."
[New LWP 118852 of process 2187]
[LWP 118852 of process 2187 exited]
[02:43:06:250][0x81346e040][Info]components/core/CoreManager.cpp:262: "Launch
async core creation."
[02:43:06:285][0x81346e040][Info]components/core/CoreHandlers.cpp:163: Core is
starting  "Starting up"
[02:43:06:293][0x81346e040][Info]components/core/CoreHandlers.cpp:155: Core is
running  "On"
[02:43:06:293][0x81346e040][Info]components/core/CoreManager.cpp:224: "Set
`Friends` path: `/home/rz/.local/share/linphone/friends.db`"
[02:43:06:294][0x81346e040][Info]components/core/CoreManager.cpp:225: "Set
`CallLogs` path: `/home/rz/.local/share/linphone/call-history.db`"
[02:43:06:295][0x81346e040][Info]components/core/CoreManager.cpp:239: Using
ZrtpSecrets path :  "/home/rz/.local/share/linphone/zrtp-secrets.db"
[02:43:06:295][0x81346e040][Info]components/core/CoreManager.cpp:242: Using
UserCertificate path :  "/home/rz/.local/share/linphone/"
[02:43:06:295][0x81346e040][Info]components/core/CoreManager.cpp:245: Using
RootCa path :  "/usr/local/share/linphone/rootca.pem"
[02:43:06:295][0x81346e040][Info]components/core/CoreManager.cpp:412: "Start
Sip addresses model from Chats : 0 ms.
Sip addresses model from Calls : 1 ms.
Sip addresses model from Refs : 0 ms.
Sip addresses model from Contacts : 0 ms.
Sip addresses model initialized in: 1 ms.
"Notify event count: 0."
"Notify event count: 0."
"CoreManager initialized"
[New LWP 118853 of process 2187]
[New LWP 118854 of process 2187]
[LWP 118854 of process 2187 exited]
[02:43:06:372][0x81346e040][Info]app/App.cpp:956: "Open Linphone app."
[02:43:06:372][0x81346e040][Info]app/App.cpp:272: "Creating subwindow:
[02:43:06:407][0x81346e040][Info]app/App.cpp:279: "Subwindow status: `1`."
[02:43:06:420][0x81346e040][Info]app/App.cpp:272: "Creating subwindow:
[02:43:06:445][0x81346e040][Info]app/App.cpp:279: "Subwindow status: `1`."
[New LWP 118856 of process 2187]
[New LWP 118857 of process 2187]
"Notify event count: 0."
[New LWP 118858 of process 2187]
[New LWP 118859 of process 2187]

Thread 39 received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
[Switching to LWP 118859 of process 2187]
0x000000080256b2f1 in ms_filter_link () from
(gdb) bt
#0  0x000000080256b2f1 in ms_filter_link () from
#1  0x00000008025bc109 in video_preview_start () from
#2  0x00000008029afb63 in ?? () from /usr/local/lib/liblinphone.so.10
#3  0x00000008029b66fc in linphone_core_get_native_preview_window_id () from
#4  0x00000000007a0c13 in ?? ()
#5  0x0000000800e5bae2 in QQuickFramebufferObject::updatePaintNode(QSGNode*,
QQuickItem::UpdatePaintNodeData*) ()
   from /usr/local/lib/qt5/libQt5Quick.so.5
#6  0x0000000800d57b19 in QQuickWindowPrivate::updateDirtyNode(QQuickItem*) ()
from /usr/local/lib/qt5/libQt5Quick.so.5
#7  0x0000000800d45334 in QQuickWindowPrivate::updateDirtyNodes() () from
#8  0x0000000800d44f79 in QQuickWindowPrivate::syncSceneGraph() () from
#9  0x0000000800ced7ce in ?? () from /usr/local/lib/qt5/libQt5Quick.so.5
#10 0x0000000800cecb65 in ?? () from /usr/local/lib/qt5/libQt5Quick.so.5
#11 0x0000000800cee39c in ?? () from /usr/local/lib/qt5/libQt5Quick.so.5
#12 0x0000000803272a68 in ?? () from /usr/local/lib/qt5/libQt5Core.so.5
#13 0x0000000803a9a83a in thread_start (curthread=0x829f0f200) at
#14 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdafd9000

You are receiving this mail because:
You are the assignee for the bug.