Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Every QT app fails to start with a Seg fault error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gfaccin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2004
Posts: 120

PostPosted: Fri Jan 04, 2013 10:05 pm    Post subject: [Solved] Every QT app fails to start with a Seg fault error Reply with quote

Hi there, and happy new year!

After an emerge world, every QT-based app I have fails to work. For example, we have:

Code:

gfaccin@piranha ~ $ kcalc
Segmentation fault


Trying the same as root provides:
Code:


piranha gfaccin # kcalc
kcalc(3163)/kdeui (kdelibs): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
KCrash: Application 'kcalc' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-piranha/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi directly
drkonqi(3164)/kdeui (kdelibs): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)


In fact, running export $(dbus-launch) as root allows me to run kcalc as root. However, the dbus-launch trick does not work for the user account.

How can I fix this? I've already reemerged dbus and qt, and dbus + consolekit are enabled on the default boot runlevel.

Thank you!


Last edited by gfaccin on Thu Jan 10, 2013 4:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1650

PostPosted: Sun Jan 06, 2013 8:37 am    Post subject: Reply with quote

Have you done a
Code:
revdep-rebuild
?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
gfaccin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2004
Posts: 120

PostPosted: Mon Jan 07, 2013 2:38 pm    Post subject: Reply with quote

Yes, and it says that everything is ok.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Mon Jan 07, 2013 3:17 pm    Post subject: Reply with quote

gfaccin wrote:
Yes, and it says that everything is ok.


just for the sake of it, run revdep-rebuild -i
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
gfaccin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2004
Posts: 120

PostPosted: Mon Jan 07, 2013 3:51 pm    Post subject: Reply with quote

Code:

piranha gfaccin # revdep-rebuild -i
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 100% ]                 

 * Dynamic linking on your system is consistent... All done.


This bug has something to do with dbus, not the linking. The apps do work if one runs them as root and with the suggested command. Thing is, how to fix it so that it works under normal conditions? The dbus daemon is starting during boot as usual. Perhaps something configuration-related?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Mon Jan 07, 2013 4:13 pm    Post subject: Reply with quote

which kde version are you using?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
gfaccin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2004
Posts: 120

PostPosted: Mon Jan 07, 2013 4:20 pm    Post subject: Reply with quote

This is the installed version and flags:

Code:

piranha gfaccin # emerge kdelibs -vp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] kde-base/kdelibs-4.9.3:4  USE="acl alsa bzip2 fam handbook mmx nls opengl policykit semantic-desktop spell sse sse2 ssl udev udisks upower -3dnow (-altivec) (-aqua) -debug -doc -jpeg2k -kerberos -lzma -openexr {-test} (-udisks2) (-upnp) -zeroconf" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue Jan 08, 2013 5:54 am    Post subject: Reply with quote

try reinstalling it, maybe it will help.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 601
Location: Fife, Scotland

PostPosted: Tue Jan 08, 2013 7:26 pm    Post subject: Reply with quote

The dbus report is just caused by running it as root - happens for me even with everything else working properly.

You can squeeze a little info out of a segfault by running it under debugger (gdb).
Code:
$ gdb kcalc
(gdb) run
....
(qdb) quit
I'd expect this to at least tell you the name of the shared library its having problems with.
Back to top
View user's profile Send private message
gfaccin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2004
Posts: 120

PostPosted: Thu Jan 10, 2013 4:57 pm    Post subject: Reply with quote

Fixed it by brute force:

Code:

emerge --depclean


During depclean, many packages of a previous version of kde were removed. I suspect that the coexistence of kde 4.8.1 and the 4.9.X series might have, somehow, be related to this.

After the depclean, even without revdep-rebuild, the problem disappeared.

Thank you all for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum