From: Takashi Iwai <tiwai@suse.de>
To: folkert <folkert@vanheusden.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: aconnect occasionally causes kernel oopses
Date: Mon, 02 Aug 2021 17:11:21 +0200 [thread overview]
Message-ID: <s5hczqvyj8m.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210802091012.GR890690@belle.intranet.vanheusden.com>
On Mon, 02 Aug 2021 11:10:12 +0200,
folkert wrote:
>
> > > > In which situation?
> > >
> > > I was testing something that listens for alsa events and for that I ran
> > > a continuous loop that did:
> > >
> > > while true
> > > do
> > > aconnect 128:1 14:0
> > > aconnect -d 128:1 14:0
> > > aconnect -d 128:2 128:1
> > > aconnect 128:2 128:1
> > > done
> > >
> > > I ran 5 instances in parallel.
> > >
> > > 14 is midi through
> > > 128 is rtpmidi
> >
> > So rtpmidi process keeps running during the loop, that is, it's only
> > about connection and disconnection, right?
> > Also, you're listening to an event during that -- but how?
>
> I tried it again but with a simpler setup:
>
> I've got these devices:
>
> root@lappiemctopface:~# aplaymidi -l
> Port Client name Port name
> 14:0 Midi Through Midi Through Port-0
> 130:0 FLUID Synth (17032) Synth input port (17032:0)
> 131:0 VMPK Input in
> root@lappiemctopface:~# arecordmidi -l
> Port Client name Port name
> 14:0 Midi Through Midi Through Port-0
> 132:0 VMPK Output out
>
> I run this in 3x parallel:
>
> while true
> do
> aconnect 132:0 130:0
> aconnect -d 132:0 130:0
> done
>
> and then in less than a minute I get a backtrace.
OK, thanks. That's more promising.
Does this happen if you do reconnect of kernel sequencer client?
You can use snd-virmidi as well as snd-dummy.
I'm asking it because it'll simplify the test a lot, which will be
almost self-contained.
Takashi
next prev parent reply other threads:[~2021-08-02 15:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-01 18:27 aconnect occasionally causes kernel oopses folkert
2021-08-02 6:16 ` Takashi Iwai
2021-08-02 6:18 ` folkert
2021-08-02 6:59 ` Takashi Iwai
2021-08-02 9:10 ` folkert
2021-08-02 15:11 ` Takashi Iwai [this message]
2021-08-02 15:21 ` folkert
2021-08-02 17:12 ` Takashi Iwai
2021-08-02 19:53 ` folkert
2021-08-03 6:55 ` Takashi Iwai
2021-08-03 7:40 ` folkert
2021-08-03 7:43 ` Takashi Iwai
2021-08-03 7:44 ` folkert
2021-08-03 7:49 ` Takashi Iwai
2021-08-03 7:52 ` folkert
2021-08-03 10:12 ` folkert
2021-08-03 11:42 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hczqvyj8m.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=folkert@vanheusden.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.