[x264-devel] threading problem on NetBSD

Loren Merritt lorenm at u.washington.edu
Thu Oct 9 10:08:36 CEST 2008


On Wed, 8 Oct 2008, hbent at cs.oberlin.edu wrote:

> I am running NetBSD 4.99.72 and have been having problems with x264
> stalling any time I use more than one thread.  It will get a varying
> length of the way through the file I'm trying to encode - it seems to
> differ each time - and just stop, dead.  I built x264 with --enable-debug
> and attached gdb to the process once it stopped, and here's what I got:

Dunno what's wrong, and the gdb-over-email protocol is too cumbersome for 
me to just try things, so I can only give hints:
Look at frame->i_lines_completed and the associated mutex and cv. After 
the hang, is frame->i_lines_completed >= the threshold in 
x264_frame_cond_wait? Was it somehow written outside the mutex? Did you 
somehow miss a broadcast?

--Loren Merritt


More information about the x264-devel mailing list