Closed
Bug 413019
Opened 17 years ago
Closed 13 years ago
crashes with WPO (-GL) in cairo
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla7
People
(Reporter: sayrer, Assigned: swsnyder)
References
Details
(Whiteboard: [ccbr][inbound])
Attachments
(1 file, 2 obsolete files)
2.26 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Bug 411639 turns this off for image decoders, pixman, xptcall, and cairo
Updated•17 years ago
|
Version: unspecified → Trunk
Reporter | ||
Comment 1•17 years ago
|
||
Correction, that's bug 411369. I'm filing this so I have something to point FIXME comments at.
Assignee | ||
Comment 2•15 years ago
|
||
Now that libpng no longer includes any assembly code, let alone MMX, can the -GL- work-around be removed from the build?
~/modules/libimg/png/Makefile.in:
ifeq ($(OS_ARCH),WINNT)
# FIXME: bug 413019
OS_COMPILE_CFLAGS += -GL-
endif
Assignee | ||
Comment 3•15 years ago
|
||
Also, from looking at the cairo/libpixman code in Gecko v1.9.1.1, it seems that there's no longer any MMX in assembly there either. The remaining ASM code is either GCC-specific or just used to get the x86 feature flags.
Comment 4•15 years ago
|
||
We could certainly try it, write a patch?
Assignee | ||
Comment 5•15 years ago
|
||
This patch removes the -GL- work-around in the Cairo and PNG libraries. I saw no adverse reactions to this in a PGO build of Firefox v3.5.1 (on a Pentium4-based Win2K/SP4 system).
The work-around is left intact in the libpixman library because removal caused crashes on Firefix start-up.
Assignee: nobody → swsnyder
Comment 6•15 years ago
|
||
Comment on attachment 389828 [details] [diff] [review]
Partial removal of PGO breakage work-around
If you could run your PGO build through the unittests I'd feel even better about this, but it's definitely worth a shot.
Attachment #389828 -
Flags: review+
Updated•15 years ago
|
Whiteboard: [ccbr]
Comment 7•15 years ago
|
||
Is this fix ready to check in?
Comment 8•15 years ago
|
||
I'd say it could stand a pass by the try server, but I'm pretty sure that doesn't do PGO builds. We have unittests on PGO builds on mozilla-central, so I think it should be pretty safe to checkin there. If it causes any bustage we can back it out.
Comment 9•15 years ago
|
||
Dietrich, possible perf win here, but needs testing. Maybe via the Places branch?
Assignee | ||
Comment 10•15 years ago
|
||
Restored PGO optimization to all libpixman sources files except pixman-mmx.c and pixman-sse2.c. Only these 2 files are adversely affected by VS2005/SP1 PGO. This patch applies cleanly to Firefox v3.6.4 Release Candidate Build #3
Tested under WinXP/SP3 on Pentium3 and Core2 Duo CPUs (to exercise the MMX and SSE2 code paths). As expected, the complete removal of the PGO disabling causes the browser to crash on start-up. The crashing is cured on on a given system by disabling PGO for the SIMD code path that that system uses at runtime. The other 24 source files can safely be optimized.
It is possible that the disabling of PGO is also required for source file pixman-vmx.c, but I can't test that.
Attachment #389828 -
Attachment is obsolete: true
Comment 11•14 years ago
|
||
In the time since comment 8 was made, the try server now does PGO builds, so a spin past the try server should be sufficient for testing.
Comment 12•13 years ago
|
||
Attachment #444630 -
Attachment is obsolete: true
Comment 13•13 years ago
|
||
passed on try server
http://tbpl.mozilla.org/?tree=Try&rev=b60bd9b73fd0
Comment 14•13 years ago
|
||
Comment on attachment 543049 [details] [diff] [review]
fix
Now this is passed on try server.
Should I retry this after changed to VS2010 (after next merge cycle)?
Also, I remove PGO workaround into jpeg. Because now, we switch to libjepg-turbo. (Original libjpeg + our SSE2 code had inline assembler.)
Attachment #543049 -
Flags: review?(ted.mielczarek)
Comment 15•13 years ago
|
||
Comment on attachment 543049 [details] [diff] [review]
fix
Review of attachment 543049 [details] [diff] [review]:
-----------------------------------------------------------------
This seems fine. I wouldn't worry about re-testing with Visual C++ 2010, we should be able to see if our crash-stats change when we switch.
Attachment #543049 -
Flags: review?(ted.mielczarek) → review+
Comment 16•13 years ago
|
||
Whiteboard: [ccbr] → [ccbr][inbound]
Comment 17•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Comment 18•13 years ago
|
||
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
I visually inspected the code changes. Marking as Verified Fixed as per bug 659997 Comment 7.
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•