Closed Bug 1638361 Opened 5 years ago Closed 5 years ago

Crash in [@ std::thread::local::fast::Key<T>::try_initialize]

Categories

(Core :: WebRTC: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox77 --- unaffected
firefox78 --- fixed

People

(Reporter: mccr8, Assigned: dminor)

References

Details

Crash Data

Attachments

(3 files)

This bug is for crash report bp-17d7a20c-1dee-4b25-8baf-e2a660200515.

Top 10 frames of crashing thread:

0 libxul.so RustMozCrash mozglue/static/rust/wrappers.cpp:17
1 libxul.so mozglue_static::panic_hook mozglue/static/rust/lib.rs:89
2 libxul.so core::ops::function::Fn::call src/libcore/ops/function.rs:72
3 libxul.so std::panicking::rust_panic_with_hook src/libstd/panicking.rs:474
4 libxul.so rust_begin_unwind src/libstd/panicking.rs:378
5 libxul.so std::panicking::begin_panic_fmt src/libstd/panicking.rs:332
6 libxul.so std::thread::local::fast::Key<T>::try_initialize third_party/rust/rand/src/rngs/thread.rs:65
7 libxul.so uuid::v4::<impl uuid::Uuid>::new_v4 
8 libxul.so mdns_service_generate_uuid media/mtransport/mdns_service/src/lib.rs:624
9 libxul.so mozilla::NrIceCtx::GenerateObfuscatedAddress media/mtransport/nricectx.cpp:1061

Bug 1624253 landed a patch to fix this crash, but the crash seems to have continued unabated. Fortunately it looks like it is Nightly-only.

Flags: needinfo?(dminor)
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(dminor)
Resolution: --- → DUPLICATE

Oops, wrong crash!

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee: nobody → dminor

I wonder why it is Nightly only, bug 1624253 was for Nightly 77. Also seems strange that the panic catch does not work.

Severity: -- → S3
Priority: -- → P3
Crash Signature: [@ std::thread::local::fast::Key<T>::try_initialize]

Hi Kershaw, I'd like to use nsIUUIDGenerator from the socket process, but I'm getting NS_ERROR_FACTORY_NOT_REGISTERED when I attempt to use it. Same code works fine in the content process. I was hoping you might know what it would take to get this working in the socket process, or be able to point me towards someone else to ask. I was working around this by using a Rust uuid library, but we're seeing panics in the library code. Thank you!

Flags: needinfo?(kershaw)

I think you need to add an entry 'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS, to the XPCOM manifest for the UUID generator: https://searchfox.org/mozilla-central/rev/3ce874dc2703831af3e5ef3a1d216ffd08057fa5/xpcom/build/components.conf#200-204

(In reply to Andrew McCreight [:mccr8] from comment #5)

I think you need to add an entry 'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS, to the XPCOM manifest for the UUID generator: https://searchfox.org/mozilla-central/rev/3ce874dc2703831af3e5ef3a1d216ffd08057fa5/xpcom/build/components.conf#200-204

Yes, this is the answer. Thanks!

Flags: needinfo?(kershaw)

Yes, that is working. Thanks!

Small try run here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3e31fd0a25444d084ca9efcbc8b21f1c99b6aa56. The wpt failures are a pre-existing condition.

Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/366588977080 Allow nsIUUIDGenerator to be used from socket process; r=froydnj https://hg.mozilla.org/integration/autoland/rev/8687f7e8ad91 Use nsIUUIDGenerator in NrIceCtx::GenerateObfuscatedAddress; r=mjf https://hg.mozilla.org/integration/autoland/rev/e9d71adb2de9 Remove uuid generation code from mdns_service; r=mjf
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Regressions: 1690543
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: