ALSA crashes on SMP (GUS PnP)... Spinlock bug???

Alain Schroeder (alain@mini.gt.owl.de)
Tue, 14 Dec 1999 12:52:00 +0100


--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

<intermission>
If this does _only_ belong into ALSA devel please ignore this posting on
linux-kernel-ml... (I send it to both because of 2.3.31 Ooops which says,=
=20
there is a bug in spinlock.h...) Please send flamings to /dev/null or direc=
tly
to me...
</intermission>

I have very big Problems using ALSA on my SMP maschine. Things that happen=
=20
depend on the specific kernel:

2.2.13 SMP - driver loads fine, but maschine crashed as soon as I generate
any network traffic (ping - using my eepro100) Playing a tun=
e=20
does result in nothing... See strace... I did not looked into
this very far, because 2.3.30-pre6 worked a lot better.
2.3.31 UP - Everything works fine
2.3.31 SMP - The driver loads fine and I can use the mixer (same as 2.2.1=
3),
AND there is no crash when I use the network... :))
BUT using any player (mpg123, aplay) generates a Ooops because
2.3.31 kills the client... (well - it looks that way to me)

--- 2.2.13 - strace mpg123 ---

[...]
open("/dev/snd/pcmC0D0", O_WRONLY) =3D 5
ioctl(5, 0x80044100, 0xbffff824) =3D 0
close(4) =3D 0
ioctl(5, 0xc01c4110, 0x8080af4) =3D 0
ioctl(5, 0x80684102, 0xbffff898) =3D 0
ioctl(5, 0xc01c4112, 0xbffff87c) =3D 0
ioctl(5, 0xc01c4110, 0x8080af4) =3D 0
ioctl(5, 0x80684102, 0xbffff898) =3D 0
ioctl(5, 0xc01c4112, 0xbffff87c) =3D 0
ioctl(5, 0xc01c4110, 0x8080af4) =3D 0
ioctl(5, 0x80684102, 0xbffff898) =3D 0
ioctl(5, 0xc01c4112, 0xbffff87c) =3D 0
write(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384=
) =3D 16384
write(5, "\322\376\2\377\335\377\216\0\236\0\344\0\211\1\315\1\227"..., 163=
84) =3D 16384
write(5, "\313\32\217\32\231\31{\30\362\27\25\30&\31\322\32q\33O"..., 16384=
) =3D 16384
write(5, "\221 \373\37\16\37\256\36{\36z\35\260\33\31\32\375\30\241"..., 16=
384) =3D 16384
write(5, "J\22\255\21\320\20_\20u\20d\20\344\17h\17.\17\354\16\202"..., 163=
84) =3D -1 EIO (Input/output error)
write(5, "\325\1t\366X\354f\355h\370\270\3m\10\353\5\235\376\325"..., 16384=
) =3D -1 EIO (Input/output error)

--- 2.3.31 - Ooops ---
eip: d086e88c
kernel BUG at /usr/src/linux/include/asm/spinlock.h:78!
invalid operand: 0000
CPU: 0
EIP: 0010:[<d086e8be>]
EFLAGS: 00010082
eax: 00000038 ebx: cf093ea4 ecx: c021857c edx: cf361f78
esi: cf093f28 edi: cf093f28 ebp: 00000246 esp: cd3addd4
ds: 0018 es: 0018 ss: 0018
Process mpg123 (pid: 360, stackpage=3Dcd3ad000)
Stack: 0000004e 00000246 cf2cc704 cf2cc5c4 cf093ea4 00000000 cf85e004 00000=
018=20
cf2cc5c4 00000000 cf85e004 00000018 00000000 d086f195 cf2cc704 00000=
000=20
cd3adeec cd37cbe0 00000000 cd3ac000 cf093ea4 c0000000 cf85e004 00000=
000=20
Call Trace: [<d086f195>] [<d0870262>] [iget4+331/340] [<d0870556>] [<d08512=
c1>] [tvecs+28089/38648] [chrdev_open+60/72]=20
[filp_open+207/276] [sys_open+161/556] [system_call+52/56]=20
Code: 0f 0b 83 c4 10 90 f0 0f ba 2e 00 0f 82 81 30 00 00 80 4b 3d=20

--- 2.3.31 - strace mpg123 ---
open("/dev/snd/controlC0", O_RDWR) =3D 3
ioctl(3, 0x80045500, 0xbffff7b8) =3D 0
brk(0) =3D 0x8084750
brk(0x8084770) =3D 0x8084770
brk(0x8085000) =3D 0x8085000
ioctl(3, 0xc0045520, 0xbffff7e8) =3D 0
ioctl(3, 0xc004552b, 0xbffff7ec) =3D 0
open("/dev/snd/pcmC0D0", O_WRONLY <unfinished ...>
+++ killed by SIGSEGV +++

--- About my System ---

2 P-III (Katmai) on a Tyan Tiger 100
Further Information on http://www.lug-owl.de/~schroder/kernel-bug/
=20
Bye,
- -- Alain -- -

PS: System.map ends with c02b0eec...
PPS: gcc version 2.95.2 19991109 (Debian GNU/Linux)

--=20
"This may seem a bit weird, but that's okay, because it is weird."
-- Larry Wall in the Perl v5 man page

--T4sUOijqQbZv57TR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4Vi9gjO6yWbPCgfQRAR/JAJ4jQcdJoySpIqgkvzJL1+1zbLu7ZQCdEFXY
q6Hr9C/uzfpTOf210Hcq/M8=
=pyGn
-----END PGP SIGNATURE-----

--T4sUOijqQbZv57TR--

-
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/