Closed Bug 1827689 Opened 3 years ago Closed 3 years ago

Perma [Tier 2] Hit MOZ_CRASH(attempt to subtract with overflow) at /builds/worker/checkouts/gecko/servo/components/to_shmem/lib.rs:509

Categories

(Core :: CSS Parsing and Computation, defect, P5)

defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox112 --- unaffected
firefox113 --- unaffected
firefox114 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: emilio)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [retriggered])

Attachments

(1 obsolete file)

Filed by: nbeleuzu [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=412211354&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OnwE_-67TNW0TpAAtZ7WRA/runs/0/artifacts/public/logs/live_backing.log


[task 2023-04-12T17:21:44.031Z] 17:21:44     INFO - TEST-INFO | started process GECKO(1856)
[task 2023-04-12T17:21:44.145Z] 17:21:44     INFO - GECKO(1856) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_168131887013877\AppData\Local\Temp\tmpym1yrb_t.mozrunner\runtests_leaks.log
[task 2023-04-12T17:21:44.156Z] 17:21:44     INFO - GECKO(1856) | [7656, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:345
[task 2023-04-12T17:21:44.176Z] 17:21:44     INFO - GECKO(1856) | [7656, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-12T17:21:44.192Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656, Main Thread] WARNING: Rejected attempt to change type of pref extensions.formautofill.creditCards.available's user value from bool to string: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:1896
[task 2023-04-12T17:21:44.223Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-12T17:21:44.239Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-12T17:21:44.270Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-12T17:21:44.278Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-12T17:21:44.692Z] 17:21:44     INFO - GECKO(1856) | [WARN  rkv::backend::impl_safe::environment] `load_ratio()` is irrelevant for this storage backend.
[task 2023-04-12T17:21:44.880Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 545a900 == 1 [pid = 7656] [id = 0]
[task 2023-04-12T17:21:44.895Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (1483ea60) [pid = 7656] [serial = 1] [outer = 0]
[task 2023-04-12T17:21:44.901Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (1485f200) [pid = 7656] [serial = 2] [outer = 1483ea60]
[task 2023-04-12T17:21:44.906Z] 17:21:44     INFO - GECKO(1856) | [Parent 7656, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-12T17:21:44.913Z] 17:21:44     INFO - GECKO(1856) | Hit MOZ_CRASH(attempt to subtract with overflow) at /builds/worker/checkouts/gecko/servo/components/to_shmem/lib.rs:509
[task 2023-04-12T17:21:45.177Z] 17:21:45     INFO -  Initializing stack-fixing for the first stack frame, this may take a while...
[task 2023-04-12T17:22:06.513Z] 17:22:06     INFO - GECKO(1856) | #01: RustMozCrash(char const*, int, char const*) [mozglue/static/rust/wrappers.cpp:17]
[task 2023-04-12T17:22:06.524Z] 17:22:06     INFO - GECKO(1856) | #02: mozglue_static::panic_hook(core::panic::panic_info::PanicInfo*) [mozglue/static/rust/lib.rs:91]
[task 2023-04-12T17:22:06.525Z] 17:22:06     INFO - GECKO(1856) | #03: core::ops::function::Fn::call<void (*)(ref$<core::panic::panic_info::PanicInfo>),tuple$<ref$<core::panic::panic_info::PanicInfo> > >(void (**)(core::panic::panic_info::PanicInfo*), core::panic::panic_info::PanicInfo*) [/rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/ops/function.rs:79]
[task 2023-04-12T17:22:06.526Z] 17:22:06     INFO - GECKO(1856) | #04: std::panicking::rust_panic_with_hook() [git:github.com/rust-lang/rust:library/std/src/panicking.rs:2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74:692]
[task 2023-04-12T17:22:06.527Z] 17:22:06     INFO - GECKO(1856) | #05: std::panicking::begin_panic_handler::closure$0() [git:github.com/rust-lang/rust:library/std/src/panicking.rs:2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74:577]
[task 2023-04-12T17:22:06.527Z] 17:22:06     INFO - GECKO(1856) | #06: std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>() [git:github.com/rust-lang/rust:library/std/src/sys_common/backtrace.rs:2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74:137]
[task 2023-04-12T17:22:06.528Z] 17:22:06     INFO - GECKO(1856) | #07: to_shmem::impl$15::to_shmem<selectors::builder::SpecificityAndFlags,enum2$<selectors::parser::Component<style::gecko::selector_parser::SelectorImpl> > >(servo_arc::ThinArc<selectors::builder::SpecificityAndFlags,enum2$<selectors::parser::Component<style::gecko::selector_parser::SelectorImpl> > >*, to_shmem::SharedMemoryBuilder*) [servo/components/to_shmem/lib.rs:468]
[task 2023-04-12T17:22:06.529Z] 17:22:06     INFO - GECKO(1856) | #08: style::stylesheets::style_rule::impl$4::to_shmem(style::stylesheets::style_rule::StyleRule*, to_shmem::SharedMemoryBuilder*) [servo/components/style/stylesheets/style_rule.rs:22]
[task 2023-04-12T17:22:06.529Z] 17:22:06     INFO - GECKO(1856) | #09: style::stylesheets::impl$22::to_shmem(enum2$<style::stylesheets::CssRule>*, to_shmem::SharedMemoryBuilder*) [servo/components/style/stylesheets/mod.rs:249]
[task 2023-04-12T17:22:06.530Z] 17:22:06     INFO - GECKO(1856) | #10: style::stylesheets::rule_list::impl$5::to_shmem(style::stylesheets::rule_list::CssRules*, to_shmem::SharedMemoryBuilder*) [servo/components/style/stylesheets/rule_list.rs:20]
[task 2023-04-12T17:22:06.530Z] 17:22:06     INFO - GECKO(1856) | #11: geckoservo::glue::Servo_SharedMemoryBuilder_AddStylesheet(style::gecko_bindings::structs::root::RawServoSharedMemoryBuilder*, style::gecko_bindings::structs::root::RawServoStyleSheetContents*, nsstring::nsACString*) [servo/ports/geckolib/glue.rs:7562]
[task 2023-04-12T17:22:06.531Z] 17:22:06     INFO - GECKO(1856) | #12: mozilla::StyleSheet::ToShared(RawServoSharedMemoryBuilder*, nsTString<char>&) [layout/style/StyleSheet.cpp:1504]
[task 2023-04-12T17:22:06.531Z] 17:22:06     INFO - GECKO(1856) | #13: mozilla::GlobalStyleSheetCache::InitSharedSheetsInParent() [layout/style/UserAgentStyleSheetList.h:27]
[task 2023-04-12T17:22:06.532Z] 17:22:06     INFO - GECKO(1856) | #14: mozilla::GlobalStyleSheetCache::GlobalStyleSheetCache() [layout/style/GlobalStyleSheetCache.cpp:285]
[task 2023-04-12T17:22:06.532Z] 17:22:06     INFO - GECKO(1856) | #15: mozilla::GlobalStyleSheetCache::Singleton() [layout/style/GlobalStyleSheetCache.cpp:450]
[task 2023-04-12T17:22:06.532Z] 17:22:06     INFO - GECKO(1856) | #16: mozilla::dom::Document::FillStyleSetUserAndUASheets() [dom/base/Document.cpp:3150]
[task 2023-04-12T17:22:06.533Z] 17:22:06     INFO - GECKO(1856) | #17: mozilla::dom::Document::CreatePresShell(nsPresContext*, nsViewManager*) [dom/base/Document.cpp:6937]
[task 2023-04-12T17:22:06.534Z] 17:22:06     INFO - GECKO(1856) | #18: nsDocumentViewer::InitPresentationStuff(bool) [layout/base/nsDocumentViewer.cpp:702]
[task 2023-04-12T17:22:06.534Z] 17:22:06     INFO - GECKO(1856) | #19: nsDocumentViewer::InitInternal(nsIWidget*, nsISupports*, mozilla::dom::WindowGlobalChild*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool, bool, bool) [layout/base/nsDocumentViewer.cpp:909]
[task 2023-04-12T17:22:06.535Z] 17:22:06     INFO - GECKO(1856) | #20: nsDocumentViewer::Init(nsIWidget*, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::dom::WindowGlobalChild*) [layout/base/nsDocumentViewer.cpp:675]
[task 2023-04-12T17:22:06.535Z] 17:22:06     INFO - GECKO(1856) | #21: nsDocShell::SetupNewViewer(nsIContentViewer*, mozilla::dom::WindowGlobalChild*) [docshell/base/nsDocShell.cpp:8175]
[task 2023-04-12T17:22:06.536Z] 17:22:06     INFO - GECKO(1856) | #22: nsDocShell::Embed(nsIContentViewer*, mozilla::dom::WindowGlobalChild*, bool, bool, nsIRequest*, nsIURI*) [docshell/base/nsDocShell.cpp:5632]
[task 2023-04-12T17:22:06.536Z] 17:22:06     INFO - GECKO(1856) | #23: nsDocShell::CreateAboutBlankContentViewer(nsIPrincipal*, nsIPrincipal*, nsIContentSecurityPolicy*, nsIURI*, bool, mozilla::Maybe<nsILoadInfo::CrossOriginEmbedderPolicy> const&, bool, bool, mozilla::dom::WindowGlobalChild*) [docshell/base/nsDocShell.cpp:6731]
[task 2023-04-12T17:22:06.537Z] 17:22:06     INFO - GECKO(1856) | #24: nsAppShellService::JustCreateTopWindow(nsIAppWindow*, nsIURI*, unsigned int, int, int, bool, mozilla::AppWindow**) [xpfe/appshell/nsAppShellService.cpp:720]
[task 2023-04-12T17:22:06.537Z] 17:22:06     INFO - GECKO(1856) | #25: nsAppShellService::CreateTopLevelWindow(nsIAppWindow*, nsIURI*, unsigned int, int, int, nsIAppWindow**) [xpfe/appshell/nsAppShellService.cpp:180]
[task 2023-04-12T17:22:06.538Z] 17:22:06     INFO - GECKO(1856) | #26: nsAppStartup::CreateChromeWindow(nsIWebBrowserChrome*, unsigned int, nsIOpenWindowInfo*, bool*, nsIWebBrowserChrome**) [toolkit/components/startup/nsAppStartup.cpp:750]
[task 2023-04-12T17:22:06.538Z] 17:22:06     INFO - GECKO(1856) | #27: nsWindowWatcher::CreateChromeWindow(nsIWebBrowserChrome*, unsigned int, nsIOpenWindowInfo*, nsIWebBrowserChrome**) [toolkit/components/windowwatcher/nsWindowWatcher.cpp:441]
[task 2023-04-12T17:22:06.539Z] 17:22:06     INFO - GECKO(1856) | #28: nsWindowWatcher::OpenWindowInternal(mozIDOMWindowProxy*, nsTSubstring<char> const&, nsTSubstring<char> const&, nsTSubstring<char> const&, bool, bool, bool, nsIArray*, bool, bool, bool, nsPIWindowWatcher::PrintKind, nsDocShellLoadState*, mozilla::dom::BrowsingContext**) [toolkit/components/windowwatcher/nsWindowWatcher.cpp:1048]
[task 2023-04-12T17:22:06.539Z] 17:22:06     INFO - GECKO(1856) | #29: nsWindowWatcher::OpenWindow(mozIDOMWindowProxy*, nsTSubstring<char> const&, nsTSubstring<char> const&, nsTSubstring<char> const&, nsISupports*, mozIDOMWindowProxy**) [toolkit/components/windowwatcher/nsWindowWatcher.cpp:297]
[task 2023-04-12T17:22:06.540Z] 17:22:06     INFO - GECKO(1856) | #30: XRE_GetBootstrap [Z:\task_168131887013877\build\application\firefox\xul.dll + 0x86e1737]
[task 2023-04-12T17:22:06.540Z] 17:22:06     INFO - GECKO(1856) | #31: CallMethodHelper::Call() [js/xpconnect/src/XPCWrappedNative.cpp:1179]
[task 2023-04-12T17:22:06.541Z] 17:22:06     INFO - GECKO(1856) | #32: XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) [js/xpconnect/src/XPCWrappedNative.cpp:1125]
[task 2023-04-12T17:22:06.542Z] 17:22:06     INFO - GECKO(1856) | #33: XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) [js/xpconnect/src/XPCWrappedNativeJSOps.cpp:965]
[task 2023-04-12T17:22:06.542Z] 17:22:06     INFO - GECKO(1856) | #34: CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) [js/src/vm/Interpreter.cpp:486]
[task 2023-04-12T17:22:06.543Z] 17:22:06     INFO - GECKO(1856) | #35: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) [js/src/vm/Interpreter.cpp:580]
[task 2023-04-12T17:22:06.543Z] 17:22:06     INFO - GECKO(1856) | #36: InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) [js/src/vm/Interpreter.cpp:647]
[task 2023-04-12T17:22:06.544Z] 17:22:06     INFO - GECKO(1856) | #37: js::Interpret(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:3395]
[task 2023-04-12T17:22:06.544Z] 17:22:06     INFO - GECKO(1856) | #38: MaybeEnterInterpreterTrampoline(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:400]
[task 2023-04-12T17:22:06.545Z] 17:22:06     INFO - GECKO(1856) | #39: js::RunScript(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:432]
[task 2023-04-12T17:22:06.545Z] 17:22:06     INFO - GECKO(1856) | #40: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) [js/src/vm/Interpreter.cpp:612]
[task 2023-04-12T17:22:06.546Z] 17:22:06     INFO - GECKO(1856) | #41: InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) [js/src/vm/Interpreter.cpp:647]
[task 2023-04-12T17:22:06.546Z] 17:22:06     INFO - GECKO(1856) | #42: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) [js/src/vm/Interpreter.cpp:679]
[task 2023-04-12T17:22:06.547Z] 17:22:06     INFO - GECKO(1856) | #43: JS_CallFunctionValue(JSContext*, JS::Handle<JSObject *>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) [js/src/vm/CallAndConstruct.cpp:53]
[task 2023-04-12T17:22:06.548Z] 17:22:06     INFO - GECKO(1856) | #44: nsXPCWrappedJS::CallMethod(unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) [js/xpconnect/src/XPCWrappedJSClass.cpp:918]
[task 2023-04-12T17:22:06.549Z] 17:22:06     INFO - GECKO(1856) | #45: PrepareAndDispatch(nsXPTCStubBase*, unsigned int, unsigned int*, unsigned int*) [xpcom/reflect/xptcall/md/win32/xptcstubs.cpp:77]
[task 2023-04-12T17:22:06.549Z] 17:22:06     INFO - GECKO(1856) | #46: SharedStub() [xpcom/reflect/xptcall/md/win32/xptcstubs.cpp:92]
[task 2023-04-12T17:22:06.550Z] 17:22:06     INFO - GECKO(1856) | #47: NS_CreateServicesFromCategory(char const*, nsISupports*, char const*, char16_t const*) [xpcom/components/nsCategoryManager.cpp:684]
[task 2023-04-12T17:22:06.550Z] 17:22:06     INFO - GECKO(1856) | #48: nsXREDirProvider::DoStartup() [toolkit/xre/nsXREDirProvider.cpp:811]
[task 2023-04-12T17:22:06.550Z] 17:22:06     INFO - GECKO(1856) | #49: XREMain::XRE_mainRun() [toolkit/xre/nsAppRunner.cpp:5393]
[task 2023-04-12T17:22:06.551Z] 17:22:06     INFO - GECKO(1856) | #50: XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) [toolkit/xre/nsAppRunner.cpp:5843]
[task 2023-04-12T17:22:06.551Z] 17:22:06     INFO - GECKO(1856) | #51: XRE_main(int, char**, mozilla::BootstrapConfig const&) [toolkit/xre/nsAppRunner.cpp:5899]
[task 2023-04-12T17:22:06.551Z] 17:22:06     INFO - GECKO(1856) | #52: mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) [toolkit/xre/Bootstrap.cpp:45]
[task 2023-04-12T17:22:06.607Z] 17:22:06     INFO - GECKO(1856) | #53: NS_internal_main(int, char**, char**) [browser/app/nsBrowserApp.cpp:423]
[task 2023-04-12T17:22:06.617Z] 17:22:06     INFO - GECKO(1856) | #54: wmain(int, wchar_t**) [toolkit/xre/nsWindowsWMain.cpp:167]
[task 2023-04-12T17:22:06.617Z] 17:22:06     INFO - GECKO(1856) | #55: __scrt_common_main_seh() [/builds/worker/workspace/obj-build/browser/app/d:/agent/_work/3/s/src/vctools/crt/vcstartup/src/startup/exe_common.inl:288]
[task 2023-04-12T17:22:06.619Z] 17:22:06     INFO -  fix-stacks: error: failed to read debug info file `wkernel32.pdb` for `C:\Windows\System32\KERNEL32.DLL`
[task 2023-04-12T17:22:06.619Z] 17:22:06     INFO -  fix-stacks: note: this is expected and harmless for all PDB files on opt automation runs
[task 2023-04-12T17:22:06.620Z] 17:22:06     INFO -  fix-stacks: The system cannot find the file specified. (os error 2)
[task 2023-04-12T17:22:06.620Z] 17:22:06     INFO - GECKO(1856) | #56: BaseThreadInitThunk [C:\Windows\System32\KERNEL32.DLL + 0x17d69]
[task 2023-04-12T17:22:06.624Z] 17:22:06     INFO -  fix-stacks: error: failed to read debug info file `wntdll.pdb` for `C:\Windows\SYSTEM32\ntdll.dll`
[task 2023-04-12T17:22:06.624Z] 17:22:06     INFO -  fix-stacks: note: this is expected and harmless for all PDB files on opt automation runs
[task 2023-04-12T17:22:06.624Z] 17:22:06     INFO -  fix-stacks: The system cannot find the file specified. (os error 2)
[task 2023-04-12T17:22:06.624Z] 17:22:06     INFO - GECKO(1856) | #57: RtlInitializeExceptionChain [C:\Windows\SYSTEM32\ntdll.dll + 0x6bb9b]
[task 2023-04-12T17:22:06.625Z] 17:22:06     INFO - GECKO(1856) | #58: RtlClearBits [C:\Windows\SYSTEM32\ntdll.dll + 0x6bb1f]
[task 2023-04-12T17:24:44.565Z] 17:24:44     INFO - runtests.py | Waiting for browser...
[task 2023-04-12T17:24:44.566Z] 17:24:44     INFO - TEST-INFO | Main app process: exit 1
Flags: needinfo?(jfkthame)
Keywords: regression
Regressed by: 1121792

This one is my fault.

Flags: needinfo?(jfkthame) → needinfo?(emilio)

See linked code, the padding always ends up being zero.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Attachment #9328214 - Attachment is obsolete: true

Set release status flags based on info from the regressing bug 1121792

Whiteboard: [retriggered]

Did this go away? It looks like we got a whole bunch of reports on April 12 but none since then. Maybe we can close this?

(I'm guessing maybe the followup patch in bug 1121792 Comment 13 (https://hg.mozilla.org/integration/autoland/rev/95df5b6a464f ) fixed this?)

Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(emilio)
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: