From nobody@FreeBSD.org  Wed Jan 12 18:16:02 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B24671065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jan 2011 18:16:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A10858FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jan 2011 18:16:02 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p0CIG21H070694
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jan 2011 18:16:02 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p0CIG2L7070693;
	Wed, 12 Jan 2011 18:16:02 GMT
	(envelope-from nobody)
Message-Id: <201101121816.p0CIG2L7070693@red.freebsd.org>
Date: Wed, 12 Jan 2011 18:16:02 GMT
From: Sebastian Chmielewski <chmielsster@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: system hangs while trying to do 'shutdown -h now' after resuming from ACPI suspend
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153935
>Category:       amd64
>Synopsis:       [hang] [suspend/resume] system hangs while trying to do 'shutdown -h now' after resuming from ACPI suspend
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 12 18:20:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Tue Apr 22 05:26:09 UTC 2014
>Originator:     Sebastian Chmielewski
>Release:        8.0-RELEASE, 8.1-RELEASE, 8.2-PRERELEASE (-stable)
>Organization:
>Environment:
FreeBSD chulak.pl 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Tue Jan 11 19:41:19 CET 2011     root@chulak.pl:/disk0/obj/usr/src/sys/LAPTOP  amd64
T5500 Dual Core 2 CPU (ASUS F3F Laptop)

>Description:
Systems hangs displaying message:

The operating system has halted.

Please press any key to reboot.



Rebooting...

cpu_reset: Stopping other CPUs

when shutdown -h now is used to switch off the system after resuming from ACPI suspend.

I've tried to debug this issue but setting break at 'generic_stop_cpus' by using gdb seems to be impossible:

cpu_reset: Stopping other CPUs



Fatal double fault

rip = 0xffffffff803e7cf0

rsp = 0xffffff8000023018

rbp = 0xffffff8000023050

cpuid = 0; apic id = 00

panic: double fault

cpuid = 0

KDB: stack backtrace:

#0 0xffffffff803dd2be at kdb_backtrace+0x5e

#1 0xffffffff803a97d7 at panic+0x187

#2 0xffffffff80645694 at dblfault_handler+0xa4

#3 0xffffffff8062d7ed at Xdblfault+0xad

KDB: enter: panic

System does not hang when 'Poweroff' button is pressed (except the case when pressing the button is not working, this is why 'shutdown -h now' is used)


>How-To-Repeat:
- power on
- use command 'zzz' or Fn+F1 hotkey to suspend the system
- resume 
- use command 'shutdown -h now'
- system hangs with message posted above
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
