Bug 226868 - kwrite crashes, when starting from konsole as root
Summary: kwrite crashes, when starting from konsole as root
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: ksycoca (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 212050 288155 293738 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-14 19:13 UTC by H.H.
Modified: 2018-11-28 04:52 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.H. 2010-02-14 19:13:49 UTC
Version:           4.4.00 (KDE 4.4.0) "release 222" (using 4.4.00 (KDE 4.4.0) "release 222", KDE:KDE4:Factory:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.31.5-0.1-desktop

here is its output in konsole on start/crash:

kwrite(6229): Session bus not found                               

KCrash: Application 'kwrite' crashing...
sock_file=/root/.kde4/socket-linux-yl0a/kdeinit4__0
Warning: connect() failed: : Verbindungsaufbau abgelehnt
KCrash cannot reach kdeinit, launching directly.        
drkonqi(6230): Session bus not found
Comment 1 Christoph Cullmann 2010-02-16 12:08:37 UTC
If at all, this is a kdelibs problem. I personally wouldn't start kwrite as root, better use the fish io slave for ssh to localhost as root.
Comment 2 H.H. 2010-02-16 16:06:11 UTC
with kwrite/kde3 it works. if you think this is a kdelibs problem, can you give me a hint, where to look?
Comment 3 Christoph Feck 2010-02-19 01:45:02 UTC
If the crash can be reproduced, please provide a backtrace. For more information, see http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 4 H.H. 2010-02-19 08:55:15 UTC
I am not able to reproduce a backtrace. As you see above, kcrash is also unable to start. And valgrind did not help either.

But I tested a little more, and saw, that other kde applications also have problems. So could you please redirect this bug to the right kde component?

Here some other output:

# kcalc
kcalc(3037): Session bus not found 

KCrash: Application 'kcalc' crashing...
sock_file=/root/.kde4/socket-linux-yl0a/kdeinit4__0
Warning: connect() failed: : Verbindungsaufbau abgelehnt
KCrash cannot reach kdeinit, launching directly.        
drkonqi(3038): Session bus not found                    

# firefox   (works good)
kmozillahelper(6168): Session bus not found 

KCrash: Application 'kmozillahelper' crashing...
Warning: connect() failed: : Verbindungsaufbau abgelehnt
KCrash cannot reach kdeinit, launching directly.        
drkonqi(6169): Session bus not found                    

*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).
# gftp    
(works good)



valgrind output (have opensuse glibc-profile package installed):
valgrind kcalc                                                  
==7516== Memcheck, a memory error detector                                                
==7516== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.                  
==7516== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info                
==7516== Command: kcalc                                                                   
==7516==                                                                                  

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details of the redirection are:   
valgrind:                                                       
valgrind:  A must-be-redirected function                        
valgrind:  whose name matches the pattern:      strlen          
valgrind:  in an object with soname matching:   ld-linux-x86-64.so.2
valgrind:  was not found whilst processing                          
valgrind:  symbols from the object with soname: ld-linux-x86-64.so.2
valgrind:                                                           
valgrind:  Possible fixes: (1, short term): install glibc's debuginfo
valgrind:  package on this machine.  (2, longer term): ask the packagers
valgrind:  for your Linux distribution to please in future ship a non-  
valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)
valgrind:  that exports the above-named function using the standard     
valgrind:  calling conventions for this platform.                       
valgrind:                                                               
valgrind:  Cannot continue -- exiting now.  Sorry.


can you give me a hint, how to get kcrash or valgrind or some other tool to work?
Comment 5 Christoph Feck 2010-02-26 02:51:51 UTC
valgrind tells you about the hint: install glibc debuginfo.

What does running "qdbus" and "qdbus --system" output? It looks like the dbus session is not running, maybe you need to launch it using "dbus-launch", but I am no expert on dbus (and it should be started automatically whenever kde needs it)...
Comment 6 H.H. 2010-02-26 08:41:53 UTC
1) there is not glibc-debuginfo package on opensuse, but a glibc-profile package, I think it does the same (have installed that)

2) as root user? there I have following output

 # qdbus
Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

# qdbus --system
:1.0
 org.freedesktop.Hal
:1.1
 org.freedesktop.ConsoleKit
:1.11
 org.freedesktop.Avahi
:1.12
 org.bluez
:1.13
 org.freedesktop.NetworkManager
:1.14
 org.freedesktop.ModemManager
:1.15
 org.freedesktop.NetworkManagerSystemSettings
:1.16
 fi.epitest.hostap.WPASupplicant
:1.17
:1.18
:1.2
:1.27
:1.3
:1.31
:1.32
:1.33
 org.freedesktop.RealtimeKit1
:1.34
 org.freedesktop.PolicyKit1
:1.35
:1.36
:1.37
:1.38
:1.39
:1.4
:1.41
:1.42
 org.freedesktop.NetworkManagerUserSettings
:1.43
:1.44
:1.45
:1.46
 org.freedesktop.DeviceKit.Disks
:1.47
:1.5
:1.50
:1.8
org.freedesktop.DBus
Comment 7 Valerio 2010-07-15 01:00:42 UTC
I'm reporting the same old bug, same as BUG 212050.


-Application that crashed: kwrite
-Version of the application: 4.3.5 (KDE 4.3.5)
-KDE Version: 4.3.5 (KDE 4.3.5)
-Qt Version: 4.5.3
-Operating System: Linux 2.6.31.13-server-1mnb x86_64
-Distribution: "Mandriva Linux 2010.0"

-What I was doing when the application crashed:

Simply launching kwrite from a konsole root session; the crash happens every time; even the bug reporting tool crashes every time before I can complete the report.


-Hereby I present my trace:


Application: KWrite (kwrite), signal: Segmentation fault
[KCrash Handler]
#4  ~KSycocaDict (this=0x62664480000003) at /usr/src/debug/kdelibs-4.3.5/kdecore/sycoca/ksycocadict.cpp:107
#5  0x00007f816dc7c4db in ~KServiceFactory (this=0x1334280) at /usr/src/debug/kdelibs-4.3.5/kdecore/services/kservicefactory.cpp:71
#6  0x00007f816dd1decf in KSycocaPrivate::closeDatabase (this=0x1334180) at /usr/lib/qt4/include/QtCore/qalgorithms.h:350
#7  0x00007f816dd1fffc in KSycocaPrivate::checkDatabase (this=0x1334180, ifNotFound=) at /usr/src/debug/kdelibs-4.3.5/kdecore/sycoca/ksycoca.cpp:408
#8  0x00007f816dd21395 in KSycoca::findFactory (this=0x1332c30, id=KST_KServiceTypeFactory) at /usr/src/debug/kdelibs-4.3.5/kdecore/sycoca/ksycoca.cpp:455
#9  0x00007f816dd24797 in KSycocaFactory (this=0x141c1a0, factory_id=KST_KServiceTypeFactory) at /usr/src/debug/kdelibs-4.3.5/kdecore/sycoca/ksycocafactory.cpp:53
#10 0x00007f816dc87c1e in KServiceTypeFactory (this=0x62664480000003) at /usr/src/debug/kdelibs-4.3.5/kdecore/services/kservicetypefactory.cpp:31
#11 0x00007f816dc8816a in KServiceTypeFactory::self () at /usr/src/debug/kdelibs-4.3.5/kdecore/sycoca/ksycocafactory.h:200
#12 0x00007f816dc889ea in KServiceTypeProfiles::ensureParsed (this=0x62664480000003) at /usr/src/debug/kdelibs-4.3.5/kdecore/services/kservicetypeprofile.cpp:71
#13 0x00007f816dc8965c in KServiceTypeProfile::hasProfile (serviceType=@0x7fff447d9850) at /usr/src/debug/kdelibs-4.3.5/kdecore/services/kservicetypeprofile.cpp:40
#14 0x00007f816dc8bf52 in KServiceTypeTrader::query (this=0x0, serviceType=@0xffffffffffffffc0, constraint=@0x1) at /usr/src/debug/kdelibs-4.3.5/kdecore/services/kservicetypetrader.cpp:137
#15 0x00007f8165352204 in KatePartPluginManager::setupPluginList (this=0x141f4c0) at /usr/src/debug/kdelibs-4.3.5/kate/utils/katepartpluginmanager.cpp:77
#16 0x00007f816535354f in KatePartPluginManager (this=0x141f4c0) at /usr/src/debug/kdelibs-4.3.5/kate/utils/katepartpluginmanager.cpp:55
#17 0x00007f816534548b in KateGlobal (this=0x1360ca0) at /usr/src/debug/kdelibs-4.3.5/kate/utils/kateglobal.cpp:158
#18 0x00007f81653457ba in KateGlobal::self () at /usr/src/debug/kdelibs-4.3.5/kate/utils/kateglobal.cpp:415
#19 0x00007f81653187a9 in KateFactory::editor (this=0x62664480000003) at /usr/src/debug/kdelibs-4.3.5/kate/utils/katefactory.cpp:51
#20 0x00007f816f8a9173 in KTextEditor::editor (libname=<value optimized out>) at /usr/src/debug/kdelibs-4.3.5/interfaces/ktexteditor/ktexteditor.cpp:244
#21 0x00007f816f8aebef in KTextEditor::EditorChooser::editor (postfix=<value optimized out>, fallBackToKatePart=true) at /usr/src/debug/kdelibs-4.3.5/interfaces/ktexteditor/editorchooser.cpp:136
#22 0x00007f816fe2f32f in ?? () from /usr/lib64/libkdeinit4_kwrite.so
#23 0x00007f816fe31e3f in kdemain () from /usr/lib64/libkdeinit4_kwrite.so
#24 0x00007f816fae291d in __libc_start_main () from /lib64/libc.so.6
#25 0x0000000000400609 in _start ()
Comment 8 Christoph Feck 2010-08-08 14:02:05 UTC
*** Bug 212050 has been marked as a duplicate of this bug. ***
Comment 9 Facundo Aguilera 2010-08-13 16:56:46 UTC
Try with "su -"
Comment 10 Jekyll Wu 2011-09-20 22:01:29 UTC
(In reply to comment #9)
> Try with "su -"

I can confirm this works without problem.
Comment 11 Jekyll Wu 2011-12-03 19:03:10 UTC
*** Bug 288155 has been marked as a duplicate of this bug. ***
Comment 12 Jekyll Wu 2012-02-09 20:25:18 UTC
*** Bug 293738 has been marked as a duplicate of this bug. ***
Comment 13 Andrew Crouthamel 2018-10-29 22:44:08 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2018-11-13 14:24:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Bug Janitor Service 2018-11-28 04:52:33 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!