I'm using an out of tree ebuild for the MAME emulator and using portaudio for its sound output results in random program crashes with the following message printed to stdout:
sdlmame: /tmp/portage/media-libs/portaudio-19.06.00-r3/work/portaudio/src/hostapi/alsa/pa_linux_alsa.c:3641: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed.
Looking around there's an open bug report on the upstream github  and a ready to use patch currently used by Debian .
I've tested the patch and it applies cleanly and seems to fix my issue.
I'm not sure who personslly looks after this (if sound@ has someone interested or not), but I can apply the patch if we give someone a chance first to review and give thoughts here.
Ping me in ~week if nobody else gets back to you? I'll CC Polynomial-C just because he has added a patch in the past and sometimes looks after sound pkgs, but he might not be the right guy here.
(I just want to avoid patching something I don't use, if someone has input.)
Sorry for replying so late. The good news is, that it was fixed in upstream by now.
I was going to ask to just close this report without the Debian patch since I seem to be the only Gentoo user ever complaining about it and there are alternatives to portaudio.
Is it okay to just set it RESOLVED UPSTREAM?
If it’s fixed upstream, we can include the patch in Gentoo too if a release is far off.