Re: panel using all CPU



On 3 Nov 1998, Louis-Dominique Dubeau wrote:

> I've seen that happening.  In my case the applets that were using all
> the CPU were applets that had been started with a panel that was no
> longer running!  Doing a ps -ux, I could see two sets of applets.  One
> set (the one that was started by the currently running panel) was
> behaving normally.  The other set was eating up all the CPU time.

I'm not so sure this is a panel problem - it may be a session management
problem, or a g[dt]k problem.  I usually leave one or two gnome-terminals
alive when I quit, and they usually pop back up again under SM control
when I start X again.  The panel always reappears, and always with the
correct applets running.  However, occasionally all the CPU is eaten by
some combination of gnome-terminal(s) and panel (sometimes one or other,
sometimes both).  ps ax reveals that the culprits have --sm-client-id
command lines, i.e. are the evil progeny of the session manager.  I've
never seen applets eat CPU, BTW.

This problem is intermittent and, needless to say, hasn't cropped up in
any of my apps for a while, but I managed to catch one yesterday that was
eating CPU processing a --discard from the SM.  This is not the same
problem I normally see (that is clients restarted by SM) - sorry, I'll
post again if I catch one.

Strace on the errant gnome-terminal --discard /gnome-terminal-id#....
gives an empty file, so I sent it a SIGABRT to get a core dump.  I'll
attach the script file from running GDB on it below.  Sorry for the mess,
but 1) I haven't got the faintest idea about GDB, 2) I think my GDB is
buggy.  I still have the core file, original libs and sources I compiled
from, but I can't keep this stuff forever, is there anything else anyone
wants me to type in and post the results of?

-- Duncan

Script started on Tue Nov  3 21:17:50 1998
[duncan@localhost duncan]$ gdb --core=core
GNU gdb 4.17
Copyright 1998 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 "i386-redhat-linux".
Core was generated by `gnome-terminal --discard /gnome-terminal-id#117f0000010000909937710000000091700'.
Program terminated with signal 6, Aborted.
#0  0x402b3c48 in ?? ()
(gdb) file /opt/gnome/bin/gnome-terminal
Reading symbols from /opt/gnome/bin/gnome-terminal...done.
(gdb) sharedlibrary libgnome.*
Reading symbols from /opt/gnome/lib/libgnomeui.so.0...done.
Reading symbols from /opt/gnome/lib/libgnome.so.0...done.
Reading symbols from /opt/gnome/lib/libgnomesupport.so.0...done.
find_solib: Can't read pathname for load map: Input/output error

(gdb) bt
#0  0x402b3c48 in ?? () from /usr/X11R6/lib/libX11.so.6
#1  0x402b3c16 in ?? () from /usr/X11R6/lib/libX11.so.6
#2  0x40299c96 in ?? () from /usr/X11R6/lib/libX11.so.6
#3  0x402996f7 in ?? () from /usr/X11R6/lib/libX11.so.6
#4  0x40256c26 in ?? () from /opt/gnome/lib/libgdk-1.1.so.3
#5  0x40257ead in ?? () from /opt/gnome/lib/libgdk-1.1.so.3
#6  0x4039e585 in ?? () from /lib/libc.so.6
#7  0x40255f34 in ?? () from /opt/gnome/lib/libgdk-1.1.so.3
#8  0x40258053 in ?? () from /opt/gnome/lib/libgdk-1.1.so.3
#9  0xbfffe7b4 in ?? ()
#10 0x402cc3b1 in ?? () from /usr/X11R6/lib/libX11.so.6
#11 0x402ccd39 in ?? () from /usr/X11R6/lib/libX11.so.6
#12 0x402b49ff in ?? () from /usr/X11R6/lib/libX11.so.6
#13 0x402ac84e in ?? () from /usr/X11R6/lib/libX11.so.6
#14 0x400a48cc in ?? () from /opt/gnome/lib/libgdk_imlib.so.1
#15 0x4004dd5f in our_gtk_parse_func (key=16777220, arg=0x0, state=0xbffffb58)
    at gnome-init.c:128
#16 0x4034b5c7 in group_parse (group=0x8060f58, state=0xbffffb58, 
    key=16777220, arg=0x0) at argp-parse.c:276
#17 0x4034bd65 in parser_finalize (parser=0xbffffb3c, err=7, arg_ebadkey=1, 
    end_index=0x0) at argp-parse.c:670
#18 0x4034c206 in argp_parse (argp=0x80514fc, argc=3, argv=0xbffffc40, 
    flags=0, end_index=0x0, input=0x8051ab0) at argp-parse.c:929
#19 0x403400ef in gnome_parse_arguments_with_data (parser=0x80514fc, argc=3, 
    argv=0xbffffc40, flags=0, arg_index=0x0, user_data=0x8051ab0)
    at gnome-parse.c:137
#20 0x4004df9e in gnome_init_with_data (app_id=0x804face "Terminal", 
    app_args=0x80514fc, argc=3, argv=0xbffffc40, flags=0, arg_index=0x0, 
    user_data=0x8051ab0) at gnome-init.c:277
#21 0x804edc1 in main (argc=3, argv=0xbffffc40, environ=0xbffffc50)
    at gnome-terminal.c:1694
(gdb) sharedlibrary libgdk.*
Reading symbols from /opt/gnome/lib/libgdk_imlib.so.1...done.
Reading symbols from /opt/gnome/lib/libgdk-1.1.so.3...done.
(gdb) sharedlibrary libgdk.*[1@t
Reading symbols from /opt/gnome/lib/libgtk-1.1.so.3...done.
(gdb) bt
#0  0x402b3c48 in ?? () from /usr/X11R6/lib/libX11.so.6
#1  0x402b3c16 in ?? () from /usr/X11R6/lib/libX11.so.6
#2  0x40299c96 in ?? () from /usr/X11R6/lib/libX11.so.6
#3  0x402996f7 in ?? () from /usr/X11R6/lib/libX11.so.6
#4  0x40256c26 in gdk_key_repeat_restore () at gdk.c:1611
#5  0x40257ead in gdk_exit_func () at gdk.c:2852
#6  0x4039e585 in ?? () from /lib/libc.so.6
#7  0x40255f34 in gdk_set_locale () at gdk.c:618
#8  0x40258053 in gdk_signal (sig_num=1) at gdk.c:2991
#9  0xbfffe7b4 in ?? ()
#10 0x402cc3b1 in ?? () from /usr/X11R6/lib/libX11.so.6
#11 0x402ccd39 in ?? () from /usr/X11R6/lib/libX11.so.6
#12 0x402b49ff in ?? () from /usr/X11R6/lib/libX11.so.6
#13 0x402ac84e in ?? () from /usr/X11R6/lib/libX11.so.6
#14 0x400a48cc in gdk_imlib_init () at misc.c:173
#15 0x4004dd5f in our_gtk_parse_func (key=16777220, arg=0x0, state=0xbffffb58)
    at gnome-init.c:128
#16 0x4034b5c7 in group_parse (group=0x8060f58, state=0xbffffb58, 
    key=16777220, arg=0x0) at argp-parse.c:276
#17 0x4034bd65 in parser_finalize (parser=0xbffffb3c, err=7, arg_ebadkey=1, 
    end_index=0x0) at argp-parse.c:670
#18 0x4034c206 in argp_parse (argp=0x80514fc, argc=3, argv=0xbffffc40, 
    flags=0, end_index=0x0, input=0x8051ab0) at argp-parse.c:929
#19 0x403400ef in gnome_parse_arguments_with_data (parser=0x80514fc, argc=3, 
    argv=0xbffffc40, flags=0, arg_index=0x0, user_data=0x8051ab0)
    at gnome-parse.c:137
#20 0x4004df9e in gnome_init_with_data (app_id=0x804face "Terminal", 
    app_args=0x80514fc, argc=3, argv=0xbffffc40, flags=0, arg_index=0x0, 
    user_data=0x8051ab0) at gnome-init.c:277
#21 0x804edc1 in main (argc=3, argv=0xbffffc40, environ=0xbffffc50)
    at gnome-terminal.c:1694
(gdb) [duncan@localhost duncan]$ exit

Script done on Tue Nov  3 21:22:07 1998



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]