Package: acpi Version: 0.09-6 Severity: normal acpi dies with a floating point exception on my computer:
[EMAIL PROTECTED]:~$ acpi Floating point exception Running it in gdb reveals that it's dividing by zero at line 121 of acpi.c: (gdb) run Starting program: /tmp/acpi-0.09/acpi Battery 1: Discharging, 37%, 00:00:29 remaining Program received signal SIGFPE, Arithmetic exception. 0x0804987b in print_battery_information (batteries=0x84bb158, show_empty_slots=0) at acpi.c:393 393 seconds = 60 * remaining_capacity / present_rate; present_rate is zero, hence the floating point exception. I patched the code to print " (not actually discharging)" when present_rate is zero, and the crash went away. Daniel -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages acpi depends on: ii libc6 2.7-12 GNU C Library: Shared libraries acpi recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]