Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: PPC-User

KDE completely broken

 

 

Gentoo ppc-user RSS feed   Index | Next | Previous | View Threaded


bulliver at badcomputer

Aug 29, 2007, 2:31 PM

Post #1 of 6 (2501 views)
Permalink
KDE completely broken

Hello all,

I am having troubles with all KDE apps since a recent upgrade to 3.5.7 from
3.5.5. At first I thought it was related to all the upgrade troubles with
expat (which was upgraded to version 2 at the same time) however I am not so
sure anymore.

'emerge -puD' reports nothing to update, and 'revdep-rebuild' says everything
is kosher. Everything seems to work fine on this box now except for kde apps,
and I have not found a single kde app that does work.

I typically use kde as my default WM/Desktop. After the upgrade, when
I 'startx' I get nothing but a black screen, except for the mouse cursor,
which tracks across the desktop normally. Nothing else has an effect.

So I changed to Fluxbox, and the desktop starts fine. When I attempt to start
kde apps from an eterm I get (as example):

$ konsole
kbuildsycoca running...
DCOP Cleaning up dead connections.
Kcrash: Application 'konsole' crashing...
$

Depending on the app, the output is similar, but not always identical. When I
use strace when starting I can see that all the apps are segfaulting. I would
post output here but the segfaults happen in different places depending on
the app. Sometimes it is triggered by a read/write call, sometimes by a
mprotect call and so on...

Does anyone have an idea what might be wrong here? I realize I have not posted
much useful information to diagnose this, but I am unsure how to troubleshoot
further. I will certainly post output of any commands that may help...

System is a Powermac G5, Kernel 2.6.20-gentoo-r5, 64 bit userland.

Thanks for consideration,
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user [at] gentoo mailing list


josejx at gentoo

Aug 29, 2007, 5:34 PM

Post #2 of 6 (2373 views)
Permalink
Re: KDE completely broken [In reply to]

darren kirby wrote:
> Hello all,
>
> I am having troubles with all KDE apps since a recent upgrade to 3.5.7 from
> 3.5.5. At first I thought it was related to all the upgrade troubles with
> expat (which was upgraded to version 2 at the same time) however I am not so
> sure anymore.
>
> 'emerge -puD' reports nothing to update, and 'revdep-rebuild' says everything
> is kosher. Everything seems to work fine on this box now except for kde apps,
> and I have not found a single kde app that does work.
>
> I typically use kde as my default WM/Desktop. After the upgrade, when
> I 'startx' I get nothing but a black screen, except for the mouse cursor,
> which tracks across the desktop normally. Nothing else has an effect.
>
> So I changed to Fluxbox, and the desktop starts fine. When I attempt to start
> kde apps from an eterm I get (as example):
>
> $ konsole
> kbuildsycoca running...
> DCOP Cleaning up dead connections.
> Kcrash: Application 'konsole' crashing...
> $
>
> Depending on the app, the output is similar, but not always identical. When I
> use strace when starting I can see that all the apps are segfaulting. I would
> post output here but the segfaults happen in different places depending on
> the app. Sometimes it is triggered by a read/write call, sometimes by a
> mprotect call and so on...
>
> Does anyone have an idea what might be wrong here? I realize I have not posted
> much useful information to diagnose this, but I am unsure how to troubleshoot
> further. I will certainly post output of any commands that may help...
>
> System is a Powermac G5, Kernel 2.6.20-gentoo-r5, 64 bit userland.
>
> Thanks for consideration,
> -d

Well, that doesn't sound good. :) Can you try using gdb to get a
backtrace? Maybe they're all segfaulting when using the same
library/function call. A backtrace from gdb would help us see that.

-Joe
--
gentoo-ppc-user [at] gentoo mailing list


bulliver at badcomputer

Aug 29, 2007, 8:12 PM

Post #3 of 6 (2371 views)
Permalink
Re: KDE completely broken [In reply to]

quoth the Joseph Jezak:
>
> Well, that doesn't sound good. :) Can you try using gdb to get a
> backtrace? Maybe they're all segfaulting when using the same
> library/function call. A backtrace from gdb would help us see that.
>
> -Joe

Thanks for the reply Joe.

Here are a few lines of context around the segfault running konsole and
konqueror from strace, as well as links to the full output:

konsole:
http://badcomputer.org/strace_konsole.txt [427K]

write(3, "\22\0\0\10\0\240\0\5\0\0\1H\0\0\0\4 \0\0\0\0\0\0\2\0\0"..., 1044) =
1044
read(3, "\34\0\1@\0\240\0\5\0\0\1H\2\f\257\t\0\0\0\0\20\5?T\0\0"..., 32) = 32
read(3, "\26\0\1A\0\240\0\27\0\240\0\27\0\240\0\n\0\0\0\0\1A\0\33"..., 32) =
32
read(3, "\26\0\1C\0\240\0\27\0\240\0\27\0\240\0\n\0\0\0\0\1A\0\2"..., 32) = 32
read(3, "\1\3\1u\0\0\0\6\0\0\0\0\0\4K`\0\0\0\0\20\23)8\0\0\0\0\20"..., 32) =
32
readv(3, [{"2>\0B\0\0%m\0@}\234M\0\0\0\0\0\177\200\0]|\0", 24}, {"", 0}], 2) =
24
write(3, "e\0\0\2\10\1\0\5", 8) = 8
read(3, "\1\6\1v\0\0\0\6\0\0\0\0\0\0\0\0\0\0\17\377\377\2526\200"..., 32) = 32
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

konqueror:
http://badcomputer.org/strace_konqueror.txt [195K]

lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/kde", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/kde/3.5", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/kde/3.5/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/kde/3.5/share/apps", {st_mode=S_IFDIR|0755, st_size=8192, ...}) =
0
access("/usr/kde/3.5/share/apps", F_OK) = 0
lstat("/usr/kde/3.5/share/apps", {st_mode=S_IFDIR|0755, st_size=8192, ...}) =
0
access("/home/bulliver/.kde3.5/share/apps/konqueror/profiles/webbrowsing",
R_OK) = 0
stat("/home/bulliver/.kde3.5/share/apps/konqueror/profiles/webbrowsing",
{st_mode=S_IFREG|0600, st_size=642, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

kmail dumps this:

kbuildsycoca running...
KCrash: Application 'kmail' crashing...
DCOP aborting (delayed) call from 'anonymous-5590' to 'kmail'
ERROR: Communication problem with kmail, it probably crashed

My untrained eye cannot see anything wrong with the strace:
http://badcomputer.org/strace_kmail.txt [58K]
that is, there is no segfault.

I am going to have to read the gdb docs a bit before I can figure out how to
use it to get a backtrace. It certainly doesn't like the fact my binaries are
stripped. Here's what I could come up with:

$ gdb konqueror
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc64-unknown-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/kde/3.5/bin/konqueror
(no debugging symbols found)
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
(no debugging symbols found)
kbuildsycoca running...
DCOP Cleaning up dead connections.

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

I will have a further play with gdb and post back if I learn something. I
guess I will poke around upstream (KDE's) bugzilla and see if there is
anything there as well.

Thanks,
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user [at] gentoo mailing list


hansmi at gentoo

Aug 30, 2007, 12:43 AM

Post #4 of 6 (2365 views)
Permalink
Re: KDE completely broken [In reply to]

Hi

On Wed, Aug 29, 2007 at 09:12:43PM -0600, darren kirby wrote:
> It certainly doesn't like the fact my binaries are stripped. Here's
> what I could come up with:

You need to recompile it with FEATURES="nostrip" and possibly
USE="debug". Don't forget to remove -fomit-frame-pointer from
C{,XX}FLAGS, in case you have it. Depending on where the crash happens,
you may have to recompile not only KDE, but also other packages from
KDE's dependencies.

Greets,
Michael

--
http://hansmi.ch/
--
gentoo-ppc-user [at] gentoo mailing list


bulliver at badcomputer

Aug 30, 2007, 10:26 AM

Post #5 of 6 (2371 views)
Permalink
Re: KDE completely broken [In reply to]

quoth the Michael Hanselmann:
> Hi
>
> On Wed, Aug 29, 2007 at 09:12:43PM -0600, darren kirby wrote:
> > It certainly doesn't like the fact my binaries are stripped. Here's
> > what I could come up with:
>
> You need to recompile it with FEATURES="nostrip" and possibly
> USE="debug". Don't forget to remove -fomit-frame-pointer from
> C{,XX}FLAGS, in case you have it. Depending on where the crash happens,
> you may have to recompile not only KDE, but also other packages from
> KDE's dependencies.

Yes, I was afraid of that. I will rebuild kdelibs and kdebase to start, and
see where that leads me.

> Greets,
> Michael
>
> --
> http://hansmi.ch/

-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user [at] gentoo mailing list


bulliver at badcomputer

Sep 13, 2007, 12:07 PM

Post #6 of 6 (2378 views)
Permalink
Re: KDE completely broken [In reply to]

> > You need to recompile it with FEATURES="nostrip" and possibly
> > USE="debug". Don't forget to remove -fomit-frame-pointer from
> > C{,XX}FLAGS, in case you have it. Depending on where the crash happens,
> > you may have to recompile not only KDE, but also other packages from
> > KDE's dependencies.
>
> Yes, I was afraid of that. I will rebuild kdelibs and kdebase to start, and
> see where that leads me.

Well, after finding some time to look into this, the problem seems to have
solved itself. I rebuilt kdelibs and kdebase as Michael suggested, with
FEATURES="nostrip" and now everything seems to work again.

So? Overaggressive optimization from gcc? Overaggressive strip? Who knows.
Just thought I would send this in to give the thread some closure.

Thanks everyone,
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-ppc-user [at] gentoo mailing list

Gentoo ppc-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.