[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200812162206.53744.rjw@sisk.pl>
Date: Tue, 16 Dec 2008 22:06:53 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Alan Jenkins <alan-jenkins@...fmail.co.uk>
Cc: "linux-kernel" <linux-kernel@...r.kernel.org>,
linux-pm@...ts.linux-foundation.org
Subject: Re: hibernation bug - swap goes AWOL
On Tuesday, 16 of December 2008, Alan Jenkins wrote:
> This is on 2.6.27-rc9. I can easily test patches, or a more recent
> kernel version.
>
> I think I've run across a bug in hibernation. Steps to reproduce:
>
> 1) Conspire to ensure insufficient swap space for hibernation
> 2) Attempt to hibernate, and fail
> 3) Attempt to hibernate *again*, and fail
> 4) try swapoff
> Outcome:
>
> # swapoff /dev/sda6
> swapoff: /dev/sda6: Invalid argument
> # cat /proc/swaps
> Filename Type Size Used
> Priority
> /dev/sda6 partition 1494004 1350564 -1
>
> Incidentally "swapoff -a" fails silently, which I think is a bug in
> swapoff (i.e. it should report the error).
>
> I don't see any backtraces in dmesg; the only errors it shows is the
> failure to hibernate
>
> If I free up some memory and try to hibernate again, I get a different
> error - "Cannot find swap device, try swapon -a.". Now swapon -a
> doesn't work, but if I target the specific device...
>
> # swapon /dev/sda6
> # cat /proc/swaps
> Filename Type Size Used
> Priority
> /dev/sda6 partition 1494004 331060 -1
> /dev/sda6 partition 1494004 0 -2
>
> Wheee! Interestingly I can now hibernate and resume. But it's not
> safe; my desktop session dies horribly.
Well, I'm not sure if the bug is in the hibernate code or in the swap code.
Anyway, please file a bugzilla report about that.
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists