New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libasound 1.2.10 seg faults on RPi2 (32-bit) without --disable-largefile #352
Comments
The seg fault can be triggered simply by outputting to the default or dmix pcm, eg on an USB audio card. I used
It seems pcm_direct.c was missed in the "include reshuffle commit" ad3a8b8. Adding a
I'll leave it to you how to best handle that and I guess it might be good idea to go over all the files in detail again and check if more files are missing the (indirect) config.h include |
Thanks for the report and the quick analysis! Also a few other pcm plugin code should be fixed. And, I believe it should be better to put pcm_local.h inclusions instead of config.h. It's more consistent with other PCM code. I'll push the fix. |
The recent rearrangement of header inclusion order caused a regression showing segfaults on 32bit Arm. The primary reason is the inconsistent compile condition depending on the inclusion of config.h; while most of other code include pcm_local.h (that implicitly includes config.h) at first, pcm_direct.c doesn't do it, hence the access with direct plugins crashes. For fixing it, we need to include config.h at the beginning. But, it's better to include pcm_local.h for all relevant code for consistency. The patch does it, and also it adds the guard in pcm_local.h for double inclusions. Fixes: ad3a8b8 ("reshuffle included files to include config.h as first") Link: #352 Signed-off-by: Takashi Iwai <tiwai@suse.de>
Since the default change in 1.2.10 Kodi 32 or RPi was crashing. Revert to previous with — disable-largefile
Ref:
The text was updated successfully, but these errors were encountered: