Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262625 - sys-kernel/gentoo-sources-2.6.*: fails to suspend when fileshares are unreachable
Summary: sys-kernel/gentoo-sources-2.6.*: fails to suspend when fileshares are unreach...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-16 05:47 UTC by Jeremy Murphy
Modified: 2011-04-05 05:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg (failed_to_suspend,192.38 KB, text/plain)
2009-03-17 05:43 UTC, Jeremy Murphy
Details
Latest dmesg (suspend_crash_2,213.77 KB, text/plain)
2009-12-17 11:53 UTC, Jeremy Murphy
Details
dmesg, 2.6.32, failed suspend (dmesg_suspend_crash_32,257.74 KB, text/plain)
2010-01-28 10:34 UTC, Jeremy Murphy
Details
dmesg from 2.6.32, but only 1 task failed to freeze (dmesg_suspend_crash_32b,199.74 KB, text/plain)
2010-01-28 10:35 UTC, Jeremy Murphy
Details
2.6.32-r1, nohz=off, highres=off, dmesg and pm-suspend.log (32_nohz_highres_a.tar.bz2,30.68 KB, text/plain)
2010-02-18 01:00 UTC, Jeremy Murphy
Details
2.6.32-r1, nohz=off, highres=off, dmesg and pm-suspend.log (32_nohz_highres_b.tar.bz2,38.04 KB, text/plain)
2010-02-18 01:00 UTC, Jeremy Murphy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Murphy 2009-03-16 05:47:22 UTC
Using pm-suspend from sys-power/pm-utils, my laptop suspends fine until about the tenth time, and then it fails to suspend, returning to the system after several tremulous seconds.

Reproducible: Sometimes

Steps to Reproduce:
1. pm-suspend
2. turn system back on
3. goto 1. until suspend fails

Actual Results:  
System continues to run (apparently fine).

Expected Results:  
System goes into sleep/suspend mode.

Portage 2.1.6.8 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r9 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r9-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
Timestamp of tree: Sun, 15 Mar 2009 20:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo "
LC_ALL="en_AU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt curl dbus dga dirac djvu dri dts dv dvb dvd dvdr dvdread emboss encode expat fam ffmpeg fftw firefox flac fontconfig fortran gdbm gif gnome gnutls gpm graphviz gstreamer gtk hal iconv ieee1394 imagemagick imlib ipv6 isdnlog java java6 javascript jpeg kde kqemu laptop ldap libnotify lirc lzo mad matroska midi mikmod mmap mmx mng mp3 mpeg mplayer mudflap ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pch pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sharedmem sndfile spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd theora threads tiff truetype unicode usb vorbis wifi win32codecs wmf wxwindows x86 xcb xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Murphy 2009-03-16 05:51:30 UTC
I just tried to attach the dmesg output, but it failed, perhaps due to using the backup server, so I'll wait and try again tomorrow or something.  Or I could paste it into a comment, but it's pretty long, ~200 kB.
Comment 2 Jeremy Murphy 2009-03-17 05:43:49 UTC
Created attachment 185282 [details]
dmesg
Comment 3 Mike Pagano gentoo-dev 2009-03-24 16:33:19 UTC
Have you tested with a gentoo-sources-2.6.28-r4
Comment 4 Jeremy Murphy 2009-03-24 23:18:13 UTC
(In reply to comment #3)
> Have you tested with a gentoo-sources-2.6.28-r4
> 

No, but I expect it will be the same result as other 2.6.28 kernels.  See bug #257487.  I can't test with 2.6.29 yet because x11-drivers/ati-drivers is not compatible with it yet.  I just updated to 2.6.27-r10, so I'll see how that goes.
Comment 5 Jeremy Murphy 2009-03-27 02:28:11 UTC
Haven't experienced this bug after a few days of suspending and resuming, so it's looking good!  I didn't get around to creating a script to actually keep count, so I'll just wait a few more days before I close this bug.
Comment 6 George Kadianakis (RETIRED) gentoo-dev 2009-04-11 00:10:47 UTC
(In reply to comment #5)
> Haven't experienced this bug after a few days of suspending and resuming, so
> it's looking good!  I didn't get around to creating a script to actually keep
> count, so I'll just wait a few more days before I close this bug.
> 

So, Jeremy, how is it going? 2.6.27-r10 did the trick?
Comment 7 Jeremy Murphy 2009-04-11 00:57:43 UTC
(In reply to comment #6)
> 
> So, Jeremy, how is it going? 2.6.27-r10 did the trick?
> 

I _think_ so.  I have the vague feeling that it may have happened once since I upgraded to 27-r10, but that's nothing compared to what was happening before.  Anyway, I'll close it for now, and reopen it in the future if needs be.
Comment 8 Jeremy Murphy 2009-12-17 11:51:38 UTC
I'm presume that this is the same bug, so I'm reopening it and changing the summary to reflect what I now know.

The bad news is that it still exists.  The good news is that I think I know why!

My laptop has a couple of network fileshares mapped that are shared from my desktop.  If my desktop is switched off and the laptop still has the shares mapped, then it is much more likely (though not certain) to fail to suspend.

So that's where the problem seems to be, but it's difficult to be certain.
I guess my next question is whether that is actually normal behaviour!  Should a system suspend if there is a problem with fileshares?  Maybe.  Anyway, there is clearly a bug in this case, because dmesg is filled with call traces.
Comment 9 Jeremy Murphy 2009-12-17 11:53:20 UTC
Created attachment 213287 [details]
Latest dmesg
Comment 10 George Kadianakis (RETIRED) gentoo-dev 2010-01-12 14:42:51 UTC
Jeremy,

have you tried the latest development gentoo-sources release (2.6.32-r1)?
Does the problem persist there too?
Comment 11 Jeremy Murphy 2010-01-28 10:31:28 UTC
(In reply to comment #10)
> Jeremy,
> 
> have you tried the latest development gentoo-sources release (2.6.32-r1)?
> Does the problem persist there too?
> 

Yes, I have, same problem.  :(
Comment 12 Jeremy Murphy 2010-01-28 10:34:05 UTC
Created attachment 217709 [details]
dmesg, 2.6.32, failed suspend
Comment 13 Jeremy Murphy 2010-01-28 10:35:14 UTC
Created attachment 217711 [details]
dmesg from 2.6.32, but only 1 task failed to freeze
Comment 14 Mike Pagano gentoo-dev 2010-02-04 17:23:57 UTC
Can you please add kernel parameters nohz=off highres=off to your grub line for kernel 2.6.32 and test to see if the failure occurs?

Comment 15 Jeremy Murphy 2010-02-18 01:00:27 UTC
Created attachment 220123 [details]
2.6.32-r1, nohz=off, highres=off, dmesg and pm-suspend.log

Still crashing.  Is this debugging output actually helpful?  Are there any other kernel debugging options that I can enable to make it more helpful?
Comment 16 Jeremy Murphy 2010-02-18 01:00:55 UTC
Created attachment 220125 [details]
2.6.32-r1, nohz=off, highres=off, dmesg and pm-suspend.log
Comment 17 Mike Pagano gentoo-dev 2010-02-18 01:13:45 UTC
This does not appear to be from 2.6.32, can you test with vanilla-sources-2.6.32.8

Linux version 2.6.31-gentoo-r6 (root@nx8220) (gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) ) #4 Thu Feb 4 11:06:24 EST 2010
KERNEL supported cpus:
  Intel GenuineIntel
Comment 18 Jeremy Murphy 2010-02-18 01:14:32 UTC
Whoops.  :)
Comment 19 Jeremy Murphy 2010-02-18 01:16:21 UTC
Actually, I 'whoopsed' too soon... a is from .32, but yes, b was accidentally .31.
Comment 20 Mike Pagano gentoo-dev 2010-02-18 01:41:55 UTC
Ok, try with the latest vanilla, and if that fails, please test with the atest development kernel, which is git-sources-2.6.33_rc8-r3 as of this writing.
Comment 21 Jeremy Murphy 2010-02-18 02:00:28 UTC
Hi Mike,

umm, with all due respect, is there any reason why it would actually be different in the next version?  As you can see from the history of this bug, when I reported it about 2.6.27 you said "Have you tried 2.6.28?"  So although I appreciate that bug reports are most relevant when they pertain to the latest version, I don't have much faith in the bug magically disappearing in 2.6.n+1.

So, I will go ahead and test with 2.6.28.8, but is there something more focused that we can do?  I can't risk running release candidate kernels, sorry.
Comment 22 Jeremy Murphy 2010-02-18 07:12:49 UTC
PS. Should I keep using nohz=off and highres=off for testing?
Comment 23 Mike Pagano gentoo-dev 2010-02-18 12:04:11 UTC
Yes, you should take this upstream at http://bugzilla.kernel.org
Comment 24 Jeremy Murphy 2011-04-05 05:46:38 UTC
Finally bothered to find the upstream bug.