Skip to content

Instantly share code, notes, and snippets.

@ivan
Created January 9, 2024 22:54
Show Gist options
  • Save ivan/49cd0a6f822d3175cc52d4ea9cb9c9e9 to your computer and use it in GitHub Desktop.
Save ivan/49cd0a6f822d3175cc52d4ea9cb9c9e9 to your computer and use it in GitHub Desktop.
nix-serve-ng sometimes just crashes with a malloc/free issue
Jan 09 20:58:53 ra systemd[1]: Started nix-serve binary cache server.
Jan 09 22:51:27 ra nix-serve-start[1831]: 10.10.0.1 - - [09/Jan/2024:22:51:27 +0000] "GET /nix-cache-info HTTP/1.1" 200 - "" "curl/8.4.0 Nix/2.18.1"
Jan 09 22:51:27 ra nix-serve-start[1831]: malloc(): unaligned tcache chunk detected
Jan 09 22:51:27 ra nix-serve-start[1831]: free(): unaligned chunk detected in tcache 2
Jan 09 22:51:27 ra systemd[1]: nix-serve.service: Main process exited, code=dumped, status=11/SEGV
Jan 09 22:51:27 ra systemd[1]: nix-serve.service: Failed with result 'core-dump'.
Jan 09 22:51:27 ra systemd[1]: nix-serve.service: Consumed 413ms CPU time, received 8.8K IP traffic, sent 4.6K IP traffic.
Jan 09 22:51:33 ra systemd[1]: nix-serve.service: Scheduled restart job, restart counter is at 1.
Jan 09 22:51:33 ra systemd[1]: Started nix-serve binary cache server.
Jan 09 22:51:34 ra systemd[1]: Stopping nix-serve binary cache server...
Jan 09 22:51:34 ra systemd[1]: nix-serve.service: Deactivated successfully.
Jan 09 22:51:34 ra systemd[1]: Stopped nix-serve binary cache server.
Jan 09 22:51:34 ra systemd[1]: Started nix-serve binary cache server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment