#1102505 linphone-desktop: Cannot find libapp-plugin.so without LD_LIBRARY_PATH, segfaults

Package:
linphone-desktop
Source:
linphone-desktop
Description:
SIP softphone - graphical client
Submitter:
Fiona Klute
Date:
2026-04-28 20:11:05 UTC
Severity:
normal
#1102505#5
Date:
2025-04-09 19:21:59 UTC
From:
To:
Linphone 5.2.6+dfsg-1 crashes during startup:

$ linphone
linphone: error while loading shared libraries: libapp-plugin.so: cannot
open shared object file: No such file or directory

The file exists in the same location as for previous versions, on my
amd64 system at
/usr/lib/x86_64-linux-gnu/linphone-desktop/libapp-plugin.so. Setting
LD_LIBRARY_PATH to include the directory passes that, but then segfaults:

$ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/linphone-desktop linphone
QObject::connect: No such signal
App::applicationStateChanged(Qt::ApplicationState) in
./linphone-app/src/app/App.cpp:271
Set TimeZone to  "Europe/Berlin"
Speicherzugriffsfehler

Backtrace when running the same command in GDB:

Reading symbols from linphone...
Reading symbols from
/usr/lib/debug/.build-id/c0/10f0a4cfdba7d00b7fe025b8ca8561b99d60d1.debug...
(gdb) run
Starting program: /usr/bin/linphone
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
QObject::connect: No such signal
App::applicationStateChanged(Qt::ApplicationState) in
./linphone-app/src/app/App.cpp:271
Set TimeZone to  "Europe/Berlin"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5639974 in registerFont (fnt=0x7fffffffdb50)
     at text/qfontdatabase.cpp:1051
warning: 1051	text/qfontdatabase.cpp: Datei oder Verzeichnis nicht gefunden
(gdb) bt
#0  0x00007ffff5639974 in registerFont (fnt=0x7fffffffdb50)
     at text/qfontdatabase.cpp:1051
#1  QFontDatabasePrivate::addAppFont
     (this=this@entry=0x7ffff5b0e5c0 <(anonymous
namespace)::Q_QGS_privateDb::innerFunction()::holder>, fontData=...,
fileName=...)
     at text/qfontdatabase.cpp:2482
#2  0x00007ffff563d113 in QFontDatabase::addApplicationFont (fileName=...)
     at text/qfontdatabase.cpp:2534
#3  0x0000555555682bb3 in AppController::AppController
     (this=this@entry=0x7fffffffddc8, argc=@0x7fffffffddbc: 1,
     argc@entry=@0x7fffffffddbc: <optimized out>, argv=0x7fffffffdf58)
     at ./linphone-app/src/app/AppController.cpp:99
#4  0x00005555556003d9 in main (argc=<optimized out>, argv=<optimized out>)
     at ./linphone-app/src/app/main.cpp:78

#1102505#10
Date:
2025-06-16 14:57:28 UTC
From:
To:
i can confirm the problem. Same behavior with current state of the software. The qml and qt libraries are mainly unchanged since the original bug report.
#1102505#15
Date:
2025-09-12 19:59:12 UTC
From:
To:
It seems that it searches the wrong locations:

m@ryz:~$ LANG=C strace linphone 2>&1 |grep libapp
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/glibc-hwcaps/x86-64-v3/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/glibc-hwcaps/x86-64-v2/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v3/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v2/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libapp-plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
writev(2, [{iov_base="linphone", iov_len=8}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libapp-plugin.so", iov_len=16}, {iov_base=": ", iov_len=2}, {iov_base="cannot open shared object file", iov_len=30}, {iov_base=": ", iov_len=2}, {iov_base="No such file or directory", iov_len=25}, {iov_base="\n", iov_len=1}], 10linphone: error while loading shared libraries: libapp-plugin.so: cannot open shared object file: No such file or directory
m@ryz:~$

This most likely needs to be fixed at compilation time.