Closed
Bug 1167145
Opened 10 years ago
Closed 10 years ago
nsBlockFrame: member call on null pointer of type
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(1 file)
1.25 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1167119 +++
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Steps to reproduce:
Add -fsanitize=null to compile options. This is second part of errors (#1165904):
- - - - -
Hidden among all the harfbuzz messages in bug 1167119 comment 0, there's one related to nsBlockFrame:
/home/marxin/Programming/gecko-dev/layout/generic/nsBlockFrame.cpp:6168:51: runtime error: member call on null pointer of type 'struct nsBlockFrame'
Assignee | ||
Comment 1•10 years ago
|
||
Martin, could you please confirm exactly what revision you're building. Line nsBlockFrame.cpp:6168 in mozilla-central right now is a blank line, but most likely code has just moved around slightly.
Flags: needinfo?(mliska)
Comment 2•10 years ago
|
||
Hi.
I've been using following commit: https://github.com/mozilla/gecko-dev/commit/46f922660fcbe120c160f50b769c7eef26258820.
Motivation is that I am not sure if current Mozilla trunk is capable of success built by LTO.
Anyway, as all other errors are going to be resolved, I'm going to test Mozilla inbound (trunk).
Thanks,
Martin
Flags: needinfo?(mliska)
Assignee | ||
Comment 3•10 years ago
|
||
OK, so I guess that's referring to the ->FindTrailingClear() call, as seen here?
http://hg.mozilla.org/mozilla-central/annotate/11e7ca322c9d/layout/generic/nsBlockFrame.cpp#l6168
That's now at line 6151, but I suspect the problem still exists. (Confirmation from your trunk test would be great, thanks!)
Comment 4•10 years ago
|
||
Right, just finished testing, I can confirm that:
/home/marxin/Programming/gecko-dev/layout/generic/nsBlockFrame.cpp:6151:51: runtime error: member call on null pointer of type 'struct nsBlockFrame'
Thanks,
Martin
Assignee | ||
Comment 5•10 years ago
|
||
Presumably this will prevent the error reported here. Is this sufficient, or does this indicate a deeper underlying problem of some kind?
Attachment #8608838 -
Flags: review?(dbaron)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Comment on attachment 8608838 [details] [diff] [review]
Check result of PrevInFlow() before trying to call a method on it
There might be something a little weird going on here, but I don't think it's worth digging into. (... I say after 10 minutes of doing exactly that.)
Attachment #8608838 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 7•10 years ago
|
||
![]() |
||
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•