Weird freeze up with sound and X11 (2.1.x)

Rafael Reilova (rreilova@ececs.uc.edu)
Sun, 1 Nov 1998 14:26:41 -0500 (EST)


Hi Alan,

I've been getting a really nasty complete freeze (no keyboard, mouse, or
logs) when playing sound under X and running some processor intensive
task. This happens with all the 2.1 series kernels I've ran, and IRC with
2.0 too (haven't booted into it for ages).

Now for the weird part, it only happens when the X server is running! The
lockup happens within a minute, sometimes almost instantly. It doesn't
matter whether I'm inside X or in a text VT (as long as X is running).
However, if I kill the X server I can play without the lockups for as long
as I want. Also if the CPU is mostly idle it doesn't lockup as quickly or
may even not lock at all. If I compile the sound drv. into the kernel
instead of modules, it seems to get me more time before the lockup.

The test scenario is to run a mp3 encoder, and at the same time play some
mp3 file to the SB-pro, this locks up in less that 10sec. RAplayer also
triggers the lock up really quick, 100% reproducible here.

Hardware/Software:
- NVidia Velocity 128 AGP, running XFree86-3.3.2-p3 SVGA server (applied
newest NVidia patches to no avail).
- SB-Pro v2 - sound drivers compiled as modules (soundcore, sound, sb,
uart401) or in kernel.
- happens with all 2.1 kernels I've tried, circa 2.1.103 to 2.1.127pr3
- Cyrix 686MX PR166 (it's not the comma bug, I've already checked that),
FIC 2012 VIA mb, 32 MB RAM
- tried both GCC 2.7.2.3 and 2.8.1

This is likely a bug in XFree and not in the sound drivers, but the fact
that everything freezes suggest that something is wrong with the kernel
also. My guess is that X is somehow confusing the sound driver. Again,
this only happens if X is running, otherwise it is rock solid even under
very heavy load.

I've been trying to track this down to no avail so far, any suggestions?,
please let me know if you need more info.

Cheers,

Rafael

<trimmed kernel .config follows>

#
# Plug and Play support
#
CONFIG_PNP=y

#
# Sound
#
CONFIG_SOUND=y
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
CONFIG_SOUND_OSS=y
# CONFIG_SOUND_PAS is not set
CONFIG_SOUND_SB=y
CONFIG_SB_BASE=220
CONFIG_SB_IRQ=5
CONFIG_SB_DMA=1
CONFIG_SB_DMA2=1
CONFIG_SB_MPU_BASE=330

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/