gkrellm: Floating point exception during startup
"Malte J. Wetz" <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gkrellm |
|---|---|
| Message-ID | <[email protected]> |
Hi there!
I was using gkrellm on my new netbook (Lenovo Ideapad S10) for a few
days without problems but lately, it refuses to start and instead
displays a xmessage:
gkrellm floating point exception: (initializing)
The same string plus an addional "Aborted" is printed to stdout. This
message is not particularly helpful so I do not really know what might
be the problem.
I used 'strace' to inspect the problem and attached the relevant part
of the log below. It appears that the exception occurs after gkrellm
tried to read /sys/class/power_supply/BAT0/charge_now.
That pseudo-file is readable, however:
,----
| user@aegir:~$ cat /sys/class/power_supply/BAT0/charge_now
| 1630000
`----
I moved ~/.gkrellm2 away in case of configuration problems but it did
not solve the problem. Other than that, I made no changes to the
original program as it came with my distribution (Xubuntu 8.10). I use
a self-compiled kernel 2.6.28.6 but the default distro kernel has the
same problem.
The last thing I did before gkrellm stopped working (though I do not
know if there's a connection) was to use xrandr to switch from 1024x576
(default resolution of my netbook display) to 1280x1024 for an attached
external monitor for presentation purposes. The internal display only
showed a portion of that screen and gkrellm (as other apps) was
slightly confused about that.
The battery seems to be ok, I tested it and it provides an idle time of
about 6 hours.
Does anyone know this error or have an idea how I can narrow down the
cause of it?
Thanks in advance,
Malte
Here's the strace-log:
<------------ snip ------------->
open("/sys/class/power_supply/BAT0/present", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7269000 read(8, "1\n", 4096) = 2
close(8) = 0
munmap(0xb7269000, 4096) = 0
open("/sys/class/power_supply/BAT0/charge_full", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7269000 read(8, "0\n", 4096) = 2
close(8) = 0
munmap(0xb7269000, 4096) = 0
open("/sys/class/power_supply/BAT0/charge_now", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7269000 read(8, "4522000\n", 4096) = 8
close(8) = 0
munmap(0xb7269000, 4096) = 0
--- SIGFPE (Floating point exception) @ 0 (0) ---
fstat64(1, {st_mode=S_IFREG|0644, st_size=110540, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7269000 pipe([8, 9]) = 0
pipe([10, 11]) = 0
clone(Process 6459 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb72ce748) = 6459 [pid 6453] close(9)
= 0 [pid 6453] close(11) = 0
[pid 6453] waitpid(6459, Process 6453 suspended
<unfinished ...>
<------------ snap ------------->
______________________________________________
Gkrellm mailing list
[email protected]
Read archives-join-leave-set RSS feed:
http://archive.lists.netservicesgroup.com
This service is provided by The Network Services Group:
http://www.netservicesgroup.com