From c33cdf7e9ce07247d966c2d219211eb6691ce5a2 Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Tue, 13 Jan 2026 09:13:29 -0700 Subject: [PATCH] fix(profiling): crash in upload for DD_EXTERNAL_ENV --- profiling/src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiling/src/config.rs b/profiling/src/config.rs index 8ed50b0d09a..780271d1eab 100644 --- a/profiling/src/config.rs +++ b/profiling/src/config.rs @@ -110,6 +110,10 @@ impl SystemSettings { } } + // Initialize the lazy lock holding the env var for new origin + // detection in a safe place. + _ = std::sync::LazyLock::force(&libdd_common::entity_id::DD_EXTERNAL_ENV); + // Work around version-specific issues. #[cfg(not(php_zend_mm_set_custom_handlers_ex))] if allocation::allocation_le83::first_rinit_should_disable_due_to_jit() {