Closed Bug 1654483 Opened 4 years ago Closed 4 years ago

AssertionError: No line resembling a stack frame was found

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr78 --- fixed
firefox81 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

The xpcshell self test fails on mac in testAssertStack, failing to find stack frames in the output from a nsIDebug2.assertion(). A MOZ_CRASH does happen, but there is not stack dump from the assertion like on e.g. Linux.

Turns out this is happening because the test is not skipped like it currently is due to some subtlety in my changes.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID

Scrap that, it's not currently skipped.

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

Turns out it's a manifestation of bug 1515229. We skip too many frames, so we skip over the nsDebugImpl::Assertion frame, and that's the last frame because we have JS code calling that through an xpcom vtable, so there aren't any frames left to be printed out, and the test fails because of that.

Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → DUPLICATE

Actually, there is something that can be done here, independently of bug 1515229: make the caller of nsDebugImpl::Assertion visible to the stack walker.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/b825fad12b06
Enable the CFI directives for NS_InvokeByIndex on macOS. r=froydnj
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Comment on attachment 9165806 [details]
Bug 1654483 - Enable the CFI directives for NS_InvokeByIndex on macOS.

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Resolves xpcshell test failures
  • User impact if declined: None
  • Fix Landed on Version: 81
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a build-only patch
  • String or UUID changes made by this patch:
Attachment #9165806 - Flags: approval-mozilla-esr78?
Attachment #9165806 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: