Closed
Bug 486401
Opened 16 years ago
Closed 16 years ago
Fix MMGC_MEMORY_PROFILER builds for crashes and enable it
Categories
(Tamarin Graveyard :: Garbage Collection (mmGC), defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rishah, Unassigned)
References
Details
Attachments
(1 file)
5.14 KB,
patch
|
treilly
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8
Build Identifier:
MMGC_MEMORY_PROFILER is not enabled for Debug/Debug_Debugger or any of the release builds. We need to enable it for Windows builds.
Also, enabling the define results in few crashes for 2 reasons -
1. Invalid usage of MMGC_MEM_TAG and MMGC_MEM_TYPE
2. Typo in VMPI_captureStackTrace implementation for Windows
Reproducible: Always
Steps to Reproduce:
1. Turn on MMGC_MEMORY_PROFILER in winbuild.h
2. Run any test case
Actual Results:
Crash
Expected Results:
No crash.
Reporter | ||
Comment 1•16 years ago
|
||
Made fix for #2 and #1 at couple of places. Need to run buildbot to identify other places, if any.
Comment 2•16 years ago
|
||
There's a typo in VMPI_captureStackTrace that's passing bufferSize instead of buffer you'll probably encounter, porting API sanfu...
Updated•16 years ago
|
Summary: Fix MMGC_MEMORY_PROFILER builds for crashes and enable it for Win debug targets → Fix MMGC_MEMORY_PROFILER builds for crashes and enable it
Comment 4•16 years ago
|
||
the state of the art right now is enabled for DEBUG builds for mac and all builds for win
Reporter | ||
Comment 5•16 years ago
|
||
Attachment #371743 -
Flags: review?(treilly)
Reporter | ||
Comment 6•16 years ago
|
||
#include <execinfo.h> in MMgcPortMac.h is giving compilation errors on buildbot. Locally, i need to explicitly select 10.5 SDK for it to pass.
Are you aware of what needs to be changed?
If this is not solved then I would turn off memory profiler on Mac because I want to push the patches soon.
Updated•16 years ago
|
Attachment #371743 -
Flags: review?(treilly) → review+
Comment 7•16 years ago
|
||
Currently we compile against 10.4 for all mac builds except for the 64bit builds (intel and PPC) which is only supported in 10.5.
Is this going to be a new requirement that we will no longer be supporting 10.4?
The setting of which OSX SDK to use is in configure.py lines 177-191
Reporter | ||
Comment 8•16 years ago
|
||
I believe the answer is yes.
execinfo.h is only supported in 10.5 and beyond and it is required for the stack backtrace functionality for profiler.
Comment 9•16 years ago
|
||
(In reply to comment #7)
> Is this going to be a new requirement that we will no longer be supporting
> 10.4?
absolutely not! Flash will continue to require 32-bit builds that use the 10.4sdk as it will be a supported platform for a while yet. requiring the 10.5sdk for 32-bit builds is a nonstarter.
Comment 10•16 years ago
|
||
Time to commence the FR merge of MMgc into TR, this is fixed there.
Comment 11•16 years ago
|
||
Note that we can/should use/assume 10.5 for 64 bit Mac builds.
Comment 12•16 years ago
|
||
And iPhone too.
Reporter | ||
Comment 13•16 years ago
|
||
changeset 1732 7caaae3e8cbf
Fixes for windows.
Leaving the bug open since the Mac SDK issue has not been resolved.
Reporter | ||
Comment 14•16 years ago
|
||
Profiler enabled on Mac in changeset 1761, 8e0de35a8b7e
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•