All of lore.kernel.org
 help / color / mirror / Atom feed
* usbmidi reconnect -> kernel oops
@ 2007-01-10  4:48 Dmitry Baikov
  2007-01-10 22:06 ` Dmitry Baikov
  0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Baikov @ 2007-01-10  4:48 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 4902 bytes --]

Hi!
I am working on a alsa-midi driver for jackd and stepped on the following bug:
Sometimes, if a program is reading from usb midi port (rawmidi) and I
disconnect and then reconnect device, kernel dumps an oops. Below is
the trace, got by Lars Lutman with kernel 2.6.17 and alsa-lib-1.0.12,
but I had the same oops with kernel-2.6.19 (in-kernel alsa) and
alsa-lib-1.0.13, though I have only tainted trace (with nvidia driver,
I seen it with nv driver
+ simple test program as well, but lost the trace after reboot, and
then could not reproduce it).

The jackmidi driver does the following:
one thread (scan) periodically (every 2 seconds) walks all
cards/devs/subdevs and opens new ports if any. Two other threads poll
opened ports and read/write them (passing ports with errors back to
scan thread for closing).

If this trace is insufficient, I may try to reproduce the bug using a
simple test program (I have one already, but as I said, do not have
untainted trace).

Regards,
Dmitry.
---------------------

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: Oops: 0000 [#1]

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: PREEMPT

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: CPU:    0

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: EIP is at usb_buffer_free+0x16/0x40 [usbcore]

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: eax: c8ccb800   ebx: 00000002   ecx: df51b180   edx:
00000040

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: esi: d74abe00   edi: d31f6920   ebp: d0129e00   esp:
d2177ef0

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: ds: 007b   es: 007b   ss: 0068

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: Process jackd (pid: 11753, threadinfo=d2176000
task=d072aa90)

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: Stack: 018cba80 1f51b180 d74abe00 e0e0cc4c 1f51b180
d31f6950 00000000 e0e0cce1

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:        d8837b4c d8837aa0 00001fff e0d25538 d75c6c80
d0129f40 e0ceb16a 00000000

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:        00001000 e0ceb20b d0129e00 00000000 cf0d46e0
d0129e00 e0ce66f0 cf0d46e0

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: Call Trace:

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:  <e0e0cc4c> snd_usbmidi_out_endpoint_delete+0x2c/0x50
[snd_usb_lib]  <e0e0cce1> snd_usbmidi_free+0x21/0x50 [snd_usb_lib]

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:  <e0d25538> snd_rawmidi_free+0x68/0x80 [snd_rawmidi]
<e0ceb16a> snd_device_free+0x4a/0xa0 [snd]

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:  <e0ceb20b> snd_device_free_all+0x4b/0x60 [snd]
<e0ce66f0> snd_card_do_free+0x30/0x100 [snd]

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:  <e0ce7061> snd_card_file_remove+0xa1/0xd0 [snd]
<e0d2697f> snd_rawmidi_release+0x4f/0x70 [snd_rawmidi]

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:  <c016755b> __fput+0x8b/0x1a0  <c01646f7> filp_close
+0x47/0x80

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel:  <c0102f77> sysenter_past_esp+0x54/0x75

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: Code: 24 89 d8 ff d6 eb cf 8d b4 26 00 00 00 00 8d bc
27 00 00 00 00 83 ec 0c 85 c0 89 5c 24 04 89 74 24 08 74 20 8b 58 30 85
db 74 19 <8b> 43 24 85 c0 74 12 8b 70 10 85 f6 74 0b 8b 44 24 10 89 04
24

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: EIP: [pg0+543150422/1069028352] usb_buffer_free
+0x16/0x40 [usbcore] SS:ESP 0068:d2177ef0

\aMessage from syslogd@localhost at Tue Jan  9 16:38:05 2007 ...
localhost kernel: EIP: [<e0a7a156>] usb_buffer_free+0x16/0x40 [usbcore]
SS:ESP 0068:d2177ef0


--
Lars Luthman - please encrypt any email sent to me if possible
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x04C77E2E
Fingerprint: FCA7 C790 19B9 322D EB7A E1B3 4371 4650 04C7 7E2E


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Jackit-devel mailing list
Jackit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-devel

[-- Attachment #2: signature.asc --]
[-- Type: text/plain, Size: 190 bytes --]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFo7doQ3FGUATHfi4RAmdBAJ45YpTzP3yNQaDeMuTALejjJXMGDwCfTd1a
1jY79FKmgIDwOwHmvPA+XS0=
=DkdM
-----END PGP SIGNATURE-----


[-- Attachment #3: Type: text/plain, Size: 347 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-01-12 18:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-10  4:48 usbmidi reconnect -> kernel oops Dmitry Baikov
2007-01-10 22:06 ` Dmitry Baikov
2007-01-11 14:54   ` Ideas for the softvol plugin Ingo Müller
2007-01-11 15:05     ` Daniel Jacobowitz
2007-01-11 22:45       ` Ingo Müller
2007-01-11 23:03     ` Tom Horsley
2007-01-12 16:11       ` Ingo Müller
2007-01-12 18:18     ` Takashi Iwai
2007-01-12 18:31       ` Ingo Müller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.