Segmentation Fault at launch on 20230110
- OS: Gentoo Linux
- Jami version: 20230110
- What build you are using: self built with jami-daemon 3062351d377cc055a4bcc697ec4501a22d534229 and jami-client-qt 6dca693f
Steps to reproduce
Note: Better the scenario is, better we will be able to reproduce and debug.
- Can you reproduce the bug: at will
- Steps:
- Launch /usr/bin/jami
- Actual result:
$ /usr/bin/jami --debug
Using Qt runtime version: 6.4.2
"notify server name: SwayNotificationCenter, vendor: ErikReider, version: 0.7.3, spec: 1.2"
"Using locale: en_US"
[1673907317.226|3442|ringbuffer.cpp :55 ] Create new RingBuffer audiolayer_id
[1673907317.227|3442|video_device_monitor_impl.cpp:150 ] udev: adding device with id Remo_Tech_Co.__Ltd._OBSBOT_Meet
[1673907317.227|3442|video_device.h :133 ] Default video settings: 960x540, 60 FPS
[1673907317.227|3442|video_device_monitor_impl.cpp:150 ] udev: adding device with id Remo_Tech_Co.__Ltd._OBSBOT_Meet
[1673907317.227|3442|video_device_monitor_impl.cpp:150 ] udev: adding device with id CN0F43K88LG001ANC3KKA00_Integrated_Webcam_HD
[1673907317.227|3442|video_device.h :133 ] Default video settings: 960x540, 30 FPS
[1673907317.227|3442|video_device_monitor_impl.cpp:150 ] udev: adding device with id CN0F43K88LG001ANC3KKA00_Integrated_Webcam_HD
[1673907317.227|3442|manager.cpp :719 ] Not initialized
[1673907317.227|3442|manager.cpp :719 ] Not initialized
17:15:17.229 os_core_unix.c !pjlib 2.12.1 for POSIX initialized
[1673907317.229|3442|manager.cpp :793 ] Using PJSIP version 2.12.1 for x86_64-pc-linux-gnu
[1673907317.229|3442|manager.cpp :794 ] Using GnuTLS version 3.7.8
[1673907317.229|3442|manager.cpp :795 ] Using OpenDHT version 2.4.10
[1673907317.229|3442|manager.cpp :796 ] Using FFmpeg version 5.1.2
[1673907317.229|3442|manager.cpp :799 ] Using Libgit2 version 1.5.0
[1673907317.229|3442|sipvoiplink.cpp :649 ] Using SIP nameserver: 10.46.73.2
[1673907317.229|3442|sipvoiplink.cpp :743 ] SIPVoIPLink@0x557c0a591480
[1673907317.229|3442|manager.cpp :815 ] Configuration file path: /home/jroy/.config/jami/dring.yml
[1673907317.230|3442|system_codec_container.cpp:220 ] Can't find a usable accelerated H265/HEVC codec, disabling.
[1673907317.230|3442|system_codec_container.cpp:250 ] Encoders found: H264 VP8 MP4V-ES H263-1998 opus G722 G726-32 PCMA PCMU
[1673907317.231|3442|system_codec_container.cpp:251 ] Decoders found: H264 VP8 MP4V-ES H263-1998 opus G722 G726-32 speex speex speex PCMA PCMU
[1673907317.231|3442|upnp_context.cpp :39 ] Creating UPnPContext instance [0x557c0a523290]
[1673907317.231|3442|upnp_control.cpp :39 ] Controller@0x557c0a600530: Created UPnP Controller session
[1673907317.231|3442|sipaccount.cpp :1455] Presence enabled for af4a9d715e0a8b70 : false.
[1673907317.231|3449|pupnp.cpp :107 ] PUPnP: Creating instance [0x7f7f4c000b80] ...
[1673907317.231|3449|upnp_context.cpp :414 ] Successfully registered controller 0x557c0a600530
[1673907317.231|3449|upnp_context.cpp :130 ] Starting UPNP context
[1673907317.231|3453|pupnp.cpp :110 ] PUPnP: Instance [0x7f7f4c000b80] created
[1673907317.231|3453|pupnp.cpp :199 ] PUPnP: Setting observer to 0x557c0a523290
[1673907317.231|3453|pupnp.cpp :357 ] PUPnP: Start search for IGD: attempt 1
[1673907317.232|3442|preferences.cpp :295 ] Card with index 0 doesn't exist or is unusable.
[1673907317.232|3442|preferences.cpp :295 ] Card with index 0 doesn't exist or is unusable.
[1673907317.232|3442|ringbuffer.cpp :55 ] Create new RingBuffer urgentRingBuffer_id
[1673907317.232|3442|audiolayer.cpp :61 ] [audiolayer] AGC: 0, noiseReduce: false, VAD: 1, echoCancel: auto, audioProcessor: webrtc
[1673907317.233|3442|audiolayer.cpp :156 ] [audiolayer] setHasNativeAEC: 0
[1673907317.233|3442|audiolayer.cpp :169 ] [audiolayer] setHasNativeNS: 0
[1673907317.233|3453|pupnp.cpp :135 ] PUPnP: Web-server is enabled. Disabling
[1673907317.233|3453|pupnp.cpp :140 ] PUPnP: Web-server successfully disabled
[1673907317.233|3453|pupnp.cpp :153 ] PUPnP: Initialized on 10.0.0.193:49152 | fe80::1899:e019:dcb5:b983:49152
[1673907317.233|3453|pupnp.cpp :182 ] PUPnP: Successfully registered client
[1673907317.233|3453|pupnp.cpp :266 ] PUPnP: Send IGD search request
[1673907317.242|3442|sipaccount.cpp :1455] Presence enabled for af4a9d715e0a8b70 : false.
[1673907317.242|3442|sipaccount.cpp :547 ] doRegister montreal1.voip.ms
[1673907317.242|3442|sipaccount.cpp :551 ] UPnP: waiting for IGD to register SIP account
[1673907317.242|3442|upnp_context.cpp :314 ] Try to find mapping for port 5060 [UDP]
[1673907317.242|3442|upnp_context.cpp :346 ] Did not find any available mapping. Will request one now
[1673907317.242|3442|upnp_context.cpp :1142] No IGD available. Mapping will be requested when an IGD becomes available
[1673907317.242|3442|mapping.cpp :86 ] Changing mapping JAMI-UDP:5060 state from AVAILABLE to UNAVAILABLE
[1673907317.242|3442|sipaccount.cpp :481 ] [Account af4a9d715e0a8b70] Failed to open port 5060: registering SIP account anyway
[1673907317.242|3442|sipvoiplink.cpp :1522] try to resolve 'montreal1.voip.ms' (port: 0)
[1673907317.242|3442|sipaccount.cpp :554 ] UPnP: UPNP request failed, try to register SIP account anyway
[1673907317.242|3442|sipvoiplink.cpp :1522] try to resolve 'montreal1.voip.ms' (port: 0)
Daemon is running
[1673907317.242|3449|upnp_context.cpp :627 ] UPNP/NAT-PMP enabled, but no valid IGDs available
No migration required
[1673907317.245|3442|manager.cpp :2604] Set accounts order : af4a9d715e0a8b70/
[1673907317.245|3442|manager.cpp :1698] Saving Configuration to XDG directory /home/jroy/.config/jami/dring.yml
Syncing lrc accounts list with the daemon
Cannot find dbus interface for screen saver
qt.core.qobject.connect: QObject::connect(lrc::api::ContactModel, ContactAdapter): unique connections require a pointer to member function of a QObject subclass
[1673907317.263|3452|sipaccount.cpp :644 ] Creating transport
[1673907317.263|3452|siptransport.cpp :331 ] Created UDP transport on address 10.0.0.138:5060
[1673907317.263|3452|siptransport.cpp :79 ] SipTransport@0x7f7f38002930 tr=0x7f7f38001308 rc=2
[1673907317.263|3452|sipaccount.cpp :307 ] Set new transport [0x7f7f38002930]
[1673907317.263|3452|sipaccount.cpp :1278] Using published address REDACTED and port 5060
[1673907317.263|3452|sipaccount.cpp :736 ] Using contact header "Julien Roy" <sip:REDACTED> in registration
[1673907317.263|3452|sipaccount.cpp :742 ] Setting VIA sent-by to :0
[1673907317.311|3452|sipaccount.cpp :1544] [Account af4a9d715e0a8b70] Checking IP route after the registration
[1673907317.311|3452|sipaccount.cpp :1569] Checking received VIA address: REDACTED
[1673907317.311|3452|message_engine.cpp :267 ] [Account af4a9d715e0a8b70] couldn't load messages from /home/jroy/.cache/jami/af4a9d715e0a8b70/messages: basic_ios::clear: iostream error
[1673907317.311|3452|sipvoiplink.cpp :777 ] username = REDACTED, server = REDACTED, from = REDACTED
[1673907317.312|3452|sipaccount.cpp :1495] Matching account id in request is a fullmatch REDACTED
Main window loaded using OpenGLRhi
Segmentation fault
- Expected result: Normal start
Additional information
I am trying to package Jami for Gentoo. It could be the build process that wasn't done correctly. For reference, here is the build commands that I used for jami-daemon and jami-client-qt:
jami-daemon
The Meson build system
Version: 0.64.1
Source dir: /var/tmp/portage/net-voip/jami-daemon-0_pre20230113/work/jami-daemon-3062351d377cc055a4bcc697ec4501a22d534229
Build dir: /var/tmp/portage/net-voip/jami-daemon-0_pre20230113/work/jami-daemon-0_pre20230113-build
Build type: native build
Project name: jami-daemon
Project version: 13.7.0
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 11.3.1 "x86_64-pc-linux-gnu-gcc (Gentoo 11.3.1_p20221209 p3) 11.3.1 20221209")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.39
C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ (gcc 11.3.1 "x86_64-pc-linux-gnu-g++ (Gentoo 11.3.1_p20221209 p3) 11.3.1 20221209")
C++ linker for the host machine: x86_64-pc-linux-gnu-g++ ld.bfd 2.39
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency threads found: YES
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.0)
Run-time dependency opendht found: YES 2.4.10
Run-time dependency gnutls found: YES 3.7.8
Run-time dependency nettle found: YES 3.8.1
Run-time dependency libpjproject found: YES 2.12.1
Run-time dependency libgit2 found: YES 1.5.0
Run-time dependency libsecp256k1 found: YES 0.1
Run-time dependency libavcodec found: YES 59.37.100
Run-time dependency libavfilter found: YES 8.44.100
Run-time dependency libavdevice found: YES 59.7.100
Run-time dependency libavformat found: YES 59.27.100
Run-time dependency libswscale found: YES 6.7.100
Run-time dependency libswresample found: YES 4.7.100
Run-time dependency libavutil found: YES 57.28.100
Run-time dependency fmt found: YES 9.1.0
Run-time dependency yaml-cpp found: YES 0.7.0
Run-time dependency jsoncpp found: YES 1.9.4
Run-time dependency zlib found: YES 1.2.13
Program pod2man found: YES (/usr/bin/pod2man)
Has header "SLES/OpenSLES.h" : NO
Run-time dependency alsa found: YES 1.2.7.2
Dependency libpulse skipped: feature pulseaudio disabled
Dependency jack skipped: feature jack disabled
Dependency portaudio-2.0 skipped: feature portaudio disabled
Run-time dependency libupnp found: YES 1.14.15
Library natpmp skipped: feature natpmp disabled
Run-time dependency openssl found: YES 1.1.1s
Run-time dependency webrtc-audio-processing found: YES 0.3.1
Run-time dependency speexdsp found: YES 1.2.1
Fetching value of define "__ANDROID__" :
Run-time dependency libudev found: YES 243
Run-time dependency libarchive found: YES 3.6.1
Library dl found: YES
Configuring config.h using configuration
Fetching value of define "__ANDROID__" : (cached)
Compiler for C++ supports link arguments -Wl,-Bsymbolic: YES
Fetching value of define "__ANDROID__" : (cached)
Configuring net.jami.daemon.metainfo.xml using configuration
Build targets in project: 1
jami-daemon 13.7.0
User defined options
Native files : /var/tmp/portage/net-voip/jami-daemon-0_pre20230113/temp/meson.x86_64-pc-linux-gnu.amd64.ini
build.pkg_config_path: /var/tmp/portage/net-voip/jami-daemon-0_pre20230113/work/jami-daemon-3062351d377cc055a4bcc697ec4501a22d534229/contrib/x86_64-pc-linux-gnu/lib/pkgconfig:/usr/share/pkgconfig
buildtype : plain
libdir : lib64
localstatedir : /var/lib
pkg_config_path : /var/tmp/portage/net-voip/jami-daemon-0_pre20230113/work/jami-daemon-3062351d377cc055a4bcc697ec4501a22d534229/contrib/x86_64-pc-linux-gnu/lib/pkgconfig:/usr/share/pkgconfig
prefix : /usr
sysconfdir : /etc
werror : false
wrap_mode : nodownload
b_pch : false
alsa : enabled
hw_acceleration : true
jack : disabled
natpmp : disabled
plugins : true
portaudio : disabled
pulseaudio : disabled
tests : false
tracepoints : false
upnp : enabled
video : true
webrtc_ap : enabled
jami-client-qt:
cmake -C /var/tmp/portage/net-voip/jami-client-qt-0_beta20230110/work/jami-client-qt-6dca693f26cf433efd9ecd8b28b1d892cf5a418d_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_LIBWRAP=ON -DENABLE_PLUGIN=true -DENABLE_VIDEO=true -DWITH_WEBENGINE=no -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/net-voip/jami-client-qt-0_beta20230110/work/jami-client-qt-6dca693f26cf433efd9ecd8b28b1d892cf5a418d_build/gentoo_toolchain.cmake /var/tmp/portage/net-voip/jami-client-qt-0_beta20230110/work/jami-client-qt-6dca693f26cf433efd9ecd8b28b1d892cf5a418d
loading initial cache file /var/tmp/portage/net-voip/jami-client-qt-0_beta20230110/work/jami-client-qt-6dca693f26cf433efd9ecd8b28b1d892cf5a418d_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 11.3.1
-- The CXX compiler identification is GNU 11.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GCC version >= 8.0: 11.3.1
-- Jami daemon headers are in /usr/include/jami
-- Jami daemon library is at /usr/lib64/libjami.so
-- VIDEO enabled
-- PLUGIN enabled
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.4.1", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Could NOT find Qt6LinguistTools (missing: Qt6LinguistTools_DIR)
CMake Warning at /usr/lib64/cmake/Qt6/Qt6Config.cmake:224 (message):
Failed to find optional Qt component "LinguistTools".
Expected Config file at
"/usr/lib64/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake" does NOT
exist
Call Stack (most recent call first):
src/libclient/CMakeLists.txt:213 (find_package)
-- Compiling with qtwrapper enabled, Qt6 enabled.
-- Compiling with qtwrapper
Adding pluginmanager.cpp
-- Checking for module 'xcb'
-- Found xcb, version 1.15
-- Jami daemon headers are in /usr/include/jami
-- Jami daemon library is at /usr/lib64/libjami.so
-- Found Python3: /usr/bin/python3.11 (found version "3.11.1") found components: Interpreter
-- Found Python3: /usr/bin/python3.11 (found suitable version "3.11.1", minimum required is "3.6") found components: Interpreter
Generating qml.qrc file ...
Generating resource.qrc file ...
-- Found Vulkan: /usr/lib64/libvulkan.so (found version "1.3.231") found components: glslc glslangValidator
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.0")
-- Checking for module 'glib-2.0'
-- Found glib-2.0, version 2.74.4
-- Checking for module 'gio-2.0'
-- Found gio-2.0, version 2.74.4
-- Checking for module 'libnm'
-- Package 'libnm', required by 'virtual:world', not found
-- Checking for module 'libnotify>=0.7.6'
-- Found libnotify, version 0.8.1
-- Checking for module 'gdk-pixbuf-2.0>=2.40.0'
-- Found gdk-pixbuf-2.0, version 2.42.10
-- Checking for module 'libavutil>=55.75.100'
-- Found libavutil, version 57.28.100
-- Could NOT find Qt6LinguistTools (missing: Qt6LinguistTools_DIR)
CMake Warning at /usr/lib64/cmake/Qt6/Qt6Config.cmake:224 (message):
Failed to find optional Qt component "LinguistTools".
Expected Config file at
"/usr/lib64/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake" does NOT
exist
Call Stack (most recent call first):
CMakeLists.txt:473 (find_package)
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.5") found components: doxygen missing components: dot
-- <<< Gentoo configuration >>>
Build type RelWithDebInfo
Install path /usr
Compiler flags:
C -march=znver2 -O2 -pipe
C++ -march=znver2 -O2 -pipe
Linker flags:
Executable -Wl,-O1 -Wl,--as-needed
Module -Wl,-O1 -Wl,--as-needed
Shared -Wl,-O1 -Wl,--as-needed
Thanks and please let me know if you need more information