[libbluray-devel] possible non thread safeness in bd_open() path

Shaya Potter spotter at gmail.com
Tue Apr 28 16:37:26 CEST 2020


so I built a fuse file system on top of libbluray, and I could get it to
crash on a regular basis with error in libc (complaining about a double
free).  (really simple fs, just Open returns a handle that has the bd_open
handle and read/seek are passed through to the bd_opened'd handle.

Once I protected the bd_open (and select title / get_title_info) path with
a mutex, it seems to have stabilized (but could also just be randomness
that it hasn't struck yet)

I realize that most people probably dont use libbluray in a multithreaded
application, but wondering if anyone has any ideas.

thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libbluray-devel/attachments/20200428/ee0da965/attachment.html>


More information about the libbluray-devel mailing list