Bug 381265 - krunner crashed
Summary: krunner crashed
Status: RESOLVED DUPLICATE of bug 358617
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.6.5
Platform: Mint (Debian based) Linux
: NOR crash
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-16 06:03 UTC by basharjaankhan
Modified: 2017-06-26 15:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description basharjaankhan 2017-06-16 06:03:39 UTC
typing "=", then typing "F2" before "=" to make it "F2=". Then as soon as i typed "3", the krunner got crashed with a segmentation error. I was hoping for KCalc to return the decimal equivalent of the given hexadecimal number but it crashed.

The first time it logged out forcefully and made me login again.
Now krunner is not responding to "Alt+Space".
Comment 1 Nate Graham 2017-06-16 17:21:06 UTC
I can reproduce this crash 100% in Kubuntu 17.0.4 with KRunner 5.9.4.


Running KRunner from Konsole prints out the following during the crash:


kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/nate/.local/share", "/usr/share/usr/share/xsessions/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/nate/.local/share", "/usr/share/usr/share/xsessions/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")
ktp-common-internals: Current presence changed
ktp-common-internals: Current presence changed
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/nate/.local/share", "/usr/share/usr/share/xsessions/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/nate/.local/share", "/usr/share/usr/share/xsessions/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")
KCrash: Attempting to start /usr/bin/krunner from kdeinit
sock_file=/run/user/1000/kdeinit5__0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = krunner path = /usr/bin pid = 5645
KCrash: Arguments: /usr/bin/krunner 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
QSocketNotifier: Invalid socket 16 and type 'Exception', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 14 and type 'Read', disabling...
QSocketNotifier: Invalid socket 12 and type 'Read', disabling...
intel_do_flush_locked failed: Bad file descriptor


No backtrace was generated.
Comment 2 Nate Graham 2017-06-17 00:37:18 UTC
Got a backtrace:


Thread 9 "GlobalQueue[05]" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbe5c4700 (LWP 15401)]
0x00007fffc1017949 in Calculator::getBestUnit(Unit*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libqalculate.so.6
(gdb) backtrace full
#0  0x00007fffc1017949 in Calculator::getBestUnit(Unit*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libqalculate.so.6
No symbol table info available.
#1  0x00007fffc1017b06 in Calculator::getBestUnit(Unit*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libqalculate.so.6
No symbol table info available.
#2  0x00007fffc102737d in Calculator::convertToBestUnit(MathStructure const&, EvaluationOptions const&) () from /usr/lib/x86_64-linux-gnu/libqalculate.so.6
No symbol table info available.
#3  0x00007fffc106cda5 in Calculator::calculate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, EvaluationOptions const&, MathStructure*, MathStructure*, bool) () from /usr/lib/x86_64-linux-gnu/libqalculate.so.6
No symbol table info available.
#4  0x00007fffc139b97a in ?? ()
   from /usr/lib/x86_64-linux-gnu/qt5/plugins/krunner_calculatorrunner.so
No symbol table info available.
#5  0x00007fffc139cf37 in ?? ()
   from /usr/lib/x86_64-linux-gnu/qt5/plugins/krunner_calculatorrunner.so
No symbol table info available.
#6  0x00007fffc139d5a4 in ?? ()
   from /usr/lib/x86_64-linux-gnu/qt5/plugins/krunner_calculatorrunner.so
No symbol table info available.
#7  0x00007fffd125a538 in Plasma::AbstractRunner::performMatch(Plasma::RunnerContext&) ()
   from /usr/lib/x86_64-linux-gnu/libKF5Runner.so.5
No symbol table info available.
#8  0x00007fffd1039bf8 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
No symbol table info available.
#9  0x00007fffd1038630 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
No symbol table info available.
#10 0x00007fffd10381d0 in ThreadWeaver::Thread::run() ()
   from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
No symbol table info available.
#11 0x00007ffff3e9ec98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#12 0x00007ffff157b6da in start_thread (arg=0x7fffbe5c4700) at pthread_create.c:456
        __res = <optimized out>
        pd = 0x7fffbe5c4700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736387106560, 8049756887225513128, 
                140736395495982, 140736395495983, 140736387107264, 140736387106560, 
                -8049894590262233944, -8049734006026095448}, mask_was_saved = 0}}, priv = {
            pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
---Type <return> to continue, or q <return> to quit---
        __PRETTY_FUNCTION__ = "start_thread"
#13 0x00007ffff37ab17f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
No locals.


Looks like Calculator::getBestUnit() is getting confused. Of note, I can only reproduce this by typing "=F2", not "=f2".
Comment 3 Christoph Feck 2017-06-19 22:26:55 UTC
libqcalculate considers the uppercase F as a temperature unit °F, which causes a crash. Please report this issue directly to libqalculate developers.

To enter hexadecimals numbers, please use a '0x' prefix.

*** This bug has been marked as a duplicate of bug 358617 ***