Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751490 - media-libs/portaudio-19.06.00-r3: program utilizing portaudio crashes with assert on alsa buffer underrun (PATCH)
Summary: media-libs/portaudio-19.06.00-r3: program utilizing portaudio crashes with as...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
Keywords: PATCH
Depends on:
Reported: 2020-10-27 19:27 UTC by franklyfrank
Modified: 2020-12-19 11:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description franklyfrank 2020-10-27 19:27:22 UTC
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.

Comment 1 Sam James archtester gentoo-dev Security 2020-10-27 21:01:48 UTC
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.)
Comment 2 franklyfrank 2020-12-19 05:28:51 UTC
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?
Comment 3 Sam James archtester gentoo-dev Security 2020-12-19 11:26:14 UTC
If it’s fixed upstream, we can include the patch in Gentoo too if a release is far off.