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 [1] and a ready to use patch currently used by Debian [2]. I've tested the patch and it applies cleanly and seems to fix my issue. [1] https://github.com/PortAudio/portaudio/issues/268 [2] https://sources.debian.org/patches/portaudio19/19.6.0-1.1/944509-crash.patch/
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. https://github.com/PortAudio/portaudio/pull/344 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.