Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34144 - Loading emu10k1 on 2.6 kernels crashes XFree
Summary: Loading emu10k1 on 2.6 kernels crashes XFree
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-22 17:39 UTC by John Huttley
Modified: 2004-01-26 20:22 UTC (History)
2 users (show)

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


Attachments
The log from XFree. (weird.Xfree.Log,1.75 KB, text/plain)
2003-11-22 17:42 UTC, John Huttley
Details
my test9 config (config-2.6.0-test9-gentoo.gz,6.61 KB, application/octet-stream)
2003-11-22 17:44 UTC, John Huttley
Details
my test9 config unzipped (config-2.6.0-test9-gentoo,24.68 KB, text/plain)
2003-11-22 23:16 UTC, John Huttley
Details
latest test11 kernel config (config-2.6.0-test11-gentoo,23.96 KB, text/plain)
2003-11-29 10:59 UTC, John Huttley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Huttley 2003-11-22 17:39:31 UTC
Using 2.6.0-gentoo-test9, Athlon XP.
XFree86 crashes. Its is a hard lock.
Judging from the XFree log file, there is a massive memory scribble.
100% reproducible.
even XFree86 -probeonly crashes.
This is with a Geforce 2 card using the default nv driver, not the nvidia version.
The system is using the ~x86 features, XFree86 and glibc have both been re-emerged.
Not using nlpt

Reproducible: Always
Steps to Reproduce:
1. Boot test9
2. XFree86 or startx or XFre86 -probeonly
3.

Actual Results:  
Blanks screen. No Kb Lights. No sys-ctl key.  Reach for reset button

Expected Results:  
Run X, like its does happily with 2.4

Gentoo Base System version 1.4.3.12
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-vpn-evms)
=================================================================
System uname: 2.4.22-vpn-evms i686 AMD Athlon(tm) XP 2200+
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3  -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa
slang readline tetex bonobo svga java guile postgres X sdl gpm tcpd pam libwww
ssl perl python esd imlib oggvorbis gnome gtk qt opengl mozilla cdr scanner acpi
apache2 evms2 fam flac freetds freetype gd gnomedb gtk2 imap imlib2 innodb
maildir mbox openssh pcap pic samba sasl sqlite sse tiff uml usb wxwindows X509
xine xml -oss -avi -kde -gdbm -berkdb -arts -motif -ldap"


I shall attach the Xfree log separately. It will make your hair turn grey.
Comment 1 John Huttley 2003-11-22 17:42:29 UTC
Created attachment 21108 [details]
The log from XFree. 

I emptied the log file before running X. I could hardly believe my eys when I
saw this.
Comment 2 John Huttley 2003-11-22 17:44:47 UTC
Created attachment 21109 [details]
my test9 config

The kernel was built with genkernel.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-22 20:52:51 UTC
Would it be possible to attach your kernel config as a plain text file?
Thanks.
Comment 4 John Huttley 2003-11-22 23:16:12 UTC
Created attachment 21127 [details]
my test9 config unzipped
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-11-23 03:13:28 UTC
* ping - config was attached in an uncompressed form * 
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-24 23:22:42 UTC
Could you try test10?
Comment 7 John Huttley 2003-11-24 23:40:07 UTC
I will shortly try test10. I note comments by linus that test9 and test10 may have pre-empt problems.

if the problem persists with test10, I'll try a non-preempt version.
Comment 8 John Huttley 2003-11-25 01:02:43 UTC
The problem still exists with test10 and test10 no-preempt.
I'll try stripping stuff out.
Comment 9 Andrew Bevitt 2003-11-27 07:56:14 UTC
Still an issue with test11?
Comment 10 John Huttley 2003-11-27 11:01:07 UTC
I haven't tried test11 yet but have little hope it will fix it.
I've tried compiling test10 for a  Pii and unconfiguring APIC support without success.
Comment 11 John Huttley 2003-11-27 11:59:26 UTC
Ok, its the emu10k1 module (in test11 now).
I can load all the ALSA support modules without problems, including ac97.
Loading emu10k1 causes the crash.

I don't use alsa in my 2.4 kernel, which might mean something.
I shall try reemergeing all the alsa ebuilds on general principle.

In brief system config is now compiled for PII, no APIC, no preeempt

Comment 12 John Huttley 2003-11-29 10:59:28 UTC
Created attachment 21477 [details]
latest test11 kernel config

Compiles for PII, no-preempt, no ACPI
Comment 13 John Huttley 2003-11-29 11:02:03 UTC
I have re-emerged alsa-libs alsa-utils alsa-tools.
The system continues to die on starting XFree86 if smd-emu10k1 is loaded.
No idea what to do next.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-29 23:14:26 UTC
Which version of xfree is this? If you have time, I'd appreciate it if you tried a few different versions (4.3.0-r3, 4.3.99.16, 4.3.0-r2). Thanks.
Comment 15 John Huttley 2003-11-29 23:38:39 UTC
I'm using xfree-4.3.0-r3.
I'll try 4.3.99.16 as soon as I can.
Comment 16 John Huttley 2003-11-30 09:21:58 UTC
I've just tried xfree-4.3.99.16.

Same results.
Comment 17 Andrew Bevitt 2003-12-07 13:20:56 UTC
OK I have a few questions...

1) Which version of coreutils are you using? This is the package that tr
belongs too, so it may lead somewhere...

2) Why are you compiling for PII support when you are running an athlon XP?
System uname: 2.4.22-vpn-evms i686 AMD Athlon(tm) XP 2200+

3) Have you tried the latest 4.3.99.901 xfree version? I am using this 
version and I cannot reproduce your problem.

4) Can you just start xterm and see if the problem persists. Do this by 
adding one line : xterm
to ~/.xinitrc and commenting out anything else you may already have there.
From that xterm try starting the window manager you normally use. Does the
crash occur before or after wm start?
Comment 18 John Huttley 2003-12-08 23:45:52 UTC
1) Which version of coreutils are you using? 
Ver 5.0.91-r1


2) Why are you compiling for PII support when you are running an athlon XP?
To have a test kernel with the minimum of features and maximum compaibility.
no apic,pre-empt etc.

3) Have you tried the latest 4.3.99.901 xfree version? I am using this 
version and I cannot reproduce your problem.

I tried 4.3.99.16.

4) Can you just start xterm 

no. Even XFree86 -probeonly crashes it.

I have now upgraded all my alsa packages to 1.0.0-r2 and the kernel to the -r2 version. The problem persists.

Does anyone know how to test the sound from the cli?

My next step will be to compile it for a serial console and see if anything useful is displayed.

It's the silly season here, so its likely I won't be able to do anything for several days.


Comment 19 Benjamin Weber 2004-01-02 09:46:55 UTC
Is this problem still occuring with the vanilla 2.6.0 kernel?
Also have you tried compiling the emu10k1 driver into the kernel instead of making it a module?
Comment 20 John Huttley 2004-01-02 13:05:48 UTC
I've just tried compiling in alsa. No change.
I'm using the 2.6.0-gentoo-r1 kernel now. 
I tried the 2.6.0-mm1 kernel (Non gentoo) and it wouldn't enter runlevel 3!

A few days ago I had the chance to put my disk into another motherboard.
This time X Started, but when I quit X, the text video was corrupt.
The other MB had a built in video. I was using my GeForce2 and having both of them
is enough of a difference that I'm not going to cry "hardware!".

I will be buying a new Athlon 64-3000 as soon as they become available.
Mid jan at least.

When 2.6.1 come out I'll try that.
Comment 21 Andrew Bevitt 2004-01-09 15:33:59 UTC
Try the cli sound...

Insert the necessary modules, then use either
aplay - wav (or uncompressed) audio
mpg123 - mp3's (mpeg compression)
ogg123 - ogg's

Does anything nasty happen when using CLI audio?
Comment 22 John Huttley 2004-01-10 13:58:33 UTC
I've just tried mpg123 with the OSS emulation modules loaded, through the SB Live!
It seems to work fine.

Also I've tried the 2.6.1 vanilla kernel. The lockup with X is still evident.

I've just tried using the motherboard via sound.
That works from the cli, with oss emulation loaded
It works under X with and without oss emailation.

So it does seem to point the SB Live! card.

Hmm, I might just try moving it to another slot on the motherboard.
Comment 23 Andrew Bevitt 2004-01-18 18:20:17 UTC
Well im running XFree-4.3.99.902 right now on my Athlon64 with a Audigy2 ZS which uses the emu10k1 driver, and everything is working fine, naturally I have sound going in the background... 

Revisiting your logs it would appear that maybe you have a memory overflow or similar which is causing the lockups. Could you try compiling with USE="debug" and  see if the logs / console shows anything useful
Comment 24 John Huttley 2004-01-26 20:22:15 UTC
I've just compiled XFree86 with 'debug'.
Now it crashes after displaying a raster.

I'm tired of this, so I've closed the bug.
The resolution is "WORKSFORME" which really means, "WORKSFOREVERYONEEXCEPTME"
That being the case, I'm willing to live with it.

I'll keep trying as new kernels or (gasp) new XFree's are released.
If I come to any real resolution, I'll reopen the bug.

Thanks to everyone who have gave it their consideration, your help is
appreciated.

Regards,
John