!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1163 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org188 Servers

Load older messages


SenderMessageTime
16 Nov 2025
@samasaur:matrix.orgsamasaur* if so 15.5 is correct to remain on 19.1.2 and 26.0 should be 20.1.022:00:56
@weethet:catgirl.cloudWeetHetYou can grep Console.app22:30:23
@weethet:catgirl.cloudWeetHet I'll do it tomorrow 22:30:31
@samasaur:matrix.orgsamasaurugh yeah more reports of the app management check not working with home-manager23:34:13
@samasaur:matrix.orgsamasaurand the terminal losing its app management permissions midway through the switch23:34:27
@samasaur:matrix.orgsamasaur sylvester-roos: are you on Tahoe? 23:34:43
@samasaur:matrix.orgsamasauri am wondering whether it is a tahoe-specific bug23:34:53
@samasaur:matrix.orgsamasaurthis person im talking to on discord says it broke by updating to 26.123:38:48
@niklaskorz:matrix.orgniklaskorzguess I'll hold out a bit longer on 1523:45:35
17 Nov 2025
@ihar.hrachyshka:matrix.orgIhar Hrachyshka

consistently hitting gnugrep build failure during gnulib tests coming from nl_langinfo_l (the test validates thread behavior of locale calls):

Exception Type:    EXC_BREAKPOINT (SIGTRAP)
Exception Codes:   0x0000000000000001, 0x00000001821a1154

Termination Reason:  Namespace SIGNAL, Code 5, Trace/BPT trap: 5
Terminating Process: exc handler [81970]


Application Specific Information:
BUG IN CLIENT OF LIBMALLOC: double free detected
Abort Cause 4372392576

Thread 5 Crashed:
0   libsystem_malloc.dylib        	       0x1821a1154 mfm_free.cold.3 + 36
1   libsystem_malloc.dylib        	       0x1821827f0 mfm_free + 1320
2   libsystem_malloc.dylib        	       0x18218d5fc xzm_realloc + 908
3   libsystem_malloc.dylib        	       0x18219a3fc _malloc_zone_realloc + 148
4   libsystem_malloc.dylib        	       0x18219ac2c _realloc + 452
5   libsystem_malloc.dylib        	       0x18219ac84 reallocf + 32
6   libsystem_c.dylib             	       0x18222bde4 nl_langinfo_l + 752
7   test-nl_langinfo-mt           	       0x1040c37e4 thread5_func + 24 (test-nl_langinfo-mt.c:143)
8   libsystem_pthread.dylib       	       0x18236cc08 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x182367ba8 thread_start + 8

This is on a machine that upgraded to 26.0.1. I cannot reproduce the same on another machine that is still on 15.6.1. (community builder which is on 15.7.2 is also fine.)

May I ask someone with 26.x to rebuild it locally from upstream master and see if you by chance can hit the same issue too?

btw what is the version running in Hydra?

00:51:28
@ihar.hrachyshka:matrix.orgIhar Hrachyshka
commit 8ebd5a9aa7e24dce4ac2fd4f5074b43b00759d54
Author: Bruno Haible <bruno@clisp.org>
Date:   Sat Sep 20 15:49:50 2025 +0200

    nl_langinfo: Work around nl_langinfo multithread-safety bug on macOS 26.

    * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set NL_LANGINFO_MTSAFE to 0
    on macOS.
    * lib/nl_langinfo.c (ITEMS): Define appropriately on macOS.
    * doc/posix-functions/nl_langinfo.texi: Document the macOS bug.

oh my god :(

00:55:43
@lt1379:matrix.orgLunI can hit the same issue on a --rebuild of gnugrep.00:56:35
@ihar.hrachyshka:matrix.orgIhar Hrachyshkahm. we could skip the test I guess but it probably tells us something important - that all projects using gnulib are better off backporting the fix?00:59:53
@ihar.hrachyshka:matrix.orgIhar Hrachyshkagonna upgrade the machine to 26.1 today and see if it's still an issue.01:02:07
@ihar.hrachyshka:matrix.orgIhar Hrachyshka Lun: which version are you on 01:03:12
@reckenrode:matrix.orgRandy EckenrodeIt’s not a bug. POSIX doesn’t require multithread safety.01:09:06
@lt1379:matrix.orgLun26.101:09:22
@reckenrode:matrix.orgRandy EckenrodeThis is also a known issue. I was complaining about it earlier today. I had thought someone would have submitted PRs to disable the tests.01:09:28
@reckenrode:matrix.orgRandy EckenrodeDoes the patch fix the issue? I was using a workaround set of commits that just disabled the test.01:10:22
@ihar.hrachyshka:matrix.orgIhar Hrachyshka

I see. where has the complaining happened?

I checked the patch - it does some static array of a limited size carrying results over subsequent calls. looks like an actual fix.

# if !NL_LANGINFO_MTSAFE /* macOS, Solaris */

#  ifdef __sun /* Solaris */
#   define ITEMS (MAXSTRMSG + 1)
#  else /* macOS */
#   define ITEMS (CRNCYSTR + 20)
#  endif
#  define MAX_RESULT_LEN 80

static char *
nl_langinfo_unlocked (nl_item item)
{
  static char result[ITEMS][MAX_RESULT_LEN];

  /* The result of nl_langinfo is in storage that can be overwritten by
     other calls to nl_langinfo.  */
  char *tmp = nl_langinfo (item);
  if (item >= 0 && item < ITEMS && tmp != NULL)

01:12:34
@reckenrode:matrix.orgRandy Eckenrodehttps://matrix.to/#/!lheuhImcToQZYTQTuI:nixos.org/$lL5OOpX3h6xkj46aagLfnJGDZFA_4TxSysI7IyIqToU?via=nixos.org&via=matrix.org&via=nixos.dev01:12:59
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI saw c-ares thingy. is it the same?01:13:40
@reckenrode:matrix.orgRandy Eckenrode Why not check for __APPLE__ and error out for an unknown platform? 01:13:42
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaoops nevermind, matrix client is misbehaving01:14:01
@reckenrode:matrix.orgRandy Eckenrode

No. I ran into it trying to get Lix to use a fixed curl in my configs. I ended up doing this lovely override:


lixPackageSets.stable = nixpkgs-unstable.lixPackageSets.stable.overrideScope (final: prev: {
    lix = prev.lix.override {
      curl = nixpkgs-unstable.curl.override {
        c-aresMinimal = inputs.lix-fixed.legacyPackages.${pkgs.system}.c-aresMinimal.override {
          inherit (nixpkgs-unstable) cmake stdenv updateAutotoolsGnuConfigScriptsHook;
        };
      };
    };
  });
01:14:18
@reckenrode:matrix.orgRandy Eckenrode *

No. I ran into it trying to get Lix to use a fixed curl in my configs. I ended up doing this lovely override:


lixPackageSets.stable = nixpkgs-unstable.lixPackageSets.stable.overrideScope (final: prev: {
  lix = prev.lix.override {
    curl = nixpkgs-unstable.curl.override {
      c-aresMinimal = inputs.lix-fixed.legacyPackages.${pkgs.system}.c-aresMinimal.override {
        inherit (nixpkgs-unstable) cmake stdenv updateAutotoolsGnuConfigScriptsHook;
      };
    };
  };
});
01:14:39
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaguess I'll 1) post a staging patch backporting the gnulib fix for gnugrep; 2) report a bug to gnugrep so that they bump their gnulib submodule. (they are still sitting on an Apr 2025 commit in master)01:17:49
@reckenrode:matrix.orgRandy EckenrodeMy configs were my Swift branch from July, so I had some work to do to update them. My servers are actually still on 24.11, which should be fun to update.01:17:59
@reckenrode:matrix.orgRandy EckenrodeIt also affects coreutils. Probably anything using gnulib, but we don’t have a good way of dealing with that because we don’t de-vendor gnulib.01:18:24
@reckenrode:matrix.orgRandy EckenrodeNow that I have a working Lix again, I can try building KosmicKrisp.01:19:07

Show newer messages


Back to Room ListRoom Version: 6