fredericgermain / LeakTracer

Continuation of the LeakTracer project
http://www.andreasen.org/LeakTracer/
GNU General Public License v2.0
315 stars 120 forks source link

LeakTracer has some problems with alsa function such as snd_pcm_open() or snd_mixer_attach(). #15

Open fedragon56691352 opened 9 months ago

fedragon56691352 commented 9 months ago

When execution sequence is: ->leaktracer_startMonitoringAllThreads() ->snd_pcm_open() or snd_mixer_attach() ->......

The program will deadlock.

When execution sequence is: ->snd_pcm_open() or snd_mixer_attach() ->leaktracer_startMonitoringAllThreads() ->......

The program run normally.

fredericgermain commented 9 months ago

Hi,

Could you share the backtrace of the thread/two threads that is/are in deadlock? I remember it could happen quite often, but some little adjustment could be needed.

If you launch/attach your program with gdb, the command thread apply all bt display all backstacks.