From: bert hubert <ahu@ds9a.nl>
To: pavel@suse.cz
Cc: linux-kernel@vger.kernel.org
Subject: swsusp in 2.5.53 BUG on kernel/suspend.c line 718
Date: Fri, 27 Dec 2002 15:20:33 +0100 [thread overview]
Message-ID: <20021227142032.GA6945@outpost.ds9a.nl> (raw)
Hi!
I wanted to try software suspend again in Linux as 2.5 is doing almost
everything pretty well for me already.
I boot my uniprocessor Pentium III laptop with:
kernel (hd0,0)/boot/vmlinuz-2.5.53 root=/dev/hda1 resume=/dev/hda2
# swapon -s
Filename Type Size Used Priority
/dev/hda2 partition 489972 0 -1
$ cat /proc/meminfo
MemTotal: 191240 kB
When I suspend, things proceed swimmingly, I see a lot of dots printed and
processes entering the refrigerator, until line 718 is hit in
kernel/suspend.c:
if (nr_copy_pages != count_and_copy_data_pages(pagedir_nosave)) /* copy */
BUG();
When I aded some printks, it turns out that count_and_copy_data pages
returns 5440 (decimal) and that nr_copy_pages is 5458, 18 more. Before this
function is called, the address c034c000 was printed twice prefixed with
'nosave', once during each call of count_and_copy_data_pages it appears.
So it appears some pages were freed in the critical section!
Another interesting note is that pdflush reported 'Bogus wakeup' twice
during the refrigeration phase. I also see two pdflushes running.
If I remove the BUG();, on resume it crashes on an unhandled NULL pointer,
the EIP is in a function aptly named do_magic() at +0x9e.
Compiler is gcc 3.2.1. Anything I can do to help, just let me know!
Regards,
bert
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
http://netherlabs.nl Consulting
next reply other threads:[~2002-12-27 14:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-27 14:20 bert hubert [this message]
2002-12-27 15:09 ` Pavel Machek
2002-12-27 18:34 ` bert hubert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021227142032.GA6945@outpost.ds9a.nl \
--to=ahu@ds9a.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®