Closed Bug 1457985 Opened Last year Closed Last year

Crash near null [@ nsStyleContentData::nsStyleContentData]

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox59 --- unaffected
firefox60 --- unaffected
firefox61 --- fixed

People

(Reporter: tsmith, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Keywords: crash, csectype-nullptr, testcase)

Attachments

(2 files)

Attached file testcase.html
==101648==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7ff8fe2476fd bp 0x7ffd415e0000 sp 0x7ffd415dffe0 T0)
==101648==The signal is caused by a READ memory access.
==101648==Hint: address points to the zero page.
    #0 0x7ff8fe2476fc in RefPtr src/obj-firefox/dist/include/mozilla/RefPtr.h:92:7
    #1 0x7ff8fe2476fc in nsStyleContentAttr src/obj-firefox/dist/include/nsStyleStruct.h:2622
    #2 0x7ff8fe2476fc in nsStyleContentData::nsStyleContentData(nsStyleContentData const&) src/layout/style/nsStyleStruct.cpp:4164
    #3 0x7ff8fe2478c4 in nsStyleContentData::operator=(nsStyleContentData const&) src/layout/style/nsStyleStruct.cpp:4191:14
    #4 0x7ff8fe15343e in Gecko_CopyStyleContentsFrom src/layout/style/ServoBindings.cpp:1794:28
    #5 0x7ff903e673d5 in style::properties::apply_declarations::hb48199311a687ba5 src/obj-firefox/toolkit/library/x86_64-unknown-linux-gnu/release/build/style-23452ca1c8d535e0/out/properties.rs:135557
    #6 0x7ff903e673d5 in style::properties::cascade::h5cfd119e5d6e9651 src/obj-firefox/toolkit/library/x86_64-unknown-linux-gnu/release/build/style-23452ca1c8d535e0/out/properties.rs:135160
    #7 0x7ff903e65b9a in style::stylist::Stylist::cascade_style_and_visited::h4c60fdd02db0b981 src/servo/components/style/stylist.rs:898
    #8 0x7ff903e6520f in _$LT$style..style_resolver..StyleResolverForElement$LT$$u27$a$C$$u20$$u27$ctx$C$$u20$$u27$le$C$$u20$E$GT$$GT$::cascade_style_and_visited::hfeb66623b2dbd228 src/servo/components/style/style_resolver.rs:304
    #9 0x7ff903e64321 in _$LT$style..style_resolver..StyleResolverForElement$LT$$u27$a$C$$u20$$u27$ctx$C$$u20$$u27$le$C$$u20$E$GT$$GT$::cascade_primary_style::h9d7a1b1e682a945c src/servo/components/style/style_resolver.rs:214
    #10 0x7ff903e62ccb in _$LT$style..style_resolver..StyleResolverForElement$LT$$u27$a$C$$u20$$u27$ctx$C$$u20$$u27$le$C$$u20$E$GT$$GT$::resolve_primary_style::ha40e905ed007f280 src/servo/components/style/style_resolver.rs:175
    #11 0x7ff903e62ccb in _$LT$style..style_resolver..StyleResolverForElement$LT$$u27$a$C$$u20$$u27$ctx$C$$u20$$u27$le$C$$u20$E$GT$$GT$::resolve_style::hf91f9c670d271331 src/servo/components/style/style_resolver.rs:230
    #12 0x7ff903e4c76f in _$LT$style..style_resolver..StyleResolverForElement$LT$$u27$a$C$$u20$$u27$ctx$C$$u20$$u27$le$C$$u20$E$GT$$GT$::resolve_style_with_default_parents::_$u7b$$u7b$closure$u7d$$u7d$::h4f18264722e14166 src/servo/components/style/style_resolver.rs:268
    #13 0x7ff903e4c76f in style::style_resolver::with_default_parent_styles::h244a30c35d77879f src/servo/components/style/style_resolver.rs:102
    #14 0x7ff903e4c76f in _$LT$style..style_resolver..StyleResolverForElement$LT$$u27$a$C$$u20$$u27$ctx$C$$u20$$u27$le$C$$u20$E$GT$$GT$::resolve_style_with_default_parents::h35f95c79263d0f1a src/servo/components/style/style_resolver.rs:267
    #15 0x7ff903e4c76f in style::traversal::compute_style::h7a0ba106debb6ff9 src/servo/components/style/traversal.rs:636
    #16 0x7ff903e49494 in style::traversal::recalc_style_at::h6b7b50a2dd7a4cf5 src/servo/components/style/traversal.rs:434
    #17 0x7ff903e49494 in _$LT$style..gecko..traversal..RecalcStyleOnly$LT$$u27$recalc$GT$$u20$as$u20$style..traversal..DomTraversal$LT$style..gecko..wrapper..GeckoElement$LT$$u27$le$GT$$GT$$GT$::process_preorder::h7346c36589874102 src/servo/components/style/gecko/traversal.rs:37
    #18 0x7ff903e49494 in style::driver::traverse_dom::h4179d9918fc10047 src/servo/components/style/driver.rs:111
    #19 0x7ff903e49494 in geckoservo::glue::traverse_subtree::h5e683fdce93e5ddf src/servo/ports/geckolib/glue.rs:283
    #20 0x7ff903e48c50 in Servo_TraverseSubtree src/servo/ports/geckolib/glue.rs:341
    #21 0x7ff8fe18bcb7 in mozilla::ServoStyleSet::StyleDocument(mozilla::ServoTraversalFlags) src/layout/style/ServoStyleSet.cpp:1019:7
    #22 0x7ff8fe34059f in mozilla::RestyleManager::DoProcessPendingRestyles(mozilla::ServoTraversalFlags) src/layout/base/RestyleManager.cpp:2967:20
    #23 0x7ff8fe2f8a83 in ProcessPendingRestyles src/layout/base/RestyleManager.cpp:3076:3
    #24 0x7ff8fe2f8a83 in mozilla::PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush) src/layout/base/PresShell.cpp:4292
    #25 0x7ff8f95a3b08 in FlushPendingNotifications src/obj-firefox/dist/include/nsIPresShell.h:592:5
    #26 0x7ff8f95a3b08 in nsIDocument::FlushPendingNotifications(mozilla::ChangesToFlush) src/dom/base/nsDocument.cpp:7587
    #27 0x7ff8f81f3be8 in nsDocLoader::DocLoaderIsEmpty(bool) src/uriloader/base/nsDocLoader.cpp:700:14
    #28 0x7ff8f81f600c in nsDocLoader::OnStopRequest(nsIRequest*, nsISupports*, nsresult) src/uriloader/base/nsDocLoader.cpp:632:5
    #29 0x7ff8f81f702c in non-virtual thunk to nsDocLoader::OnStopRequest(nsIRequest*, nsISupports*, nsresult) src/uriloader/base/nsDocLoader.cpp
    #30 0x7ff8f660b02a in mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult) src/netwerk/base/nsLoadGroup.cpp:629:28
    #31 0x7ff8f95a9a7a in DoUnblockOnload src/dom/base/nsDocument.cpp:8422:18
    #32 0x7ff8f95a9a7a in nsDocument::UnblockOnload(bool) src/dom/base/nsDocument.cpp:8344
    #33 0x7ff8f958a5e4 in nsIDocument::DispatchContentLoadedEvents() src/dom/base/nsDocument.cpp:5328:3
    #34 0x7ff8f96a14d4 in applyImpl<nsIDocument, void (nsIDocument::*)()> src/obj-firefox/dist/include/nsThreadUtils.h:1165:12
    #35 0x7ff8f96a14d4 in apply<nsIDocument, void (nsIDocument::*)()> src/obj-firefox/dist/include/nsThreadUtils.h:1171
    #36 0x7ff8f96a14d4 in mozilla::detail::RunnableMethodImpl<nsIDocument*, void (nsIDocument::*)(), true, (mozilla::RunnableKind)0>::Run() src/obj-firefox/dist/include/nsThreadUtils.h:1216
    #37 0x7ff8f64222f9 in nsThread::ProcessNextEvent(bool, bool*) src/xpcom/threads/nsThread.cpp:1090:14
    #38 0x7ff8f643dd30 in NS_ProcessNextEvent(nsIThread*, bool) src/xpcom/threads/nsThreadUtils.cpp:519:10
    #39 0x7ff8f731b6ea in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) src/ipc/glue/MessagePump.cpp:97:21
    #40 0x7ff8f726ff09 in RunInternal src/ipc/chromium/src/base/message_loop.cc:326:10
    #41 0x7ff8f726ff09 in RunHandler src/ipc/chromium/src/base/message_loop.cc:319
    #42 0x7ff8f726ff09 in MessageLoop::Run() src/ipc/chromium/src/base/message_loop.cc:299
    #43 0x7ff8fdd3795a in nsBaseAppShell::Run() src/widget/nsBaseAppShell.cpp:157:27
    #44 0x7ff901d9072b in nsAppStartup::Run() src/toolkit/components/startup/nsAppStartup.cpp:290:30
    #45 0x7ff901f961bc in XREMain::XRE_mainRun() src/toolkit/xre/nsAppRunner.cpp:4827:22
    #46 0x7ff901f992fc in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) src/toolkit/xre/nsAppRunner.cpp:4972:8
    #47 0x7ff901f9a7c4 in XRE_main(int, char**, mozilla::BootstrapConfig const&) src/toolkit/xre/nsAppRunner.cpp:5064:21
    #48 0x4f168b in do_main src/browser/app/nsBrowserApp.cpp:231:22
    #49 0x4f168b in main src/browser/app/nsBrowserApp.cpp:304
    #50 0x7ff915c1d82f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
    #51 0x420f48 in _start (firefox+0x420f48)
Flags: in-testsuite?
Assignee: nobody → emilio
Blocks: 1452627
Attachment #8972098 - Flags: review?(xidorn+moz)
Comment on attachment 8972098 [details]
Bug 1457985: Fix a typo in nsStyleContentData copy-constructor.

https://reviewboard.mozilla.org/r/240826/#review246638
Attachment #8972098 - Flags: review?(xidorn+moz) → review+
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/25599bf5604d
Fix a typo in nsStyleContentData copy-constructor. r=xidorn
https://hg.mozilla.org/mozilla-central/rev/25599bf5604d
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.