Closed Bug 1167145 Opened 9 years ago Closed 9 years ago

nsBlockFrame: member call on null pointer of type

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file)

+++ 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'
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)
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)
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!)
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
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: 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+
https://hg.mozilla.org/mozilla-central/rev/ea0858f7f19f
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: