Bug 10249

Summary: Temporarily disable tests that are causing kernel panics
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: adele, darin, ddkilzer, mitz, oliver
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Make ImageDiff not use CoreImage hyatt: review+

Alexey Proskuryakov
Reported 2006-08-04 05:51:18 PDT
My MBP recently had a kernel panic when running layout tests in pixel mode. Bug 9830 comment 2 suggests that this is not an isolated issue. The panic log had ATI drivers in the backtrace; my unfounded suspicion is on CI filters (just because I recently read somewhere that CoreImage often causes panics with ATI drivers).
Attachments
Make ImageDiff not use CoreImage (7.15 KB, patch)
2007-01-11 07:33 PST, mitz
hyatt: review+
David Kilzer (:ddkilzer)
Comment 1 2006-08-04 06:08:45 PDT
Alexey, did your screen saver come on while the pixel tests were running? I've had my PowerBook G4 crash the kernel twice when running pixel tests with the "Flurry" screen saver running. (Both times I left the tests running after heading to work for the day, then returned to find the PowerBook had locked up. Both times Crash Reporter or whatever handles kernel crashes was able to send some info to Apple about the crash.)
Darin Adler
Comment 2 2006-08-04 06:52:00 PDT
Yes, those of us at Apple are aware that we get kernel panics when running layout tests. And yes, we do think the CoreImage filters are the cause. But this is not a bug in WebKit. A misbehaving user program should not be able to cause a kernel panic -- it has to be a bug in a driver or the kernel. Brady Eidson reported this to the appropriate teams at Apple and they're investigating. But we should not keep a bug open in Bugzilla about this unless we think there's something the WebKit team can do about this, and I think there's not.
Alexey Proskuryakov
Comment 3 2006-08-07 08:51:43 PDT
(In reply to comment #2) > But we should not keep a bug open in Bugzilla about this unless > we think there's something the WebKit team can do about this, and I think > there's not. My idea was that we could probably at least identify and disable the offending tests in the time being.
Darin Adler
Comment 4 2006-08-08 09:47:22 PDT
(In reply to comment #3) > My idea was that we could probably at least identify and disable the offending > tests in the time being. That seems like a good idea. It's OK if you want to reopen the bug especially if you change the title to make it clear that's what we're trying to do.
mitz
Comment 5 2006-12-17 15:19:27 PST
I thought it was the code in ImageDiff itself that was causing the kernel panics, not any code that runs inside WebKit, so any pixel failure can trigger the panic. If that's the case, it might help to add a "safe mode" or "slow mode" to DumpRenderTree that doesn't invoke ImageDiff or uses the software renderer to compute the difference image.
mitz
Comment 6 2007-01-11 07:33:24 PST
Created attachment 12360 [details] Make ImageDiff not use CoreImage This patch makes ImageDiff not cause kernel panics on at least one machine where it used to (2GHz MacBook Pro). The results difference images produced with this patch are equivalent but not identical to current ones: the CoreImage version amplified small differences. However the percentage of different pixels reported should be the same, and any difference, as small as one unit in on component, show in the difference image.
Dave Hyatt
Comment 7 2007-01-11 20:30:22 PST
Comment on attachment 12360 [details] Make ImageDiff not use CoreImage r=me
Mark Rowe (bdash)
Comment 8 2007-01-11 20:42:44 PST
Landed in r18789.
Note You need to log in before you can comment on or make changes to this bug.