[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52996] calling audiodevinfo() results in a se

From: Mike Miller
Subject: [Octave-bug-tracker] [bug #52996] calling audiodevinfo() results in a segfault on exit when JACK sound server is running
Date: Wed, 14 Feb 2018 19:26:15 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Follow-up Comment #9, bug #52996 (project octave):

I have a work in progress, diff attached.

jwe - would you mind taking a look at this? There are two changes, first
adding a static sentry object to make sure PortAudio is only initialized once,
and uninitialized at unload or exit. That part is simple and works.

The second change is to mlock whichever function calls Pa_Initialize the first
time, to avoid bad things happening with something like

>> p = audioplayer (...);
>> clear functions
>> play (p)
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault

But I have no known point at which I can call munlock. Should we add object
tracking so that we can safely munlock and allow these functions to be
unloaded if all corresponding audio objects have been cleared?

(file #43327)

Additional Item Attachment:

File name: portaudio.diff                 Size:4 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]