MOZ_CRASH(We should be able to map a raw rule to a rule)
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
People
(Reporter: valentin, Unassigned)
References
Details
MOZ_CRASH(We should be able to map a raw rule to a rule: StyleRule { selectors: SelectorList([Selector(html|body, specificity = 0x1)]), block: [font-size: 15px, font-weight: normal, margin-top: 0px, margin-right: 0px, margin-bottom: 0px, margin-left: 0px], source_location: SourceLocation { line: 146, column: 1 } }
At the time I was in about:networking, had a string selected, and just pressed Ctrl-Shift-C which opened the devtools inspector.
#0 0x00007f660c898670 in _GI___nanosleep
(requested_time=requested_time@entry=0x7ffda5a799e0, remaining=remaining@entry=0x7ffda5a799e0)
at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1 0x00007f660c89857a in sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#2 0x00007f66037d2826 in ah_crap_handler(int) (signum=11)
at /home/icecold/mozilla-unified/toolkit/xre/nsSigHandlers.cpp:95
#3 0x00007f66037b837e in nsProfileLock::FatalSignalHandler(int, siginfo_t*, void*)
(signo=11, info=0x7ffda5a79cb0, context=0x7ffda5a79b80)
at /home/icecold/mozilla-unified/toolkit/profile/nsProfileLock.cpp:174
#4 0x00007f66046fea7b in WasmTrapHandler(int, siginfo_t*, void*)
(signum=11, info=0x7ffda5a79cb0, context=<optimized out>)
at /home/icecold/mozilla-unified/js/src/wasm/WasmSignalHandlers.cpp:962
#5 0x00007f660cd04f40 in <signal handler called> () at /lib/x86_64-linux-gnu/libpthread.so.0
#6 0x00007f66029e7a0a in MOZ_Crash(char const*, int, char const*)
(aLine=222, aReason=0x55faa347f970 <sPrintfCrashReason> "We should be able to map a raw rule to a rule: StyleRule { selectors: SelectorList([Selector(html|body, specificity = 0x1)]), block: [font-size: 15px, font-weight: normal, margin-top: 0px, margin-righ"..., aFilename=<optimized out>)
at /home/icecold/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/include/mozilla/Assertions.h:313
#7 0x00007f66029e7a0a in mozilla::dom::InspectorUtils::GetCSSStyleRules(mozilla::dom::GlobalObject&, mozilla::dom::Element&, nsTSubstring<char16_t> const&, nsTArray<RefPtr<mozilla::BindingStyleRule> >&)
(aGlobalObject=..., aElement=..., aPseudo=..., aResult=...)
at /home/icecold/mozilla-unified/layout/inspector/InspectorUtils.cpp:221
#8 0x00007f660180436a in mozilla::dom::InspectorUtils_Binding::getCSSStyleRules(JSContext*, unsigned int, JS::Value*) (cx=0x7f65fb325000, argc=<optimized out>, vp=<optimized out>)
at InspectorUtilsBinding.cpp:2863
#9 0x00007f66038f6075 in CallJSNative(JSContext*, bool ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&)
(cx=0x7f65fb325000, native=0x7f660180413e <mozilla::dom::InspectorUtils_Binding::getCSSStyleRules(JSContext*, unsigned int, JS::Value*)>, args=...)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:443
#10 0x00007f66038e5cdf in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct) (cx=0x7f65fb325000, args=..., construct=js::NO_CONSTRUCT)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:535
#11 0x00007f66038e690d in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)
(cx=0x7f660c99c680 <_IO_2_1_stderr>, fval=..., thisv=..., args=..., rval=...)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:606
#12 0x00007f6603f71fd0 in js::ForwardingProxyHandler::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const (this=<optimized out>, cx=0x7f65fb325000, proxy=..., args=...)
at /home/icecold/mozilla-unified/js/src/proxy/Wrapper.cpp:162
#13 0x00007f6603f51594 in js::CrossCompartmentWrapper::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&) const
(this=0x7f6609528f80 <js::CrossCompartmentWrapper::singleton>, cx=0x7f65fb325000, wrapper=..., args=...) at /home/icecold/mozilla-unified/js/src/proxy/CrossCompartmentWrapper.cpp:237
#14 0x00007f6603f63925 in js::Proxy::call(JSContext*, JS::Handle<JSObject*>, JS::CallArgs const&)
(cx=0x7f65fb325000, proxy=..., args=...) at /home/icecold/mozilla-unified/js/src/proxy/Proxy.cpp:504
#15 0x00007f66038e5ef8 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct) (cx=0x7f65fb325000, args=..., construct=<optimized out>)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:509
#16 0x00007f66038dbaca in js::CallFromStack(JSContext*, JS::CallArgs const&)
(cx=<optimized out>, args=...) at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:594
#17 0x00007f66038dbaca in Interpret(JSContext*, js::RunState&) (cx=<optimized out>, state=...)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:3082
#18 0x00007f66038d1ba7 in js::RunScript(JSContext*, js::RunState&) (cx=0x7f65fb325000, state=...)
--Type <RET> for more, q to quit, c to continue without paging--
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:423
#19 0x00007f66038e5c5a in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct) (cx=0x7f65fb325000, args=..., construct=js::NO_CONSTRUCT)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:563
#20 0x00007f66038e690d in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>)
(cx=0x7f660c99c680 <_IO_2_1_stderr>, fval=..., thisv=..., args=..., rval=...)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:606
#21 0x00007f6603b7e3ca in js::fun_apply(JSContext*, unsigned int, JS::Value*)
(cx=0x7f65fb325000, argc=<optimized out>, vp=<optimized out>)
at /home/icecold/mozilla-unified/js/src/vm/JSFunction.cpp:1184
#22 0x00007f66038f6075 in CallJSNative(JSContext*, bool ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&)
(cx=0x7f65fb325000, native=0x7f6603b7e020 <js::fun_apply(JSContext*, unsigned int, JS::Value*)>, args=...) at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:443
#23 0x00007f66038e5cdf in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct) (cx=0x7f65fb325000, args=..., construct=js::NO_CONSTRUCT)
at /home/icecold/mozilla-unified/js/src/vm/Interpreter.cpp:535
#24 0x00007f66041c7345 in js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICCall_Fallback*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>)
(cx=0x7f65fb325000, frame=0x7ffda5a7ba10, stub=0x7f65ea9d3a00, argc=<optimized out>, vp=0x7ffda5a7b9a0, res=...) at /home/icecold/mozilla-unified/js/src/jit/BaselineIC.cpp:3763
#25 0x00001f432952c7d3 in ()
#26 0x00007ffda5a7bb90 in ()
#27 0x00007ffda5a7b960 in ()
#28 0xfff9800000000000 in ()
#29 0x00007f66095474c0 in js::jit::vmFunctions ()
at /home/icecold/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so
#30 0x00001f4329543c33 in ()
#31 0x0000000000005022 in ()
#32 0x00007ffda5a7ba10 in ()
#33 0x00007f65ea9d3a00 in ()
#34 0x0000000000000002 in ()
#35 0x00007ffda5a7b9a0 in ()
#36 0xfffe28980754abc0 in ()
#37 0xfffe1fa7adaafbf0 in ()
#38 0xfffe2d1f454efe80 in ()
#39 0xfffe2f3d37433610 in ()
#40 0x00007ffda5a7ba58 in ()
#41 0x00007f65ea9d3a00 in ()
#42 0x00001f4329e89c76 in ()
#43 0x0000000000008021 in ()
#44 0xfffe2f3d37433610 in ()
#45 0xfffe2d1f454efe80 in ()
#46 0xfffe1fa7adaafbf0 in ()
#47 0xfffe28980754abc0 in ()
#48 0xfff9800000000000 in ()
#49 0xfffe2f3d37433610 in ()
#50 0x00000e4900000024 in ()
#51 0x0000002500000001 in ()
#52 0x0000001200000e4c in ()
#53 0x00002f3d374335d0 in ()
#54 0xffffffffffffffff in ()
#55 0x00007f6603c56339 in mozilla::detail::ThreadLocalNativeStorage<JSContext*>::get() const
--Type <RET> for more, q to quit, c to continue without paging--
(this=<optimized out>)
at /home/icecold/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/include/mozilla/ThreadLocal.h:158
#56 0x00007f6603c56339 in mozilla::detail::ThreadLocal<JSContext*, mozilla::detail::ThreadLocalNativeStorage>::get() const (this=<optimized out>)
at /home/icecold/mozilla-unified/obj-x86_64-pc-linux-gnu/dist/include/mozilla/ThreadLocal.h:203
#57 0x00007f6603c56339 in js::CurrentThreadCanAccessRuntime(JSRuntime const*)
(rt=0x7f660c99c680 <_IO_2_1_stderr>) at /home/icecold/mozilla-unified/js/src/vm/Runtime.cpp:791
Comment 1•7 years ago
|
||
So I guess it's this rule: https://searchfox.org/mozilla-central/rev/b9da45f63cb567244933c77b2c7e827a057d3f9b/toolkit/themes/shared/in-content/common.inc.css#147
I wonder how it ends up in the page, and how we aren't unable to map it. I'll try to take a look when I have some time.
Comment 2•7 years ago
|
||
P3 since it's an assertion that doesn't have any implication other than "the rule isn't listed by devtools", but we still should figure out what's going on here.
Updated•7 years ago
|
Comment 3•6 years ago
|
||
Hmm, I couldn't repro this. Any more detailed str? :(
| Reporter | ||
Comment 4•6 years ago
|
||
Unfortunately I was only able to hit this once, while debugging a networking issue. The only things that I did were to switch through the about networking tabs with the "Autorefresh every 3 seconds" tickbox checked.
Updated•3 years ago
|
Description
•