Opened 2 hours ago

Last modified 82 minutes ago

#11221 open defect

TSAN reported races

Reported by: Clément Bœsch Owned by: elenril
Priority: normal Component: avcodec
Version: git-master Keywords: race tsan
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

TSAN reports a few race instances: https://fate.ffmpeg.org/report.cgi?slot=x86_64-archlinux-gcc-tsan&time=20241002095506

Most of them seem to happen in padding_bug_score in h263 decoder and gray/non_gray in h264 decoder. There are a few others (for example h264 slice_table also seems affected) but these two are the main contenders.

With slice threading, HEVC seems to show up as well: https://fate.ffmpeg.org/report.cgi?time=20241002101743&slot=x86_64-archlinux-gcc-tsan-slices

This HEVC slice threading issue seems to be the cause of actual deadlocks, even without TSAN: https://fate.ffmpeg.org/report.cgi?slot=x86_64-archlinux-gcc-threads-misc&time=20241001152120

Change History (1)

comment:1 by elenril, 82 minutes ago

Owner: set to elenril
Reproduced by developer: set
Status: newopen
Note: See TracTickets for help on using tickets.