Closed Bug 1963153 Opened 1 year ago Closed 1 year ago

Hit MOZ_CRASH(nsStringBundleService not thread-safe) at /builds/worker/checkouts/gecko/xpcom/base/nsISupportsImpl.cpp:43

Categories

(Core :: Graphics: Text, defect)

defect

Tracking

()

VERIFIED FIXED
146 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox139 --- wontfix
firefox140 --- wontfix
firefox144 --- wontfix
firefox145 --- wontfix
firefox146 --- verified

People

(Reporter: tsmith, Assigned: eemeli)

References

(Blocks 2 open bugs, )

Details

(5 keywords, Whiteboard: [fixed by 1760013][fuzzblocker][adv-main146+r])

Crash Data

Attachments

(1 file)

Found with m-c 20250426-53aaae152b1d (--enable-address-sanitizer)

This was found by visiting a live website with an ASan build. I'm not sure where this belongs here or maybe gfx/fonts?

A Pernosco session is available here: https://pernos.co/debug/CmtpPCKWRGOxh6RrG7YjWw/index.html

STR:

  • Launch browser and visit site

This issue was triggered by visiting http://therealworld.ag/.

Hit MOZ_CRASH(nsStringBundleService not thread-safe) at /builds/worker/checkouts/gecko/xpcom/base/nsISupportsImpl.cpp:43

#0 0x7fffdc352cb4 in MOZ_CrashSequence /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:248:3
#1 0x7fffdc352cb4 in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:381:3
#2 0x7fffdc352cb4 in nsAutoOwningThread::AssertCurrentThreadOwnsMe(char const*) const /builds/worker/checkouts/gecko/xpcom/base/nsISupportsImpl.cpp:43:5
#3 0x7fffdc747ef8 in AssertOwnership<38> /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:59:5
#4 0x7fffdc747ef8 in nsStringBundleService::AddRef() /builds/worker/checkouts/gecko/intl/strres/nsStringBundle.cpp:735:1
#5 0x7fffdc352b8c in NS_TableDrivenQI(void*, nsID const&, void**, QITableEntry const*) /builds/worker/checkouts/gecko/xpcom/base/nsISupportsImpl.cpp:24:7
#6 0x7fffdc4882a7 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:938:21
#7 0x7fffdc48980b in nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1076:10
#8 0x7fffdc4782dd in mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:13676:50
#9 0x7fffdc5d79df in assign_from_helper /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:901:7
#10 0x7fffdc5d79df in nsCOMPtr /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:537:5
#11 0x7fffdc5d79df in nsPrefBranch::GetDefaultFromPropertiesFile(char const*, nsTSubstring<char16_t>&) /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:3004:7
#12 0x7fffdc5d7203 in nsPrefBranch::GetComplexValue(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:2499:12
#13 0x7fffdc673bdc in mozilla::Preferences::GetLocalizedString(char const*, nsTSubstring<char16_t>&, mozilla::PrefValueKind) /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:5151:39
#14 0x7fffdc67399c in mozilla::Preferences::GetLocalizedCString(char const*, nsTSubstring<char>&, mozilla::PrefValueKind) /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:5138:17
#15 0x7fffdee850c0 in gfxFontUtils::GetPrefsFontList(char const*, nsTArray<nsTString<char>>&, bool) /builds/worker/checkouts/gecko/gfx/thebes/gfxFontUtils.cpp:889:23
#16 0x7fffdefbc8c3 in gfxPlatformFontList::AppendCJKPrefLangs(eFontPrefLang*, unsigned int&, eFontPrefLang, eFontPrefLang) /builds/worker/checkouts/gecko/gfx/thebes/gfxPlatformFontList.cpp:2485:5
#17 0x7fffdefbc5ef in gfxPlatformFontList::GetLangPrefs(eFontPrefLang*, unsigned int&, eFontPrefLang, eFontPrefLang) /builds/worker/checkouts/gecko/gfx/thebes/gfxPlatformFontList.cpp:2456:5
#18 0x7fffdefe6128 in gfxFontGroup::WhichPrefFontSupportsChar(unsigned int, unsigned int, FontPresentation) /builds/worker/checkouts/gecko/gfx/thebes/gfxTextRun.cpp:3850:8
#19 0x7fffdefe0b35 in gfxFontGroup::FindFontForChar(unsigned int, unsigned int, unsigned int, mozilla::intl::Script, gfxFont*, FontMatchType*) /builds/worker/checkouts/gecko/gfx/thebes/gfxTextRun.cpp:3494:26
#20 0x7fffdf00dce1 in void gfxFontGroup::ComputeRanges<char16_t>(nsTArray<gfxFontGroup::TextRange>&, char16_t const*, unsigned int, mozilla::intl::Script, mozilla::gfx::ShapedTextFlags) /builds/worker/checkouts/gecko/gfx/thebes/gfxTextRun.cpp:3630:11
#21 0x7fffdf009d2e in void gfxFontGroup::InitScriptRun<char16_t>(mozilla::gfx::DrawTarget*, gfxTextRun*, char16_t const*, unsigned int, unsigned int, mozilla::intl::Script, gfxMissingFontRecorder*) /builds/worker/checkouts/gecko/gfx/thebes/gfxTextRun.cpp:2848:3
#22 0x7fffdefe3933 in void gfxFontGroup::InitTextRun<char16_t>(mozilla::gfx::DrawTarget*, gfxTextRun*, char16_t const*, unsigned int, gfxMissingFontRecorder*) /builds/worker/checkouts/gecko/gfx/thebes/gfxTextRun.cpp
#23 0x7fffdefe30d5 in already_AddRefed<gfxTextRun> gfxFontGroup::MakeTextRun<char16_t>(char16_t const*, unsigned int, gfxTextRunFactory::Parameters const*, mozilla::gfx::ShapedTextFlags, nsTextFrameUtils::Flags, gfxMissingFontRecorder*) /builds/worker/checkouts/gecko/gfx/thebes/gfxTextRun.cpp:2544:3
#24 0x7fffe1c02c7d in MakeTextRun<char16_t> /builds/worker/workspace/obj-build/dist/include/gfxTextRun.h:983:12
#25 0x7fffe1c02c7d in mozilla::dom::CanvasBidiProcessor::SetText(char16_t const*, int, mozilla::intl::BidiDirection) /builds/worker/checkouts/gecko/dom/canvas/CanvasRenderingContext2D.cpp:4580:26
#26 0x7fffe6558fa2 in nsBidiPresUtils::ProcessSimpleRun(char16_t const*, unsigned long, mozilla::intl::BidiEmbeddingLevel, nsPresContext*, nsBidiPresUtils::BidiProcessor&, nsBidiPresUtils::Mode, nsBidiPositionResolve*, int, int*) /builds/worker/checkouts/gecko/layout/base/nsBidiPresUtils.cpp:2418:14
#27 0x7fffe6558143 in nsBidiPresUtils::ProcessText(char16_t const*, unsigned long, mozilla::intl::BidiEmbeddingLevel, nsPresContext*, nsBidiPresUtils::BidiProcessor&, nsBidiPresUtils::Mode, nsBidiPositionResolve*, int, int*, mozilla::intl::Bidi&) /builds/worker/checkouts/gecko/layout/base/nsBidiPresUtils.cpp:2191:5
#28 0x7fffe1b230b5 in mozilla::dom::CanvasRenderingContext2D::DrawOrMeasureText(nsTSubstring<char16_t> const&, float, float, mozilla::dom::Optional<double> const&, mozilla::dom::CanvasRenderingContext2D::TextDrawOperation, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/canvas/CanvasRenderingContext2D.cpp:4984:12
#29 0x7fffe1b21f4a in mozilla::dom::CanvasRenderingContext2D::FillText(nsTSubstring<char16_t> const&, double, double, mozilla::dom::Optional<double> const&, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/canvas/CanvasRenderingContext2D.cpp:4448:47
#30 0x7fffe069e596 in mozilla::dom::OffscreenCanvasRenderingContext2D_Binding::fillText(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&) /builds/worker/workspace/obj-build/dom/bindings/./OffscreenCanvasRenderingContext2DBinding.cpp:4015:24
#31 0x7fffe197f97f in bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/dom/bindings/BindingUtils.cpp:3302:13
#32 0x7fffe7e105a7 in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:494:13
#33 0x7fffe7e105a7 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:590:12
#34 0x7fffe7e2e286 in InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:657:10
#35 0x7fffe7e2e286 in CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:662:10
#36 0x7fffe7e2e286 in js::Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3286:16
#37 0x7fffe7e0f378 in MaybeEnterInterpreterTrampoline /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:395:10
#38 0x7fffe7e0f378 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:464:13
#39 0x7fffe7e1071d in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:622:13
#40 0x7fffe7e12421 in InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:657:10
#41 0x7fffe7e12421 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:689:8
#42 0x7fffe7f314ea in JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CallAndConstruct.cpp:119:10
#43 0x7fffe14cdac2 in mozilla::dom::EventHandlerNonNull::Call(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&) /builds/worker/workspace/obj-build/dom/bindings/./EventHandlerBinding.cpp:65:37
#44 0x7fffe267b156 in void mozilla::dom::EventHandlerNonNull::Call<nsCOMPtr<mozilla::dom::EventTarget>>(nsCOMPtr<mozilla::dom::EventTarget> const&, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*) /builds/worker/workspace/obj-build/dist/include/mozilla/dom/EventHandlerBinding.h:82:12
#45 0x7fffe2679afe in mozilla::JSEventHandler::HandleEvent(mozilla::dom::Event*) /builds/worker/checkouts/gecko/dom/events/JSEventHandler.cpp:200:12
#46 0x7fffe2633830 in mozilla::EventListenerManager::HandleEventSingleListener(mozilla::EventListenerManager::Listener*, nsAtom*, mozilla::WidgetEvent*, mozilla::dom::Event*, mozilla::dom::EventTarget*, bool) /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:1333:22
#47 0x7fffe26358ca in mozilla::EventListenerManager::HandleEventWithListenerArray(mozilla::EventListenerManager::ListenerArray*, nsAtom*, mozilla::EventMessage, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, bool) /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:1650:12
#48 0x7fffe2634827 in mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool) /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:1547:35
#49 0x7fffe261d7e9 in HandleEvent /builds/worker/workspace/obj-build/dist/include/mozilla/EventListenerManager.h:465:5
#50 0x7fffe261d7e9 in mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp:364:17
#51 0x7fffe261b2f8 in mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp:605:16
#52 0x7fffe2621e0a in mozilla::EventDispatcher::Dispatch(mozilla::dom::EventTarget*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp:1219:11
#53 0x7fffe2628ca0 in mozilla::EventDispatcher::DispatchDOMEvent(mozilla::dom::EventTarget*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsPresContext*, nsEventStatus*) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp
#54 0x7fffe25c4239 in mozilla::DOMEventTargetHelper::DispatchEvent(mozilla::dom::Event&, mozilla::dom::CallerType, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp:152:17
#55 0x7fffe2641e12 in mozilla::dom::EventTarget::DispatchEvent(mozilla::dom::Event&) /builds/worker/checkouts/gecko/dom/events/EventTarget.cpp:214:13
#56 0x7fffe52c33ca in mozilla::dom::MessageEventRunnable::DispatchDOMEvent(JSContext*, mozilla::dom::WorkerPrivate*, mozilla::DOMEventTargetHelper*, bool) /builds/worker/checkouts/gecko/dom/workers/MessageEventRunnable.cpp:79:12
#57 0x7fffe5347e84 in mozilla::dom::WorkerThreadRunnable::Run() /builds/worker/checkouts/gecko/dom/workers/WorkerRunnable.cpp:443:12
#58 0x7fffdc4e2c9c in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1153:16
#59 0x7fffdc4ed278 in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10
#60 0x7fffe5327d0a in mozilla::dom::WorkerPrivate::DoRunLoop(JSContext*) /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:3991:7
#61 0x7fffe52efe41 in mozilla::dom::workerinternals::(anonymous namespace)::WorkerThreadPrimaryRunnable::Run() /builds/worker/checkouts/gecko/dom/workers/RuntimeService.cpp:2189:42
#62 0x7fffdc4e2c9c in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1153:16
#63 0x7fffdc4ed278 in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10
#64 0x7fffdd93f899 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:299:20
#65 0x7fffdd84ddc4 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:369:10
#66 0x7fffdd84ddc4 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:362:3
#67 0x7fffdd84ddc4 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:344:3
#68 0x7fffdc4dbade in nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:366:10
#69 0x7ffff73eb74b in _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:191:3
#70 0x5555556b8a56 in asan_thread_start(void*) /builds/worker/fetches/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:239:28
#71 0x7ffff7abcac2 in start_thread nptl/pthread_create.c:442:8
#72 0x7ffff7b4e84f  misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

This feels like a font or offscreen canvas issue to me. This pref check got added in bug 1596875 so I'll move it to that component but maybe it should be under canvas. Jonathan, any idea where this should go? Thanks.

Group: core-security → layout-core-security
Component: XPCOM → Layout: Text and Fonts
Flags: needinfo?(jfkthame)
Keywords: csectype-race

I think this is more in graphics land than in text/layout land, so moving to GFX:Text.

Some quick notes while triaging this:

  • It looks like the about:config pref in question here (which we're attempting to parse in a non-main-thread) is intl.accept_languages, which is a string-valued pref (and since it's string-valued, I think that means we can't just make it an atomic/threadsafe pref in StaticPrefList.yaml)
  • The code that's trying to parse that pref is here (note the 3rd arg true is for aLocalized):

https://searchfox.org/mozilla-central/rev/d57e641fd8748a0551f5fe150df27d789cb4931d/gfx/thebes/gfxPlatformFontList.cpp#2485

gfxFontUtils::GetPrefsFontList("intl.accept_languages", list, true);
  • Since that^ call passes true for aLocalized, that makes us use GetLocalizedCString to parse the pref here (rather than just using GetCString -- and it's good that we're using GetLocalizedCString since it's consistent with how we look up this pref elsewhere):

https://searchfox.org/mozilla-central/rev/d57e641fd8748a0551f5fe150df27d789cb4931d/gfx/thebes/gfxFontUtils.cpp#888-890

nsresult rv = aLocalized
                  ? Preferences::GetLocalizedCString(aPrefName, fontlistValue)
                  : Preferences::GetCString(aPrefName, fontlistValue);
  • That triggers a fancier pref-lookup codepath that requires parsing .properties files with a nsStringBundleService, which isn't thread-safe.

(I assume this is all because localized builds of Firefox have their own intl.accept_langauages pref values, specified in their own .properties files, which we need to take some care to parse/honor.)

So: the issue is that OffscreenCanvasRenderingContext is off-main-thread, and it needs to see which fonts contain a particular glyph, and that requires parsing this pref via locale-dependent .properties files, which you're not allowed to do off-main-thread.

So maybe we need to somehow offload that work to the main thread? (hopefully in an efficient/one-off sort of way)

Component: Layout: Text and Fonts → Graphics: Text
Group: layout-core-security → gfx-core-security
Keywords: sec-moderate
See Also: → 1962172

We moved the default mailto/protocol handling stuff that was per-locale into m-c and out of langpacks. Is there any reason not to do the same for intl.accept_languages (and/or perhaps all localized prefs)? If we hardcoded the map of language codes to the default accept_languages value in code (or even in a giant-ifdef'd prefs JS file), it would be a lot easier to make threadsafe than the current codepaths - and at this point the nsIPrefLocalizedString machinery feels pretty rube-goldberg-y.

Flags: needinfo?(earo)

(In reply to :Gijs (he/him) from comment #3)

We moved the default mailto/protocol handling stuff that was per-locale into m-c and out of langpacks. Is there any reason not to do the same for intl.accept_languages (and/or perhaps all localized prefs)?

At the moment, we allow localisers to control these values quite directly in Pontoon, so moving them into the code would mean that future changes would need to follow a different process. Such a change would probably be a good thing, as they are not really localisable strings, and normalising them seems like a good idea.

Flod, would you agree?

Flags: needinfo?(earo) → needinfo?(francesco.lodolo)

In the past I had to edit these very frequently because localizers would mess up. I'm totally OK with having these centralized.

Flags: needinfo?(francesco.lodolo)

Thanks for the clarity. We might want to make such a shift in a "cover" / separate non-security bug, as I expect we'd want it to ride the train to reduce the risk of it causing regressions.

To be fair it would also be possible to hand-write some kind of caching mechanism here to resolve the security bug separately and keep the nsILocalizedPref machinery. But if we can get rid of this dependency on localized prefs, based on comment #4 / comment 5, that sounds like long-term it's what we want anyway, so it may be the better fix.

(In reply to :Gijs (he/him) from comment #6)

Thanks for the clarity. We might want to make such a shift in a "cover" / separate non-security bug, as I expect we'd want it to ride the train to reduce the risk of it causing regressions.

I was going to file a bug to do just that, but then discovered that I already did so three years ago: https://bugzilla.mozilla.org/show_bug.cgi?id=1760013

(In reply to Eemeli Aro [:eemeli] from comment #7)

(In reply to :Gijs (he/him) from comment #6)

Thanks for the clarity. We might want to make such a shift in a "cover" / separate non-security bug, as I expect we'd want it to ride the train to reduce the risk of it causing regressions.

I was going to file a bug to do just that, but then discovered that I already did so three years ago: https://bugzilla.mozilla.org/show_bug.cgi?id=1760013

Thank you, past Eemeli! :-)

I'll add that as a blocker here; bugzilla takes care not to reveal sec bugs when related to other bugs except to those who can already see the sec bug.

Depends on: 1760013
Duplicate of this bug: 1980415
Severity: -- → S3
Attached file testcase.zip —

Testcase found while fuzzing mozilla-central rev 5e3597f140f6 (built with: --enable-address-sanitizer --enable-fuzzing).

Testcase can be reproduced using the following commands:

$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build 5e3597f140f6 --asan --fuzzing -n firefox
$ python -m grizzly.replay.bugzilla --xvfb ./firefox 1963153
Whiteboard: [fuzzblocker]

This issue is occurring at a frequency that is negatively impacting our fuzzing efforts. Please prioritize accordingly.

(In reply to Jason Kratzer [:jkratzer] from comment #12)

This issue is occurring at a frequency that is negatively impacting our fuzzing efforts. Please prioritize accordingly.

There are a series of patches in bug 1760013 to try to address this already.

You could probably work around by setting the relevant prefs (at least intl.accept_languages, possibly other font-related ones) to custom values in the profile used for fuzzing.

This bug prevents fuzzing from making progress; however, it has low severity. It is important for fuzz blocker bugs to be addressed in a timely manner (see here why?).
:lsalzman, could you consider increasing the severity?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

(In reply to :Gijs (he/him) from comment #13)

(In reply to Jason Kratzer [:jkratzer] from comment #12)

This issue is occurring at a frequency that is negatively impacting our fuzzing efforts. Please prioritize accordingly.

There are a series of patches in bug 1760013 to try to address this already.

Good news, bug 1760013 just landed -- given that, it's probably worth checking in to see whether this is still reproducible with the attached testcase & still coming up in fuzzing efforts.

jkratzer/tsmith, are you still hitting this? (with the attached testcase and/or other fuzzing testcases/runs)

Flags: needinfo?(twsmith)
Flags: needinfo?(jkratzer)

:dholbert, yes - we are still seeing it. When bug 1760013 was closed, we removed the intl.accept_languages pref and began to see additional crashes matching this signature.

Flags: needinfo?(jkratzer)
Flags: needinfo?(twsmith)

Thanks. Could you capture & share a new pernosco trace?

The trace in comment 0 was from us attempting to parse that intl.accept_languages pref, off-main-thread. I guess the new crashes are from us parsing some other pref(s) off-main-thread, and it'd be nice to know which pref(s) those are.

Flags: needinfo?(jkratzer)

(In reply to Jason Kratzer [:jkratzer] from comment #16)

:dholbert, yes - we are still seeing it. When bug 1760013 was closed, we removed the intl.accept_languages pref and began to see additional crashes matching this signature.

I'm not sure this is true, we have seen it more recently but the builds are older. The most recent build is 20251030-16e503f4b888. I've update things in fuzzmanager and the reducer will now try to replay and reduce older results. I'll keep you posted.

Flags: needinfo?(jkratzer) → needinfo?(twsmith)

Tyson's right. It appeared that we were still seeing this crash because we were running on old x86 builds. No new issues have been reported since bug 1760013 was closed. Based on the previous frequency we were seeing these crashes, I think it's safe to say this has been fixed.

Flags: needinfo?(twsmith)
Assignee: nobody → earo
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(lsalzman)
Flags: needinfo?(jfkthame)
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Target Milestone: --- → 146 Branch
Group: gfx-core-security → core-security-release
Duplicate of this bug: 1995444

Copying crash signatures from duplicate bugs.

Crash Signature: [@ mozilla::net::ProtocolHandlerInfo::DynamicProtocolFlags]
Whiteboard: [fuzzblocker] → [fuzzblocker][adv-main146-]
Whiteboard: [fuzzblocker][adv-main146-] → [fixed by 1760013][fuzzblocker][adv-main146-]
Whiteboard: [fixed by 1760013][fuzzblocker][adv-main146-] → [fixed by 1760013][fuzzblocker][adv-main146+r]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: