View previous topic :: View next topic |
Author |
Message |
gfaccin Tux's lil' helper
Joined: 20 Aug 2004 Posts: 120
|
Posted: Fri Jan 04, 2013 10:05 pm Post subject: [Solved] Every QT app fails to start with a Seg fault error |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1657
|
Posted: Sun Jan 06, 2013 8:37 am Post subject: |
|
|
Have you done a ? _________________ Donate to Gentoo |
|
Back to top |
|
|
gfaccin Tux's lil' helper
Joined: 20 Aug 2004 Posts: 120
|
Posted: Mon Jan 07, 2013 2:38 pm Post subject: |
|
|
Yes, and it says that everything is ok. |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Mon Jan 07, 2013 3:17 pm Post subject: |
|
|
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 |
|
|
gfaccin Tux's lil' helper
Joined: 20 Aug 2004 Posts: 120
|
Posted: Mon Jan 07, 2013 3:51 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Mon Jan 07, 2013 4:13 pm Post subject: |
|
|
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 |
|
|
gfaccin Tux's lil' helper
Joined: 20 Aug 2004 Posts: 120
|
Posted: Mon Jan 07, 2013 4:20 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue Jan 08, 2013 5:54 am Post subject: |
|
|
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 |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 608 Location: Fife, Scotland
|
Posted: Tue Jan 08, 2013 7:26 pm Post subject: |
|
|
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 |
|
|
gfaccin Tux's lil' helper
Joined: 20 Aug 2004 Posts: 120
|
Posted: Thu Jan 10, 2013 4:57 pm Post subject: |
|
|
Fixed it by brute force:
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 |
|
|
|