As a naive workaround, the following simple patch would prevent division
by zero and SIGFPE:
int round_div(int num, int den)
{
-return (num + (den / 2)) / den;
+return den ? (num + (den / 2)) / den : 0;
}
Reported values now would be zeros, which is certainly wrong, but at
least the pr
It happens because of division by zero in round_div() function, here's a
backtrace from gdb:
Program received signal SIGFPE, Arithmetic exception.
0x08048cc4 in round_div (num=0, den=0) at rovclock.c:180
180 return (num + (den / 2)) / den;
Current language: auto; currently minimal
(gdb) b
just in-case anyone is interested, just installed on ubuntu mate;
Radeon overclock 0.6e by Hasw (h...@hasw.net)
Found ATI card on 01:00, device id: 0x6610
I/O base address: 0xce00
Video BIOS shadow found @ 0xc
Invalid reference clock from BIOS: 0.0 MHz
Memory size: 0 kB
Memory channels: 1, CD
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: rovclock (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/493220
Title:
Ro
I get floating point exceptions. Here is my info:
$ sudo rovclock -i
Radeon overclock 0.6e by Hasw (h...@hasw.net)
Found ATI card on 01:05, device id: 0x9612
I/O base address: 0x9000
Video BIOS shadow found @ 0xc
Invalid reference clock from BIOS: 0.0 MHz
Memory size: 0 kB
Memory channels: 0
Hi,
I also have a Radeon card and I don't get "floating-point exception".
Please note that I run Lucid with the default kernel and a more recent
rovclock version than yours. Maybe you could give to Lucid.
$ sudo rovclock -i
Radeon overclock 0.6e by Hasw (h...@hasw.net)
Found ATI card on 01:00, d
** Changed in: rovclock (Debian)
Status: Unknown => New
--
Rovclock crashes with floating-point exception
https://bugs.launchpad.net/bugs/493220
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-b
** Bug watch added: Debian Bug tracker #562625
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562625
** Also affects: rovclock (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562625
Importance: Unknown
Status: Unknown
--
Rovclock crashes with floating-point except
** Attachment added: "Dependencies.txt"
http://launchpadlibrarian.net/36501718/Dependencies.txt
** Attachment added: "XsessionErrors.txt"
http://launchpadlibrarian.net/36501719/XsessionErrors.txt
--
Rovclock crashes with floating-point exception
https://bugs.launchpad.net/bugs/493220
You