<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>192714</bug_id>
          
          <creation_ts>2009-05-14 22:40:16 +0000</creation_ts>
          <short_desc>calling org.kde.KIO.Scheduler.reparseSlaveConfiguration via dbus crashes whole system</short_desc>
          <delta_ts>2010-09-09 00:51:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>226721</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ronny Standtke">Ronny.Standtke</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>ahartmetz</cc>
    
    <cc>andresbajotierra</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>757433</commentid>
    <comment_count>0</comment_count>
    <who name="Ronny Standtke">Ronny.Standtke</who>
    <bug_when>2009-05-14 22:40:16 +0000</bug_when>
    <thetext>Version:            (using KDE 4.2.2)
Installed from:    Ubuntu Packages

In the good old days of KDE 3 it was possible to trigger reparsing of KIO http configuration with the following call:
$ dcop &lt;program&gt; KIO::Scheduler reparseSlaveConfiguration http

Now that I migrated to KDE 4 I wanted to do the same. DCOP is gone, so I spend some time figuring out what I had to do. I learned that I can use qdbus to get a list of valid destinations and can use dbus-send to send a signal. Example:
----------------
$ qdbus | grep konqueror
org.kde.konqueror-8084
$ dbus-send --session --dest=org.kde.konqueror-8084 /KIO/Scheduler org.kde.KIO.Scheduler.reparseSlaveConfiguration
----------------
Unfortunately, executing the last statement crashed many parts of KDE. Plasma, Krunner, Akregator, Konqueror, ... everything crashed at the same time.

Here is a backtrace of the konqueror crash:
----------------
[Thread debugging using libthread_db enabled]
[New Thread 0xb5eb6b50 (LWP 7798)]
0xb8024430 in __kernel_vsyscall ()
[Current thread is 0 (process 7798)]

Thread 1 (Thread 0xb5eb6b50 (LWP 7798)):
#0  0xb8024430 in __kernel_vsyscall ()
#1  0xb64e7780 in __nanosleep_nocancel () from /lib/tls/i686/cmov/libc.so.6
#2  0xb64e75be in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:138
#3  0xb795c8b2 in ?? () from /usr/lib/libkdeui.so.5
#4  0xb795d274 in KCrash::defaultCrashHandler () from /usr/lib/libkdeui.so.5
#5  &lt;signal handler called&gt;
#6  0xb7367907 in QVariant::userType () from /usr/lib/libQtCore.so.4
#7  0xb7457391 in ?? () from /usr/lib/libQtDBus.so.4
#8  0xb745e479 in ?? () from /usr/lib/libQtDBus.so.4
#9  0xb745e624 in ?? () from /usr/lib/libQtDBus.so.4
#10 0xb7464663 in ?? () from /usr/lib/libQtDBus.so.4
#11 0xb7468582 in ?? () from /usr/lib/libQtDBus.so.4
#12 0xb5c9e0d5 in dbus_connection_dispatch () from /lib/libdbus-1.so.3
#13 0xb7457406 in ?? () from /usr/lib/libQtDBus.so.4
#14 0xb745756f in ?? () from /usr/lib/libQtDBus.so.4
#15 0xb749cc2c in ?? () from /usr/lib/libQtDBus.so.4
#16 0xb735eca8 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb735f932 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb739a5a3 in QSocketNotifier::activated () from /usr/lib/libQtCore.so.4
#19 0xb73639a7 in QSocketNotifier::event () from /usr/lib/libQtCore.so.4
#20 0xb694ff2c in QApplicationPrivate::notify_helper (this=0x89313b8, receiver=0x89bbaf8, e=0xbfb41db0) at kernel/qapplication.cpp:4084
#21 0xb695822e in QApplication::notify (this=0xbfb421d8, receiver=0x89bbaf8, e=0xbfb41db0) at kernel/qapplication.cpp:3631
#22 0xb78ec94d in KApplication::notify () from /usr/lib/libkdeui.so.5
#23 0xb7348a3b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#24 0xb73746ca in ?? () from /usr/lib/libQtCore.so.4
#25 0xb621fb88 in IA__g_main_context_dispatch (context=0x8933690) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#26 0xb62230eb in g_main_context_iterate (context=0x8933690, block=1, dispatch=1, self=0x89315d0) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#27 0xb6223268 in IA__g_main_context_iteration (context=0x8933690, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#28 0xb7374438 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#29 0xb69f13f5 in QGuiEventDispatcherGlib::processEvents (this=0x891e7c0, flags={i = -1078714568}) at kernel/qguieventdispatcher_glib.cpp:202
#30 0xb734706a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#31 0xb73474aa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#32 0xb7349959 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#33 0xb694fda7 in QApplication::exec () at kernel/qapplication.cpp:3553
#34 0xb7ff400f in kdemain (argc=2, argv=0xbfb42554) at /build/buildd/kdebase-4.2.2/apps/konqueror/src/konqmain.cpp:257
#35 0x080486f2 in main (argc=1, argv=0x3) at /build/buildd/kdebase-4.2.2/obj-i486-linux-gnu/apps/konqueror/src/konqueror_dummy.cpp:3
#0  0xb8024430 in __kernel_vsyscall ()
----------------

I tested with the KDE-4.3 openSuse Live CD and could reproduce the problem even with the latest and greatest Beta.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>757434</commentid>
    <comment_count>1</comment_count>
    <who name="Ronny Standtke">Ronny.Standtke</who>
    <bug_when>2009-05-14 22:42:38 +0000</bug_when>
    <thetext>Sorry, I forgot to change the severity to &quot;Crash&quot; and it looks like I can not change this after filing the bug. (Why?)
Could someone please change the severity?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>757484</commentid>
    <comment_count>2</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-05-15 00:37:09 +0000</bug_when>
    <thetext>What is your Qt4 version and your dbus lib version ?
Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>757589</commentid>
    <comment_count>3</comment_count>
    <who name="Ronny Standtke">Ronny.Standtke</who>
    <bug_when>2009-05-15 09:17:30 +0000</bug_when>
    <thetext>Sorry, I forgot to mention that I am using Kubuntu-9.04. Here is the requested additional info:
$ dpkg -l libqt4-dbus dbus
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name            Version         Description
+++-===============-===============-==============================================
ii  dbus            1.2.12-0ubuntu2 simple interprocess messaging system
ii  libqt4-dbus     4.5.0-0ubuntu4  Qt 4 D-Bus module</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>845305</commentid>
    <comment_count>4</comment_count>
    <who name="Ronny Standtke">Ronny.Standtke</who>
    <bug_when>2009-10-15 11:24:59 +0000</bug_when>
    <thetext>I just tested with Kubuntu-9.10 Beta and, unfortunately, the issue is still there. Here is the current version info:

$ dpkg -l libqt4-dbus dbus
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version                    Description
+++-==========================-==========================-====================================================================
ii  dbus                       1.2.16-0ubuntu8            simple interprocess messaging system
ii  libqt4-dbus                4.5.3really4.5.2-0ubuntu1  Qt 4 D-Bus module

Here is a simple bash script to test the issue:
#!/bin/bash
KONQUEROR=$(qdbus | grep -m1 konqueror)
KONQUEROR=${KONQUEROR## }
if [ -z &quot;${KONQUEROR}&quot; ]
then
        echo &quot;No running Konqueror instance found. Please start Konqueror.&quot;
        exit 1
fi
dbus-send --session --dest=${KONQUEROR} /KIO/Scheduler org.kde.KIO.Scheduler.reparseSlaveConfiguration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>845306</commentid>
    <comment_count>5</comment_count>
      <attachid>37591</attachid>
    <who name="Ronny Standtke">Ronny.Standtke</who>
    <bug_when>2009-10-15 11:26:59 +0000</bug_when>
    <thetext>Created attachment 37591
bash script that triggers the crash

The correct line breaks are not preserved in the comments. Therefore I attach the test script here. Just start Konqueror and then the test script -&gt; the whole KDE 4 desktop crashes...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>917198</commentid>
    <comment_count>6</comment_count>
    <who name="Ronny Standtke">Ronny.Standtke</who>
    <bug_when>2010-02-15 12:56:29 +0000</bug_when>
    <thetext>I just tested with KDE 4.4 and reparsing the configuration still crashes the whole desktop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016394</commentid>
    <comment_count>7</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2010-09-09 00:51:15 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 226721 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>37591</attachid>
            <date>2009-10-15 11:26:59 +0000</date>
            <delta_ts>2009-10-15 11:26:59 +0000</delta_ts>
            <desc>bash script that triggers the crash</desc>
            <filename>crash-kde.sh</filename>
            <type>text/plain</type>
            <size>291</size>
            <attacher name="Ronny Standtke">Ronny.Standtke</attacher>
            
              <data encoding="base64">IyEvYmluL2Jhc2gKS09OUVVFUk9SPSQocWRidXMgfCBncmVwIC1tMSBrb25xdWVyb3IpCktPTlFV
RVJPUj0ke0tPTlFVRVJPUiMjIH0KaWYgWyAteiAiJHtLT05RVUVST1J9IiBdCnRoZW4KCWVjaG8g
Ik5vIHJ1bm5pbmcgS29ucXVlcm9yIGluc3RhbmNlIGZvdW5kLiBQbGVhc2Ugc3RhcnQgS29ucXVl
cm9yLiIKCWV4aXQgMQpmaQpkYnVzLXNlbmQgLS1zZXNzaW9uIC0tZGVzdD0ke0tPTlFVRVJPUn0g
L0tJTy9TY2hlZHVsZXIgb3JnLmtkZS5LSU8uU2NoZWR1bGVyLnJlcGFyc2VTbGF2ZUNvbmZpZ3Vy
YXRpb24K
</data>

          </attachment>
      

    </bug>

</bugzilla>