[Pkg-acpi-devel] Bug#579988: acpitool: segfault when battery.patch is applied
Patrice Dumas
pertusus at free.fr
Sun May 2 20:52:00 UTC 2010
Package: acpitool
Version: 0.5.1-1
Severity: important
When I start the debian acpitool, without argument, I get an immediate
segfault. Upstream pristine acpitool doesn't segfault. It segfaults after
applying battery.patch.
Here is the backtrace (when only battery.patch is applied, not the
other debian patch):
gdb) run
Starting program: /home/dumas/tmp/acpitool-0.5.1/src/acpitool
Program received signal SIGSEGV, Segmentation fault.
0xb7d9bf8a in _IO_vfscanf_internal (s=0xbffff328,
format=0x805cff5 "%*[^=] %*c %s %[^\n]",
argptr=0xbffff3f8 "T\367\377\277\026?", errp=0x0) at vfscanf.c:2743
2743 vfscanf.c: Aucun fichier ou dossier de ce type.
in vfscanf.c
Current language: auto
The current source language is "auto; currently c".
(gdb) bt
#0 0xb7d9bf8a in _IO_vfscanf_internal (s=0xbffff328,
format=0x805cff5 "%*[^=] %*c %s %[^\n]",
argptr=0xbffff3f8 "T\367\377\277\026?", errp=0x0) at vfscanf.c:2743
#1 0xb7daf8f1 in _IO_vsscanf (
string=0xbffff7b8 "POWER_SUPPLY_MODEL_NAME=DELL Y13386\n",
format=0x805cff5 "%*[^=] %*c %s %[^\n]",
args=0xbffff3f8 "T\367\377\277\026?") at iovsscanf.c:45
#2 0xb7d9f4cb in __sscanf (
s=0xbffff7b8 "POWER_SUPPLY_MODEL_NAME=DELL Y13386\n",
format=0x805cff5 "%*[^=] %*c %s %[^\n]") at sscanf.c:34
#3 0x08058e37 in Get_Battery_Info_from_Sys (bat_nr=1, batt_info=0x8061008,
verbose=0) at battery.cpp:658
#4 0x0805a436 in Do_Battery_Stuff (show_empty=0, info_level=0, verbose=0)
at battery.cpp:119
#5 0x0804e6ae in Print_ACPI_Info (show_ac=1, show_therm=1, show_trip=0,
show_fan=0, show_batteries=1, show_empty=0, show_version=0, show_cpu=0,
show_wake=0, e_set=0, info_level=0, verbose=0) at acpitool.cpp:117
#6 0x0804a439 in main (argc=1, argv=0xbffffb04) at main.cpp:237
My wild guess is that it is the space in the line of
/sys/class/power_supply/BAT0/uevent:
POWER_SUPPLY_MODEL_NAME=DELL Y13386
that causes the segfault.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages acpitool depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.2-9 GCC support library
ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3
Versions of packages acpitool recommends:
ii acpid 1:2.0.3-1 Advanced Configuration and Power I
acpitool suggests no packages.
-- no debconf information
More information about the Pkg-acpi-devel
mailing list