Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68154 - [2.4] console blanking causes kernel panic gentoo-sources-2.4.26-r9
Summary: [2.4] console blanking causes kernel panic gentoo-sources-2.4.26-r9
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 07:34 UTC by Jeremy Morrow
Modified: 2011-05-18 14:32 UTC (History)
0 users

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


Attachments
config of affected kernel (additionally patched with cpufreq, but panics without cpufreq too) (config-2.4.26-gentoo-r9,29.76 KB, text/plain)
2004-10-27 05:19 UTC, Harald Leiner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Morrow 2004-10-19 07:34:46 UTC
Bash has a screensaver that activates after 10 minutes of mouse/keyboard inactivity.  This screensaver is present after booting up with the Live CDs (I'm using 2004.2) and after the system reboots post installation of grub/lilo.  In theory, when the screensaver becomes active, the screen goes black - pressing any key exits from the screensaver.  When using the Live CDs, the screensaver works fine.  However, after having installed Gentoo and your boot manager, you reboot the system into the new environment and the screensaver doesn't seem to work the same way.  Instead, if the screensaver comes on and you hit a key to wake it up, the system goes into a kernel panic.  This doesn't happen all the time.  If the system is sitting at a prompt doing nothing, it wakes up just fine, but if the system is in the middle of performing an emerge, it locks up hard.  At first I thought this might have something to do with the installation of things like the nvidia-kernel or ati drivers, but it's not that.  During install off the Live CDs I'm installing from stage 1, using gentoo-sources and genkernel to create the kernel (2.4).  After that I'm emerging hotplug, installing grub, and rebooting.  After the reboot the problem occurs.  If I start emerging xorg or kde, ten minutes into the emerge, the screen goes black, I hit a key, and then it kernel panics.

Reproducible: Always
Steps to Reproduce:
1. Install Gentoo using 2004.2 Live CDs, gentoo-sources, and genkernel.
2. Reboot.
3. emerge anything that takes longer than ten minutes, let bash screensaver kick in, then hit a key.
Actual Results:  
Kernel panic ensued.

Expected Results:  
Woken out of bash screensaver and continued to display emerge progress.

This has been tested on the following:
Athlon 2000 - ATI Radeon 9200
Athlon 1200 - GeForce 4
Pentium 4 2800 - GeForce 4
Pentium 3-750 - GeForce 2
Pentium 3-450 Toshiba Satellite 4260 laptop
Comment 1 SpanKY gentoo-dev 2004-10-19 08:16:46 UTC
there is no bash screensaver, the kernel will blank your console after a period of inactivity if you enable apm/acpi
Comment 2 SpanKY gentoo-dev 2004-10-19 08:17:27 UTC
neglected to provide `emerge info`, re-open once you have

if you made your own kernel, please post the .config file as an attachment
Comment 3 Jeremy Morrow 2004-10-21 07:26:40 UTC
Gentoo Base System version 1.4.16
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(TM) XP 2400+
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.agsn.ca http://gentoo.seren.com/gentoo http://gentoo.osuosl.org/ http://www.gigaload.com/gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb ftp gdbm gif gnome gpm gtk gtk2 icq imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xprint xv zlib"

Kernel was made automatically using "genkernel all".
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-10-21 07:52:05 UTC
Can you reproduce this on vanilla-sources-2.4.26?
Comment 5 Jeremy Morrow 2004-10-21 08:23:33 UTC
I'll go give it a shot and post later today.
Comment 6 Jeremy Morrow 2004-10-22 08:47:51 UTC
It doesn't happen on vanilla-sources at all.  I've tried waking the console several times during the emerge of xorg-x11, which locked up immediately using gentoo-sources.
Comment 7 Harald Leiner 2004-10-27 05:16:39 UTC
I get/got this too on three machines after changing from the extinct gs-sources to gentoo-sources (2.4.26-gentoo-r9).
For me, these panics happen more randomly, well not always, but pretty much the same behaviour.
After the screen blanks on a virtual terminal (idle or not doesn't matter here), hitting any key to get out of screen blanking gives me a panic most of the time.
If I hit a key right after the blanking occurs, the probability of a panic seems lower (totally subjective feeling). I also feel like hitting [Alt] or [Ctrl] gives me a higher chance of panic than say hitting [Space] ???

One thing to note: it doesn't happen on vt7 (where X hangs out).
as a workaround i try to remember to change to X if i leave the console, as it returns successfully from blanking the screen (i guess X does it differently?).

As I have no idea yet what combination of things could cause it, I tried some random stuff: like booting with acpi=nopci, acpi=off, framebuffer console in text mode, etc...

IIRC, acpi=off helped on a laptop (acer 636, mobile P4, Ali Chipset), as i don't think it panicked after blanking.

But I don't think acpi is the (only?) bad one here as i've seen it on an older P3/mobo without acpi-bios too, using apm instead there.
But lately I don't see it anymore on the P3 - don't ask me what I changed.

I should have written down my experiences :-( but it was a busy nigh & I thought I just forgot some config option?

If it would help anything, I could try to get the panic / oops over serial console on one of the next days - sadly I don't see anything, as the screen stays blank on panic...

I'll attach the kernel config of the laptop (note: this is patched with cpufreq, but I tried it without too - same result)

I'll be quite busy the rest of this week... I'll try to check back often

# emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks sandbox"
GENTOO_MIRRORS="http://lnxsrv.it-store/ ftp://gentoo.inode.at/source ftp://sunsite.cnlab-switch.ch/mirror/gentoo "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://lnxsrv.it-store/portage"
USE="X aalib acl acpi alsa apache2 arts avi berkdb bitmap-fonts bonobo cdr crypt cups directfb doc dvd dvdr emacs encode esd evo f77 fbcon foomaticdb gb gd gdbm gif gnome gpm gtk gtk2 guile imlib innodb java jikes jpeg kde ldap libg++ libgda libwww mad mcal mikmod mmx motif mozilla moznoirc mozsvg mozxmlterm mpeg mysql ncurses nls oav odbc offensive oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp python qt quicktime readline samba scanner sdl slang socks5 spell sse ssl svga tcltk tcpd tetex tiff truetype trusted usb wmf x86 xinerama xml2 xmms xprint xv zlib video_cards_nvidia linguas_en linguas_de linguas_fr"
Comment 8 Harald Leiner 2004-10-27 05:19:15 UTC
Created attachment 42686 [details]
config of affected kernel (additionally patched with cpufreq, but panics without cpufreq too)
Comment 9 Jeroen Roos 2004-11-21 09:06:10 UTC
I have the same problem, with 2.4.26-gentoo-r11 on a Via Epia (Nehemiah) 1Ghz system.
I'll be happy to answer any questions.
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2004-11-21 09:14:36 UTC
Mind trying gentoo-sources-2.4.28? If it still does it, would you be able to take the backtrace that the panic gives out somehow?
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2004-12-22 16:15:14 UTC
Please try 2.4.28 as asked in comment #10. If you still get this issue, then please reopen this bug...
Comment 12 Rob Couto 2005-02-07 17:00:46 UTC
This problem has been mocking me for weeks. I'm building a full debug kernel, going to do some magic SysRq reporting, and I've worked on 2 machines with the problem and one without, so I'll be posting .configs for all (all gentoo-sources-2.4.28-r5). I'm almost certain it's part of the bootsplash patches since it's not a problem for vanilla-sources and I can work around it by completely disabling the framebuffer (grub: change to "vga=normal", remove "splash=silent" and "initrd foo.img"; # rc-update del bootsplash default). If I'm right, it has to be a collision with something else because the machine without the issue is using a bootsplash theme with no problems at all. I also wanted to blame the nvidia binary video drivers but all 3 are using them, all AGP. More to come...
Comment 13 Rob Couto 2005-02-08 07:54:30 UTC
OK, I'm an idiot. The working machine is 2.4.28-gentoo-r3, not r5. I upgraded that machie to -r5 with the same config (except 2 switches I always forget, under USB) and it seemes fine but I still have to stress it to be sure. I also took its .config and tweaked it just barely enough to run on a different P4 with similar (& unique) problems, and while the console blanking doesn't cause panics, it still gets destroyed upon switching back from X (total corruption, wrong video mode and garbage noncharacters or else solid blocks instead of chars, and not all there). More failure to control the experiment: might be the voltage mod on the otherwise OK GeForce 3, and this started right about when I got the TV-out working perfectly. I need to hand-build a few dozen more kernels, backing out some patches this time or else using vanilla + bootsplash + devfs since that's all I really need from gentoo sources anyway. This is reproducible for the most part and I'm still collecting configs for comparison.