The default bug view has changed. See this FAQ.

Use a volatile pointer to force a trap.

RESOLVED FIXED in mozilla6

Status

()

Core
XPCOM
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: espindola, Assigned: espindola)

Tracking

Trunk
mozilla6
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Created attachment 532808 [details] [diff] [review]
Use a volatile pointer to force a trap.

Clang issues the warning:
    
mozalloc_abort.cpp:64:22: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
    
And sure enough, TouchBadMemory is currently broken with clang. That breaks mozalloc_abort which breaks NS_DebugBreak which breaks the crashreport test.
Attachment #532808 - Flags: review?(ehsan)
Comment on attachment 532808 [details] [diff] [review]
Use a volatile pointer to force a trap.

r=me.

Nit: can you please fix the comment indentation?  Thanks!
Attachment #532808 - Flags: review?(ehsan) → review+
Created attachment 532812 [details] [diff] [review]
Updated patch.
Attachment #532808 - Attachment is obsolete: true
Attachment #532812 - Flags: review?(ehsan)
Attachment #532812 - Flags: review?(ehsan) → review?
Attachment #532812 - Flags: review?
Keywords: checkin-needed
http://hg.mozilla.org/projects/cedar/rev/7839f528cda0
Assignee: nobody → respindola
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Man, I'm too used to landing stuff on m-c now!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: fixed-in-cedar
Pushed:
http://hg.mozilla.org/mozilla-central/rev/7839f528cda0
Status: REOPENED → RESOLVED
Last Resolved: 6 years ago6 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: fixed-in-cedar
Target Milestone: --- → mozilla6
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.