Bug 41754 - conf_pulse_hook_load_if_running allocates shm at a dangerous time
Summary: conf_pulse_hook_load_if_running allocates shm at a dangerous time
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: alsa (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 10:24 UTC by Paul Davis
Modified: 2018-07-30 10:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Paul Davis 2011-10-13 10:24:15 UTC
if JACK is started in its default real-time mode (with memlockall in effect), it will trigger a call to the libasound function  snd_config_search_definition(). This will eventually result in a call to conf_pulse_hook_load_if_running() within libasound_module_conf_pulse.so, which will in turn eventually call  pa_shm_create_rw(), which allocates 64MB of shared memory. JACK's RT mode forces this to be pinned into physical RAM, which on a "small memory" system (e.g. 700MB with Ubuntu 10.10 (32 bit system) will cause JACK to bus error and the overall system to behave very erratically from a user perspective due to OOM-like conditions.

it does not seem appropriate for PA to be allocating shm in response to libasound checking device definitions.
Comment 1 Paul Davis 2011-10-13 10:25:09 UTC
(minor error in report: the system on which this was observed is a 64 bit install, thus making the 770MB of RAM even more limited).
Comment 3 Paul Davis 2011-10-13 10:56:20 UTC
c.f. http://pulseaudio.org/ticket/806
Comment 4 GitLab Migration User 2018-07-30 10:21:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/367.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.