Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300975 - gentoo-sources 2.6.31-r6: reboot and poweroff not working
Summary: gentoo-sources 2.6.31-r6: reboot and poweroff not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.31,linux-2.6.32
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-14 12:51 UTC by Evgeniy Dushistov
Modified: 2010-04-08 23:18 UTC (History)
0 users

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


Attachments
linux-2.6.28-gentoo-r5/.config (.config,71.20 KB, text/plain)
2010-01-14 12:54 UTC, Evgeniy Dushistov
Details
linux-2.6.31-gentoo-r6/.config (.config,76.10 KB, text/plain)
2010-01-14 12:55 UTC, Evgeniy Dushistov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Dushistov 2010-01-14 12:51:45 UTC
I have 
2.6.28-gentoo-r5
and
linux-2.6.31-gentoo-r6.

When I choose '2.6.28-gentoo-r5' in grub menu  all works fine,
when I choose linux-2.6.31-gentoo-r6, the machine hang
after "reboot" or "poweroff" commands. System stops on "hostname service stopped", no unmount file system and so on. 

So it is unclear the bug in kernel or in cooperation of kernel with userspace.


Reproducible: Always




Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 13 Jan 2010 01:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.9-r1
dev-lang/python:     2.4.4-r9, 2.5.4-r2, 2.6.4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      9999
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon64 -fomit-frame-pointer -pipe"
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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -mtune=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/nx /usr/portage/local/layman/toolchain /usr/portage/local/layman/vmware /home/evgeniy/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli clisp consolekit cracklib crypt cups cxx cyrillic dbus djvu doc dri dts dvd dvdr dvi emacs emboss encode evo fam firefox flac gdbm gif gpm graphics gstreamer gtk hal iconv jpeg kde kpathsea latex lcms ldap libnotify logrotate mad mailwrapper mbox mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pch pcre pdf perl png ppds pppd pstricks python qt3support qt4 quicktime readline reflection samba science sdl session smp spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex threads thunar tiff truetype type1 unicode usb vim-syntax vorbis win32codecs wmf x264 x86 xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vga fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Evgeniy Dushistov 2010-01-14 12:53:17 UTC
The both kerneles were build from gentoo-sources package, using
genkernel package. The kernel config for 2.6.31 is build from 2.6.28 config with "make oldconfig"
Comment 2 Evgeniy Dushistov 2010-01-14 12:54:27 UTC
Created attachment 216488 [details]
linux-2.6.28-gentoo-r5/.config
Comment 3 Evgeniy Dushistov 2010-01-14 12:55:09 UTC
Created attachment 216490 [details]
linux-2.6.31-gentoo-r6/.config
Comment 4 Evgeniy Dushistov 2010-01-25 14:21:19 UTC
Using SysRq key I can see that 
rmmod process have "D" state
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2010-01-26 15:15:02 UTC
Thanks for report, Evgeniy. Please, try to reproduce problem with 2.6.31-r9 and then 2.6.32-r2.
Comment 6 Mike Pagano gentoo-dev 2010-02-01 23:13:34 UTC
yes, please test with the latest gentoo sources 2.6.32 which is -r3 as of this writing
Comment 7 Richard 2010-02-02 22:56:01 UTC
I am having this problem too with gentoo-sources-2.6.31-r10. With r9, this problem goes away. I am running packages from the ~x86 testing tree.
Comment 8 Richard 2010-02-02 22:57:20 UTC
I forgot to add that this issue also occurs on suspend to RAM, but does not (always) seem to occur with reboots.

I was at a loss to diagnose the cause of this until I decided to roll back to the previous kernel. My configuration file was identical in both.
Comment 9 Evgeniy Dushistov 2010-02-10 15:36:42 UTC
>yes, please test with the latest gentoo sources 2.6.32 which is -r3 as of this
>writing

I tried linux-2.6.32-gentoo-r3, the same bug.
reboot/poweroff hang on a half.

rmmod deadlocked.

Here is part of backtrace:

(gdb) li *0xc04779e1
0xc04779e1 is in wait_for_common (kernel/sched.c:5794)
(gdb) li *0xc012e840
0xc012e840 is in default_wake_function (kernel/sched.c:5626)
(gdb) li *0xc0477ad2
0xc0477ad2 is in wait_for_completion (kernel/sched.c:5825)
(gdb) li *0xc015c74a
0xc015c74a is in sys_delete_module (kernel/module.c:789)
Comment 10 Mike Pagano gentoo-dev 2010-02-15 17:21:29 UTC
I wonder what module this is hanging on. 

What modules are you using?  Have you tried to rmmod all of the modules in use and then tried shutdown/reboot ?
Comment 11 Evgeniy Dushistov 2010-03-01 11:11:28 UTC
>I wonder what module this is hanging on. 
>What modules are you using?  Have you tried to rmmod all of the modules in use
>and then tried shutdown/reboot ?

Yes, I tried.

The problem in one of "snd" modules, if I remove all stuff related to snd,
all works fine, I able to reboot.

Here from BAD 2.6.32:

snd_pcm_oss            29184  0 
snd_mixer_oss          12352  1 snd_pcm_oss
snd_seq_oss            20768  0 
snd_seq_midi_event      3520  1 snd_seq_oss
snd_seq                34832  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          3532  2 snd_seq_oss,snd_seq
snd_hda_codec_realtek   168612  1 
snd_hda_intel          16712  0 
snd_hda_codec          42016  2 snd_hda_codec_realtek,snd_hda_intel
snd_pcm                47204  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              13864  2 snd_seq,snd_pcm
snd                    35652  10 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
snd_page_alloc          5000  2 snd_hda_intel,snd_pcm

Here from GOOD 2.6.28:
snd_pcm_oss            33184  0 
snd_mixer_oss          15232  1 snd_pcm_oss
snd_seq_oss            26624  0 
snd_seq_midi_event      7680  1 snd_seq_oss
snd_seq                38640  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          7820  2 snd_seq_oss,snd_seq
snd_hda_intel         339216  0 
snd_pcm                49668  2 snd_pcm_oss,snd_hda_intel
snd_timer              17672  2 snd_seq,snd_pcm
snd                    37540  8 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer
snd_page_alloc          9224  2 snd_hda_intel,snd_pcm


With 2.6.32 snd_hda_codec_realtek loaded, there is no such with 2.6.28.
Comment 12 Markos Chandras (RETIRED) gentoo-dev 2010-03-03 14:00:02 UTC
I can recall a similar bug in the past with alsa-* which failed to unload snd modules properly

http://bugs.gentoo.org/show_bug.cgi?id=232875
Comment 13 Mike Pagano gentoo-dev 2010-04-08 23:18:39 UTC
Yes, those alsa modules do not successfully unload on shutdown.

There is a closed bug on that somewhere. They should not be unloaded during shutdown.