https://bugs.kde.org/show_bug.cgi?id=472134

            Bug ID: 472134
           Summary: ksshaskpass --version (or --help) crashes when
                    executed outside KDE session
    Classification: Applications
           Product: ksshaskpass
           Version: 5.27.6
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: jpwhit...@kde.org
          Reporter: pavel.per...@gmail.com
  Target Milestone: ---

SUMMARY

ksshaskpass --version (or --help) crashes when executed outside KDE session.
See the coredump below

STEPS TO REPRODUCE
1. login to linux via SSH
2. type ksshaskpass --version 

OBSERVED RESULT

ksshaskpass --version
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it
was found.
This application failed to start because no Qt platform plugin could be
initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen,
vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

zsh: IOT instruction (core dumped)  ksshaskpass --version

EXPECTED RESULT

Getting version info or help despite GUI is running in different session, it
should not be needed.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora Linux 38 (KDE Plasma)
KDE Plasma Version:  5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION

(gdb) thread apply all bt

Thread 2 (Thread 0x7fffe5be26c0 (LWP 244163) "QDBusConnection"):
#0  0x00007ffff6b2735d in __GI___poll (fds=0x7fffe0001600, nfds=2, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff5d713a9 in g_main_context_poll (priority=<optimized out>,
n_fds=2, fds=0x7fffe0001600, timeout=<optimized out>, context=0x7fffe0000c50)
at ../glib/gmain.c:4584
#2  g_main_context_iterate.isra.0 (context=0x7fffe0000c50, block=1, dispatch=1,
self=<optimized out>) at ../glib/gmain.c:4271
#3  0x00007ffff5d10a23 in g_main_context_iteration (context=0x7fffe0000c50,
may_block=1) at ../glib/gmain.c:4343
#4  0x00007ffff7306729 in QEventDispatcherGlib::processEvents
(this=0x7fffe0000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007ffff72b2b4b in QEventLoop::exec (this=this@entry=0x7fffe5be1cc0,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007ffff70f45b0 in QThread::exec (this=this@entry=0x7ffff6fff060
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007ffff6f85dab in QDBusConnectionManager::run (this=0x7ffff6fff060
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
qdbusconnection.cpp:179
#8  0x00007ffff70f59bd in operator() (__closure=<optimized out>) at
thread/qthread_unix.cpp:350
#9  (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
(t=...) at thread/qthread_unix.cpp:287
#10 QThreadPrivate::start (arg=0x7ffff6fff060 <(anonymous
namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
thread/qthread_unix.cpp:310
#11 0x00007ffff6aae907 in start_thread (arg=<optimized out>) at
pthread_create.c:444
#12 0x00007ffff6b34870 in clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7ffff362b880 (LWP 244160) "ksshaskpass"):
#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff6ab08b3 in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#2  0x00007ffff6a5fabe in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3  0x00007ffff6a4887f in __GI_abort () at abort.c:79
#4  0x00007ffff70b1898 in qt_message_fatal (message=<synthetic pointer>...,
context=...) at global/qlogging.cpp:1914
#5  QMessageLogger::fatal (this=this@entry=0x7fffffffdd00,
msg=msg@entry=0x7ffff67813e9 "%s") at global/qlogging.cpp:893
#6  0x00007ffff63647dd in init_platform (argv=<optimized out>, argc=<optimized
out>, platformThemeName=..., platformPluginPath=...,
pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1254
#7  QGuiApplicationPrivate::createPlatformIntegration (this=0x555555576ac0) at
kernel/qguiapplication.cpp:1477
#8  0x00007ffff6364d00 in QGuiApplicationPrivate::createEventDispatcher
(this=<optimized out>) at kernel/qguiapplication.cpp:1494
#9  0x00007ffff72babac in QCoreApplicationPrivate::init
(this=this@entry=0x555555576ac0) at kernel/qcoreapplication.cpp:835
#10 0x00007ffff63676bf in QGuiApplicationPrivate::init
(this=this@entry=0x555555576ac0) at kernel/qguiapplication.cpp:1523
#11 0x00007ffff77b43e5 in QApplicationPrivate::init (this=0x555555576ac0) at
kernel/qapplication.cpp:513
#12 0x00007ffff77b44df in QApplication::QApplication
(this=this@entry=0x7fffffffe030, argc=@0x7fffffffdfcc: 2, argv=<optimized out>,
_internal=_internal@entry=331530) at kernel/qapplication.cpp:501
#13 0x0000555555556931 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/ksshaskpass-5.27.6-1.fc38.x86_64/src/main.cpp:243
(gdb)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to