nix icon indicating copy to clipboard operation
nix copied to clipboard

Exception: std::bad_alloc: std::bad_alloc

Open shackra opened this issue 7 months ago • 2 comments

Describe the bug

I noticed my system freezes for 2 seconds and then things works as usual. Checking journalctl I see this:

 399   │ may 26 10:44:55 woody nix[13555]: Nix crashed. This is a bug. Please report this at https://github.com/NixOS/nix/issues with the following information included:
 400   │ may 26 10:44:55 woody nix[13555]: Exception: std::bad_alloc: std::bad_alloc
 401   │ may 26 10:44:55 woody nix[13555]: Stack trace:
 402   │ may 26 10:44:55 woody nix[13555]:  0# 0x0000564B6433A669 in nix
 403   │                                    1# 0x00007F3943ABF1CA in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6
 404   │                                    2# __cxa_call_terminate in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6
 405   │                                    3# __gxx_personality_v0 in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6
 406   │                                    4# 0x00007F3944703A19 in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libgcc_s.so.1
 407   │                                    5# _Unwind_Resume in /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libgcc_s.so.1
 408   │                                    6# 0x0000564B6431B1F3 in nix
 409   │                                    7# nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned
       │  long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::~basic_json() in nix

nix_crashed_errors_only.txt

Steps To Reproduce

I just have the latest kernel and system for 25.05

➜  uname --all
Linux woody 6.12.30 #1-NixOS SMP PREEMPT_DYNAMIC Thu May 22 12:29:54 UTC 2025 x86_64 GNU/Linux

This is my current flake.lock file

Expected behavior

no Stutter right after login in to my wm

Metadata

nix-env (Nix) 2.28.3

Additional context

Checklist


Add :+1: to issues you find important.

shackra avatar May 26 '25 16:05 shackra

Do you have a command that triggers the crash?

edolstra avatar Jun 11 '25 19:06 edolstra

Do you have a command that triggers the crash?

I have none, but also the stutters have banished

shackra avatar Jun 11 '25 20:06 shackra