Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315423 - sys-kernel/gentoo-sources-2.6.32-r7: kernel panic on reboot and shutdown when rootfs on lvm2 on md
Summary: sys-kernel/gentoo-sources-2.6.32-r7: kernel panic on reboot and shutdown when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 08:34 UTC by Artem V. Ryabov
Modified: 2010-06-24 20:22 UTC (History)
0 users

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


Attachments
screen shot after "halt" (P1030618.jpg,266.82 KB, image/jpeg)
2010-04-15 08:41 UTC, Artem V. Ryabov
Details
screenshot after SysRq+O (P1030582.jpg,207.74 KB, image/jpeg)
2010-04-15 08:46 UTC, Artem V. Ryabov
Details
screenshot after CtrlAltDel (P1030625.jpg,280.77 KB, image/jpeg)
2010-04-15 09:50 UTC, Artem V. Ryabov
Details
2.6.34-rc4-git3 after "halt" (P1030644.jpg,282.51 KB, image/jpeg)
2010-04-16 06:46 UTC, Artem V. Ryabov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem V. Ryabov 2010-04-15 08:34:22 UTC
I set new install on old, but SMP server.
But when I try to reboot or shotdown, I get kernel panic.
Kernel 2.6.31-r10 with config from install-x86-minimal-20100216.iso also have this bug.


Reproducible: Sometimes

Steps to Reproduce:
1. set rootfs on lvm2 on md
2. try to reboot

I try use null modem, but when console on ttyS1 - panic does not reproducing. Never. I had use photo to get dump.
When I reboot hard, through SysRq+b - panic does not reproducing. 
When I boot install CD - panic does not reproducing. ( but then rootfs not on lvm2 on md )
Other time reproducibility is about 90% or even more, but not 100%.

Actual Results:  
When I reboot trough "halt","reboot",CtrlAltDel аfter "Power down." or "Restarting system." I get:
invalid TSS: fb6d [#1] SMP
last sysfs file: /sys/devices/virtual/block/md2/md/metadata_version

When I reboot trough SysRq+o,
after "Power down." I get:
invalid TSS: fb6d [#1] SMP
last sysfs file: /sys/devices/virtual/block/dm-0/uevent

screenshots will be later...

Expected Results:  
normal reboot or poweroff

I try to debug /etc/init.d/reboot.sh and /etc/init.d/shutdown.sh
panic on strings: 

/sbin/reboot "${opts}" 2>/dev/null
/sbin/halt "${opts}"

I can use kludge for reboot.sh:
add strings

 echo 1 > /proc/sys/kernel/sysrq
 echo b > /proc/sysrq-trigger

before this line.

But I don't have any kludge for shutdown.sh

I try to disable hyperthreading in bios - no effect.

My server:

2 CPU Xeon 2.4 Ghz CPUID F27
1 Gb RAM

2 SCSI HDD in 2 RAID-1:
(sda1+sdb1 in md1, 50 Mb, /boot)
(sda2+sdb2 in md2, 136 Gb, vg)
/dev/mapper/vg-slash 10 Gb  (root)
/dev/mapper/vg-swap 4 Gb
/dev/mapper/vg-data 112 Gb

emerge --info:
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 14 Apr 2010 06:15:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.yandex.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ "
LDFLAGS="-Wl,-O1"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt ctype cups curl cxx dri expat fortran gd gdbm gif gpm iconv ipv6 jpeg modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php png pppd python readline reflection session spl ssl sysfs tcpd tokenizer truetype unicode utf8 x86 xml xmlrpc xorg 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Artem V. Ryabov 2010-04-15 08:41:59 UTC
Created attachment 227861 [details]
screen shot after "halt"
Comment 2 Artem V. Ryabov 2010-04-15 08:46:41 UTC
Created attachment 227863 [details]
screenshot after SysRq+O
Comment 3 Artem V. Ryabov 2010-04-15 09:50:27 UTC
Created attachment 227883 [details]
screenshot after CtrlAltDel
Comment 4 Mike Pagano gentoo-dev 2010-04-15 16:34:06 UTC
I see > 30 patches for the file which has the function disable_io_apic in the git-sources for 2.6.34.

Are you able to test 2.6.33 and upon failure, 2.6.34 to see if this issue has been addressed already?
Comment 5 Artem V. Ryabov 2010-04-15 20:51:16 UTC
(In reply to comment #4)
> I see > 30 patches for the file which has the function disable_io_apic in the
> git-sources for 2.6.34.
> 
> Are you able to test 2.6.33 and upon failure, 2.6.34 to see if this issue has
> been addressed already?

I was test gentoo-sources-2.6.32-r7.
It also have this bug.

git-sources 2.6.34 will try 10 hours after.


Comment 6 Artem V. Ryabov 2010-04-15 20:51:50 UTC
(In reply to comment #4)
> I see > 30 patches for the file which has the function disable_io_apic in the
> git-sources for 2.6.34.
> 
> Are you able to test 2.6.33 and upon failure, 2.6.34 to see if this issue has
> been addressed already?

I was test gentoo-sources-2.6.33-r1.
It also have this bug.

git-sources 2.6.34 will try 10 hours after.


Comment 7 Artem V. Ryabov 2010-04-16 06:41:36 UTC
(In reply to comment #4)
> I see > 30 patches for the file which has the function disable_io_apic in the
> git-sources for 2.6.34.
> 
> Are you able to test 2.6.33 and upon failure, 2.6.34 to see if this issue has
> been addressed already?
> 

sys-kernel/git-sources-2.6.34_rc4-r3 also have this bug.
one differents:

invalid TSS: 1c39 [#1] SMP

see new scrinshots...
Comment 8 Artem V. Ryabov 2010-04-16 06:46:56 UTC
Created attachment 227991 [details]
2.6.34-rc4-git3 after "halt"
Comment 9 Artem V. Ryabov 2010-04-16 06:56:05 UTC
Everthing else, as I see, kept:
1. when console on ttyS1 - no panic.
2. SysRq+O make panic
3. SysRq+B - no panic.

Need other screenshots?
Or something else?
Comment 10 Artem V. Ryabov 2010-04-22 06:27:40 UTC
I found solution, but I don't understand why it work.
kernel parameter "acpi=noirq" solve this problem.
Comment 11 Mike Pagano gentoo-dev 2010-06-24 20:22:45 UTC
Closing as workaournd found