Closed
Bug 707648
Opened 13 years ago
Closed 13 years ago
make check fails on 10.6 with clang (Assertion failure: OnLionOrLater() || gCriticalAddress.mAddr != NULL)
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla11
People
(Reporter: standard8, Assigned: espindola)
References
Details
(Keywords: regression)
Attachments
(4 files)
I'm trying to run make check in debug mode on Mac 10.6 with clang, I see this:
Assertion failure: OnLionOrLater() || gCriticalAddress.mAddr != NULL
If I run it in compiled with gcc I get no assertions. Commenting out the line on clang runs successfully.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•13 years ago
|
||
This blocks a switch to clang, not enabling leak tests on gcc built binaries.
I will debug this.
No longer blocks: 696376
Reporter | ||
Comment 2•13 years ago
|
||
This was the mozconfig I used for compiling TB.
Assignee | ||
Comment 3•13 years ago
|
||
I have not been able to reproduce this on m-c. What repository are you using? what revision?
Assignee | ||
Comment 4•13 years ago
|
||
Sorry, I am having a hard time reproducing this. I have built the same version of clang on 10.6 and tried you exact mozconfig on comm-central (cd77f678aa1c).
The only failures I got from make check were from bug529130.js complaining about too much recursion, which I believe is because clang -O0 produces binaries that use a lot of stack space.
Assignee | ||
Comment 5•13 years ago
|
||
This fixes the case of a 64 bit OS X without unwind.h.
Attachment #579197 -
Flags: review?(ehsan)
Assignee | ||
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
Comment on attachment 579197 [details] [diff] [review]
Only try to init the critical range if we are able to walk the stack
This patch does not fix the crash for me. The real issue, as far as I can tell, is that the set of conditions for this code to be compiled is different with the set of conditions for a useful implementation of NS_StackWalk to be compiled.
Attachment #579197 -
Flags: review?(ehsan)
Updated•13 years ago
|
Blocks: clang-macosx
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
Assignee | ||
Comment 10•13 years ago
|
||
Note that OnLionOrLater is not on the .ii file. If you are still seeing an assert with it, we are missing a dependency somewhere.
Comment 11•13 years ago
|
||
Comment on attachment 579197 [details] [diff] [review]
Only try to init the critical range if we are able to walk the stack
I don't know what was happening last time that I tried this, but this is definitely fixing the crashes. So, r=me.
Attachment #579197 -
Flags: review+
Assignee | ||
Comment 12•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #579197 -
Flags: checkin+
Comment 13•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Reporter | ||
Comment 14•13 years ago
|
||
Comment on attachment 579197 [details] [diff] [review]
Only try to init the critical range if we are able to walk the stack
This is now biting me on the mozilla-esr10 branch, can we backport it there as well?
The fix has been shipped in 11 already.
Attachment #579197 -
Flags: approval-mozilla-esr10?
Comment 15•13 years ago
|
||
Comment on attachment 579197 [details] [diff] [review]
Only try to init the critical range if we are able to walk the stack
[triage comment]
esr branch is strictly production and afaik no one should be doing clang builds here, please re-nom if there's a case for how this affects the user or production builds.
Attachment #579197 -
Flags: approval-mozilla-esr10? → approval-mozilla-esr10-
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
•