Closed Bug 1194933 Opened 10 years ago Closed 9 years ago

ASan: SEGV in FastConvertYUVToRGB32Row

Categories

(Core :: Graphics: Layers, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox43 --- affected

People

(Reporter: tsmith, Unassigned)

References

Details

(4 keywords, Whiteboard: [gfx-noted])

Attachments

(6 files)

Attached file call_stack.txt
No description provided.
Attached video test_case.webm
Component: Audio/Video: Playback → Graphics: Layers
To be clear - the workflow is to try and play back the above webm movie on Ubuntu, and this error happens.
I tried loading this in a Linux ASAN build, and I get no crash. I just see a message: "Video can't be played because the file is corrupt." Same behavior on a regular build as well. So more information would be nice... What version of Firefox did this happen on for you? Does this happen on nightly?
Flags: needinfo?(twsmith)
I am seeing this on nightly (Linux ASan). The latest build I tried was from ~12 hours ago.
Flags: needinfo?(twsmith)
(In reply to Lee Salzman [:eihrul] from comment #3) > I tried loading this in a Linux ASAN build, and I get no crash. I just see a > message: "Video can't be played because the file is corrupt." Same behavior > on a regular build as well. I get the same result (video can't be played) with 2015-08-25's linux64 debug asan nightly on Debian Stretch.
(In reply to Andrew Comminos [:acomminos] from comment #5) > (In reply to Lee Salzman [:eihrul] from comment #3) > > I tried loading this in a Linux ASAN build, and I get no crash. I just see a > > message: "Video can't be played because the file is corrupt." Same behavior > > on a regular build as well. > > I get the same result (video can't be played) with 2015-08-25's linux64 > debug asan nightly on Debian Stretch. I was seeing this fairly frequently with my fuzzer. I'll update the ff build and post an update when I get some fresh results.
Flags: needinfo?(twsmith)
I tried to reproduce this on Fedora 22 (all updates installed) with today's ASAN Linux64 Nightly and it does not reproduce for me. Tyson, does this replicate outside of your fuzzer (ie. if you try to load the video manually)? If so, are there steps beyond just opening the webm file in Firefox that trigger this bug? All I get is an error stating the video is corrupt. If this only reproduces in your fuzzer we'll likely need access to it to regress this further. Alternatively I'd be happy to provide instructions so you could regress this locally. In addition, can you please let me know your specific system configuration? It'd be useful to know exactly which version of Ubuntu you're using, your Desktop Environment and version, as well as any changes you've made to the default system configuration. At this point it might also help to have a copy of your about:support page attached to this bug. Thanks
Attached file about-support.txt
(In reply to Anthony Hughes, QA Mentor (:ashughes) from comment #7) > Tyson, does this replicate outside of your fuzzer (ie. if you try to load > the video manually)? No. This issue seems to have a race component to it :( > In addition, can you please let me know your specific system configuration? Ubuntu 14.04.3 Desktop (and Server using xvfb on other fuzzing boxes) > At this point it might also help to have a > copy of your about:support page attached to this bug. Attached. At the moment I see this issue every 10 minutes or so. I'd be willing to try other builds if anyone has any suggestions.
Flags: needinfo?(twsmith)
Blocks: fuzzing-webm
Could bug 1197935 be related to this issue?
Group: core-security → gfx-core-security
Whiteboard: [gfx-noted]
The duped bug has some more specific steps to reproduce this. Maybe somebody can try to take a look again? (FWIW, this seems to involve the same pref as bug 1203763, but I don't know if that means it is related.)
Flags: needinfo?(lsalzman)
(In reply to Andrew McCreight [:mccr8] from comment #12) > The duped bug has some more specific steps to reproduce this. Maybe somebody > can try to take a look again? (FWIW, this seems to involve the same pref as > bug 1203763, but I don't know if that means it is related.) I tried reproducing again, but still no luck.
Flags: needinfo?(lsalzman)
I updated to a new firefox build and put some fuzzers on this. I'll see what comes up in the next 24h or so.
Flags: needinfo?(twsmith)
I let the fuzzers run over the weekend and I have not seen this issue.
Flags: needinfo?(twsmith)
I was able to find an invalid read with valgrind that looks like it may be related.
Attached video test_case_valgrind.webm
Anything we can tell from the stack that would let us get a version built for Tyson to try and get us more information, if this is still not locally reproducible?
Flags: needinfo?(lsalzman)
(In reply to Milan Sreckovic [:milan] from comment #18) > Anything we can tell from the stack that would let us get a version built > for Tyson to try and get us more information, if this is still not locally > reproducible? The stack just points into the same big uncommented block of assembly. You could hypothetically try disabling the SSE support in ConvertYCbCrToRGB32 to see if it is just a bug in the assembly code itself and the unaccelerated code is fine, or if it is a deeper issue that exists in both paths. It would take a bit to digest what the assembly is doing there, so would be better to verify that the problem is specifically in the assembly first.
Flags: needinfo?(lsalzman)
This one looks a little different. Figured I'd add it just in case.
Tyson, can you still reproduce these issues? Maybe this should be closed as incomplete and new bugs filed for new test cases? Thanks.
Flags: needinfo?(twsmith)
I will close this and log anything that pops up.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(twsmith)
Resolution: --- → WORKSFORME
Group: gfx-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: