[Pkg-acpi-devel] Bug#502704: Bug#502704: Bug#502704: Bug#502704: acpid is
Derrick Karpo
dkarpo at gmail.com
Fri Oct 31 04:27:47 UTC 2008
On Thu, Oct 30, 2008 at 3:29 AM, Loïc Minier <lool at dooz.org> wrote:
> Hi Derrick,
>
> Could you please edit /etc/init.d/acpid as root, and change the
> "set -e" into:
>
> set -e
> set -x
> initlogfile="$(mktemp -t acpid.init.XXXXXXXX)"
> exec 2>"$initlogfile"
>
> This will record the execution of acpid's init script to a log file in
> /tmp.
>
> Please send us the resulting /tmp/acpid.init.* files after:
> - reboot (where you report acpid doesn't startup)
> - /etc/init.d/acpid restart (where you report acpid starts up)
>
> Thanks,
> --
> Loïc Minier
>
Hello.
I've attached both the temp files for your interest where you can see
that the modprobe stalls. Putting an strace wrapper around
/etc/init.d/acpid shows that the modprobe quits with exit_group(1) on
boot but once the system is running it runs clean with the usually
"WARNING" for non-existent modules.
Just to recount and answer some of Michael's questions, none of the
acpid modules exist in this test as they are all compiled in. If all
acpi modules are compiled into the kernel then the acpid fails to
start at boot. If they are left as modules then acpid successfully
starts at boot. With "2>/dev/null" removed there is no more useful
information on boot but manually running the script post-boot will
show the modprobe warnings that the modules don't exist.
Derrick
Here's the strace output at boot:
4435 open("/lib/modules/2.6.27.1/modules.alias",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a
directory)
4435 open("/lib/modules/2.6.27.1/modules.alias", O_RDONLY) = 3
4435 fstat(3, {st_mode=S_IFREG|0644, st_size=37219, ...}) = 0
4435 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa83e54f000
4435 read(3, "# Aliases extracted from modules "..., 4096) = 4096
4435 read(3, "nd_usb_audio\nalias usb:v0582p0012"..., 4096) = 4096
4435 read(3, "isc*ip* snd_usb_audio\nalias usb:v"..., 4096) = 4096
4435 read(3, "c*i* snd_hda_intel\nalias pci:v000"..., 4096) = 4096
4435 read(3, "ipv4\nalias nf_conntrack-2 nf_conn"..., 4096) = 4096
4435 read(3, "001002d00007835sv*sd*bc*sc*i* rad"..., 4096) = 4096
4435 read(3, "ia:m*c*f*fn01pfn*pa8FDF8F89pbDD5E"..., 4096) = 4096
4435 read(3, "rial_cs\nalias pcmcia:m*c*f*fn*pfn"..., 4096) = 4096
4435 read(3, "0e\nalias pci:v00008086d0000104Asv"..., 4096) = 4096
4435 read(3, "0* intel_agp\nalias pci:v00008086d"..., 4096) = 355
4435 read(3, ""..., 4096) = 0
4435 close(3) = 0
4435 munmap(0x7fa83e54f000, 4096) = 0
4435 exit_group(1) = ?
4406 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0,
NULL) = 4435
4406 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
4406 --- SIGCHLD (Child exited) @ 0 (0) ---
4406 wait4(-1, 0x7fff716aae44, WNOHANG, NULL) = -1 ECHILD (No child processes)
4406 rt_sigreturn(0x8) = 0
4406 rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0
4406 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
4406 exit_group(1) = ?
Here's the strace output once acpid has been manually started post boot:
5260 open("/lib/modules/2.6.27.1/modules.alias",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a
directory)
5260 open("/lib/modules/2.6.27.1/modules.alias", O_RDONLY) = 3
5260 fstat(3, {st_mode=S_IFREG|0644, st_size=37219, ...}) = 0
5260 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2256999000
5260 read(3, "# Aliases extracted from modules "..., 4096) = 4096
5260 read(3, "nd_usb_audio\nalias usb:v0582p0012"..., 4096) = 4096
5260 read(3, "isc*ip* snd_usb_audio\nalias usb:v"..., 4096) = 4096
5260 read(3, "c*i* snd_hda_intel\nalias pci:v000"..., 4096) = 4096
5260 read(3, "ipv4\nalias nf_conntrack-2 nf_conn"..., 4096) = 4096
5260 read(3, "001002d00007835sv*sd*bc*sc*i* rad"..., 4096) = 4096
5260 read(3, "ia:m*c*f*fn01pfn*pa8FDF8F89pbDD5E"..., 4096) = 4096
5260 read(3, "rial_cs\nalias pcmcia:m*c*f*fn*pfn"..., 4096) = 4096
5260 read(3, "0e\nalias pci:v00008086d0000104Asv"..., 4096) = 4096
5260 read(3, "0* intel_agp\nalias pci:v00008086d"..., 4096) = 355
5260 read(3, ""..., 4096) = 0
5260 close(3) = 0
5260 munmap(0x7f2256999000, 4096) = 0
5260 write(2, "WARNING: Module battery not found"..., 35) = 35
5260 open("/etc/modprobe.conf",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
5260 open("/etc/modprobe.conf", O_RDONLY) = -1 ENOENT (No such file
or directory)
5260 open("/etc/modprobe.d", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
5260 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
5260 getdents(3, /* 14 entries */, 4096) = 448
5260 open("/etc/modprobe.d/aliases",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOTDIR (Not a
directory)
5260 open("/etc/modprobe.d/aliases", O_RDONLY) = 4
5260 fstat(4, {st_mode=S_IFREG|0644, st_size=4619, ...}) = 0
5260 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2256999000
5260 read(4, "# These are the standard aliases "..., 4096) = 4096
5260 read(4, "char-major-241-* hsfserial\n\n# mis"..., 4096) = 523
5260 read(4, ""..., 4096) = 0
5260 close(4) = 0
...
...
...
<snip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp.acpid.init.at.boot
Type: application/octet-stream
Size: 1723 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20081030/5477df84/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp.acpid.init.post.boot
Type: application/octet-stream
Size: 3715 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20081030/5477df84/attachment-0001.obj
More information about the Pkg-acpi-devel
mailing list