From eaf030a43d0b796ef5c0cfaadf5f1df1cadd8d39 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Tue, 13 Jan 2026 19:52:07 +0100 Subject: [PATCH] fix(sidecar): AWS lambda also can return EACCESS for shm_open Depending on the actual user the process runs under. Also downgrade tempfile to 3.13, when it did not pull in getrandom 0.3. getrandom 0.3 currently breaks our PHP 7.0 alpine targets, which don't support getrandom yet. We'll consider a path forward later, but as a shortterm mitigation, this fixes execution. Signed-off-by: Bob Weinand --- datadog-ipc/src/platform/unix/mem_handle.rs | 2 +- libdd-crashtracker/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datadog-ipc/src/platform/unix/mem_handle.rs b/datadog-ipc/src/platform/unix/mem_handle.rs index aa54fc3187..f88c1dc9db 100644 --- a/datadog-ipc/src/platform/unix/mem_handle.rs +++ b/datadog-ipc/src/platform/unix/mem_handle.rs @@ -35,7 +35,7 @@ fn shm_open( ) -> nix::Result { mman::shm_open(name, flag, mode).or_else(|e| { // This can happen on AWS lambda - if e == Errno::ENOSYS || e == Errno::ENOTSUP || e == Errno::ENOENT { + if e == Errno::ENOSYS || e == Errno::ENOTSUP || e == Errno::ENOENT || e == Errno::EACCES { // The path has a leading slash let path = fallback_path(name)?; open(path.as_c_str(), flag, mode) diff --git a/libdd-crashtracker/Cargo.toml b/libdd-crashtracker/Cargo.toml index 9e7942c3e8..d447a7bcaa 100644 --- a/libdd-crashtracker/Cargo.toml +++ b/libdd-crashtracker/Cargo.toml @@ -72,7 +72,7 @@ windows = { version = "0.59.0", features = ["Win32_System_Diagnostics_Debug", "W [dev-dependencies] criterion = { version = "0.5.1" } goblin = "0.9.3" -tempfile = { version = "3.23" } +tempfile = { version = "3.13" } [build-dependencies] # If we use a newer version of cc, CI fails on alpine.