On Mon, Aug 24, 2009 at 2:29 PM, Daniel Baumann <dan...@debian.org> wrote:

> [...]
> a strace and probably gdb output would be useful.
>

Here is, strace:

--- strace ---

[...@debian] ~ $ strace acpitool -B
execve("/usr/bin/acpitool", ["acpitool", "-B"], [/* 40 vars */]) = 0
brk(0)                                  = 0x91ca000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb8087000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/i686/sse2/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/tls/i686/sse2/cmov", 0xbfd32c60) = -1 ENOENT (No such file
or directory)
open("/usr/lib/tls/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/tls/i686/sse2", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/i686/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/tls/i686/cmov", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/tls/i686", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/sse2/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/tls/sse2/cmov", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/tls/sse2", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/tls/cmov", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/tls", 0xbfd32c60)      = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/sse2/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/i686/sse2/cmov", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/i686/sse2", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/i686/cmov", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/sse2/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/sse2/cmov", 0xbfd32c60) = -1 ENOENT (No such file or
directory)
open("/usr/lib/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/sse2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/cmov/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/cmov", 0xbfd32c60)     = -1 ENOENT (No such file or
directory)
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360i\4\0004\0\0\0\364"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=954532, ...}) = 0
mmap2(NULL, 979852, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7f97000
mmap2(0xb807b000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe4) = 0xb807b000
mmap2(0xb8080000, 25484, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb8080000
close(3)                                = 0
open("/usr/lib/i686/cmov/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/sse2/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libm.so.6", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=107746, ...}) = 0
mmap2(NULL, 107746, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f7c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/i686/cmov/libm.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`4\0\0004\0\0\0d"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=149388, ...}) = 0
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7f56000
mmap2(0xb7f7a000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb7f7a000
close(3)                                = 0
open("/usr/lib/i686/cmov/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib/i686/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/sse2/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P#\0\0004\0\0\0p"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=171216, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f55000
mmap2(NULL, 174280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7f2a000
mmap2(0xb7f54000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29) = 0xb7f54000
close(3)                                = 0
open("/usr/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0i\1\0004\0\0\0\370"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1425856, ...}) = 0
mmap2(NULL, 1435216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7dcb000
mprotect(0xb7f23000, 4096, PROT_NONE)   = 0
mmap2(0xb7f24000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158) = 0xb7f24000
mmap2(0xb7f27000, 9808, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f27000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7dca000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dca6d0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\257\352\0271"..., 4)          = 4
close(3)                                = 0
mprotect(0xb7f24000, 8192, PROT_READ)   = 0
mprotect(0xb7f7a000, 4096, PROT_READ)   = 0
mprotect(0xb807b000, 16384, PROT_READ)  = 0
mprotect(0xb80a6000, 4096, PROT_READ)   = 0
munmap(0xb7f7c000, 107746)              = 0
brk(0)                                  = 0x91ca000
brk(0x91eb000)                          = 0x91eb000
open("/proc/acpi/info", O_RDONLY|O_LARGEFILE) = 3
open("/sys/module/acpi/parameters/acpica_version", O_RDONLY|O_LARGEFILE) = 4
read(3, "version:                 20090320"..., 8191) = 34
close(3)                                = 0
close(4)                                = 0
open("/proc/acpi/battery/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
open("/sys/class/power_supply/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(3, F_GETFD)                     = 0x1 (flags FD_CLOEXEC)
open("/sys/class/power_supply/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents(4, /* 4 entries */, 4096)      = 64
getdents(4, /* 0 entries */, 4096)      = 0
close(4)                                = 0
close(3)                                = 0
open("/sys/class/power_supply/BAT0/type", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f96000
read(3, "Battery\n"..., 4096)           = 8
close(3)                                = 0
munmap(0xb7f96000, 4096)                = 0
open("/sys/class/power_supply/AC/type", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f96000
read(3, "Mains\n"..., 4096)             = 6
close(3)                                = 0
munmap(0xb7f96000, 4096)                = 0
open("/sys/class/power_supply/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("/sys/class/power_supply/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents(4, /* 4 entries */, 4096)      = 64
getdents(4, /* 0 entries */, 4096)      = 0
close(4)                                = 0
open("/sys/class/power_supply/BAT0/type", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f96000
read(4, "Battery\n"..., 4096)           = 8
close(4)                                = 0
munmap(0xb7f96000, 4096)                = 0
open("/sys/class/power_supply/AC/type", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f96000
read(4, "Mains\n"..., 4096)             = 6
close(4)                                = 0
munmap(0xb7f96000, 4096)                = 0
close(3)                                = 0
open("/sys/class/power_supply/BAT0/uevent", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f96000
read(3, "POWER_SUPPLY_NAME=BAT0\nPOWER_SUPP"..., 4096) = 448
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

------

And here gdb:

--- gdb ---

(gdb) r -B
Starting program: /usr/bin/acpitool -B
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xb7c8aa6f in _IO_vfscanf () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7c8aa6f in _IO_vfscanf () from /lib/i686/cmov/libc.so.6
#1  0xb7c9f541 in vsscanf () from /lib/i686/cmov/libc.so.6
#2  0xb7c8e3bb in sscanf () from /lib/i686/cmov/libc.so.6
#3  0x0805a653 in ?? ()
#4  0x0805bb1f in ?? ()
#5  0x0804e379 in ?? ()
#6  0x0804a464 in ?? ()
#7  0xb7c547a5 in __libc_start_main () from /lib/i686/cmov/libc.so.6
#8  0x08049af1 in ?? ()
(gdb)

------

Ignacio.

Reply via email to