From f4caa95ddef0d1e67621f20a82f28ed639dc6f6c Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 23 Jun 2026 16:12:55 +0200 Subject: [PATCH] lttng-ust: fix musl crashes Caught by the tests. I've linked to my submitted upstream patch, but I'm not confident enough in it to apply it here without upstream review, so for now just build with an increased stack size across the board. We can remove it if upstream does something to address the stack size issue. Fixes: 6d8c12b2b36e ("lttng-ust: 2.14.0 -> 2.15.0") --- pkgs/by-name/lt/lttng-ust/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/lt/lttng-ust/package.nix b/pkgs/by-name/lt/lttng-ust/package.nix index 9749f6c938e1..9f359b838cb9 100644 --- a/pkgs/by-name/lt/lttng-ust/package.nix +++ b/pkgs/by-name/lt/lttng-ust/package.nix @@ -67,7 +67,15 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs . ''; - configureFlags = [ "--disable-examples" ]; + configureFlags = [ + "--disable-examples" + ] + ++ lib.optionals stdenv.hostPlatform.isMusl [ + # lttng-ust puts a single array on the stack that's the size of + # musl's whole default stack. + # https://review.lttng.org/c/lttng-ust/+/18160 + "CFLAGS=-Wl,-z,stack-size=2097152" + ]; doCheck = true;