Re: [PATCH] (repost) Fix SMP poweroff hangs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Santiago Garcia Mantinan
Date: Sunday, September 30, 2007 - 1:03 pm

I booted into single mode, then umounted all unneeded stuff and put / to ro,
stopped all unused raids, ... then did...


Nope, it didn't and what was curious was that I was left at the bash prompt
:-?


I tried this and I did the strace with a -o to get the output on a remote
cifs fs, here is the full trace:

execve("/sbin/halt", ["/sbin/halt", "-f", "-p"], [/* 16 vars */]) = 0
brk(0)                                  = 0x804b000
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) = 0xb7f29000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52448, ...}) = 0
mmap2(NULL, 52448, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f1c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/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\260a\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1335536, ...}) = 0
mmap2(NULL, 1340944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dd4000
mmap2(0xb7f16000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x142) = 0xb7f16000
mmap2(0xb7f19000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f19000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dd3000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dd36b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f16000, 4096, PROT_READ)   = 0
munmap(0xb7f1c000, 52448)               = 0
geteuid32()                             = 0
chdir("/")                              = 0
open("/var/log/wtmp", O_WRONLY|O_APPEND) = -1 EROFS (Read-only file system)
sync()                                  = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, {2, 0})               = 0
reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART|0x88888888) = 0
kill(1, SIGTSTP)                        = 0
reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_POWER_OFF <unfinished ... exit status 0>

Same output on the screen as I commented before, again I got to the shell
and this time I even typed some commands like ps and amazingly they still
worked, even though this was supposed to be halted.

Hope that helps.
-- 
Manty/BestiaTester -> http://manty.net
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problems with SMP &amp; ACPI powering off, Mark Lord, (Thu Sep 27, 2:29 pm)
Re: Problems with SMP &amp; ACPI powering off, Mark Lord, (Thu Sep 27, 2:30 pm)
Re: Problems with SMP &amp; ACPI powering off, Rafael J. Wysocki, (Thu Sep 27, 3:00 pm)
Re: Problems with SMP &amp; ACPI powering off, Mark Lord, (Thu Sep 27, 4:07 pm)
Re: Problems with SMP &amp; ACPI powering off, Len Brown, (Thu Sep 27, 9:57 pm)
Re: Problems with SMP &amp; ACPI powering off, Rafael J. Wysocki, (Fri Sep 28, 5:55 am)
Re: Problems with SMP &amp; ACPI powering off, Mark Lord, (Fri Sep 28, 6:22 am)
Re: Problems with SMP &amp; ACPI powering off, Rafael J. Wysocki, (Fri Sep 28, 6:44 am)
Re: Problems with SMP &amp; ACPI powering off, Mark Lord, (Fri Sep 28, 6:46 am)
[PATCH] disable non-boot CPUs before poweroff, Mark Lord, (Fri Sep 28, 6:52 am)
Re: [PATCH] disable non-boot CPUs before poweroff, Mark Lord, (Fri Sep 28, 7:11 am)
Re: [PATCH] disable non-boot CPUs before poweroff, Thomas Gleixner, (Fri Sep 28, 7:55 am)
Re: [PATCH] disable non-boot CPUs before poweroff, Thomas Gleixner, (Fri Sep 28, 8:02 am)
Re: [PATCH] disable non-boot CPUs before poweroff, Rafael J. Wysocki, (Fri Sep 28, 8:05 am)
[PATCH] (repost) Fix SMP poweroff hangs, Mark Lord, (Fri Sep 28, 12:53 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Santiago Garcia Mantinan, (Sun Sep 30, 2:00 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Mark Lord, (Sun Sep 30, 10:21 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Santiago Garcia Mantinan, (Sun Sep 30, 10:54 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Mark Lord, (Sun Sep 30, 11:47 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Santiago Garcia Mantinan, (Sun Sep 30, 1:03 pm)
Re: 32-bit Athlon X2 won't poweroff , Mark Lord, (Sun Sep 30, 3:56 pm)
Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP powero ..., Santiago Garcia Mantinan, (Mon Oct 1, 9:19 am)
Re: 32-bit Athlon X2 won't poweroff , Mark Lord, (Mon Oct 1, 9:37 am)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Rafael J. Wysocki, (Mon Oct 1, 1:05 pm)
Re: [PATCH] (repost) Fix SMP poweroff hangs, Santiago Garcia Mantinan, (Mon Oct 1, 3:38 pm)