bubblemon-list
[Top][All Lists]
Advanced

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

[Bubblemon-list] Re: Another stack trace


From: Johan Walles
Subject: [Bubblemon-list] Re: Another stack trace
Date: Tue, 22 Oct 2002 08:29:13 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607

OK, now we are getting somewhere :-). The problem is that load has been measured and been found to be above 100%. That triggers an internal consistency check. That is where the following printout comes from:

** ERROR **: file gnome1-meter.c: line 145 (getCpuLoad): assertion failed: ((loadPercentage >= 0) && (loadPercentage <= 100))

I am about to change that logic to say that any load > 100% should be considered to be exactly 100%. This will resolve your problem.

However, I'd find it quite interesting to know exactly how much over 100% your load is measured to. I assume it's something like 103% due to some rounding error or other, but if it is like four million or something, just rounding it to 100% would seem a bit crude. Since the assertion says that it failed in function getCpuLoad, if you go do "frame 5" (because line #5 in the stack trace says "getCpuLoad") and then "info locals" in gdb, the exact percentage will be shown. If you can do that and e-mail me the result of "info locals", that would be very interesting.

  Cheers //Johan

Peter R. Thorsen Jr. wrote:
Johan,

Lets try this on for size...I got it running on the panel, it crashed
and here is the stack trace:

GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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"...
(gdb) run
Starting program: /usr/local/src/bubblemon-1.2.8/src/bubblemon-gnome1

** ERROR **: file gnome1-meter.c: line 145 (getCpuLoad): assertion failed: ((loadPercentage 
>= 0) && (loadPercentage <= 100))
aborting...

Program received signal SIGABRT, Aborted.
0x42029331 in kill () from /lib/i686/libc.so.6
(gdb) info stack
#0  0x42029331 in kill () from /lib/i686/libc.so.6
#1  0x4202911a in raise () from /lib/i686/libc.so.6
#2  0x4202a8c2 in abort () from /lib/i686/libc.so.6
#3  0x404ae09c in g_logv () from /usr/lib/libglib-1.2.so.0
#4  0x404ae147 in g_log () from /usr/lib/libglib-1.2.so.0
#5  0x0804b71e in getCpuLoad (currentCpu=0, nCpus=1) at gnome1-meter.c:145
#6  0x0804b7d6 in meter_getLoad (load=0x804e8a0) at gnome1-meter.c:175
#7  0x0804b344 in bubblemon_getPicture () at bubblemon.c:1051
#8  0x0804b8a6 in ui_update () at gnome1-ui.c:64
#9  0x0804b96b in ui_timeoutHandler (ignored=0x0) at gnome1-ui.c:103
#10 0x404ac691 in g_timeout_dispatch () from /usr/lib/libglib-1.2.so.0
#11 0x404ab773 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
#12 0x404abd39 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
#13 0x404abeec in g_main_run () from /usr/lib/libglib-1.2.so.0
#14 0x402632e3 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#15 0x40029fa7 in applet_widget_gtk_main () from /usr/lib/libpanel_applet.so.0
#16 0x0804be9a in ui_main (argc=1, argv=0xbffffbc4) at gnome1-ui.c:285
#17 0x0804b45b in main (argc=1, argv=0xbffffbc4) at bubblemon.c:1116
#18 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

Pete








reply via email to

[Prev in Thread] Current Thread [Next in Thread]