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
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)
By reading ubuntu-system-settings/trunk/plugins/language/language-
plugin.cpp source code, it appears that this rather common problem
(preferred en_US locale and 24-hour military clock) happens because
selected language (translated to locale) is assigned *both* to the
Language and FormatsLocale of
Totally agree with @jezra on this; it's indeed very annoying and
actually prevents me from doing into development mode on my Ubuntu Touch
phone. Since currently adb push/pull is the easiest file transfer
method (with non-working file sharing via Bluetooth and ssh/scp
requiring WiFi connection