[BUG] 2.1.243 segfaults on startup - glibc 2.44 / Bun runtime crash in newlocale()
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Version: 2.1.243 (auto-updated from 2.1.241 at 01:49 UTC 2026-08-25)
OS: Arch Linux, glibc 2.44
Kernel: 7.1.6-arch1-1
Regression: 2.1.241 worked fine.
Crash:
SIGSEGV in free() called from newlocale() via pthread_once
#0 free()
#1 newlocale() from /usr/lib/libc.so.6
#2 ??
#4 pthread_once()
LC_ALL=C dont help. Bug in Bun runtime vs glibc 2.44.
Related: #76241 (same issue, 2.1.206 + glibc 2.41)
~/.l/s/c/versions ❯❯❯ md5sum *
85c00a5e923c927327af51c3f6fe36e9 2.1.235
069650dfb9f14b5d290adb1b90ae29c7 2.1.236
8326230ad538d59d4828ebf44e3932ea 2.1.241
fd2f13ae50f4464dfa569d7b85a839e5 2.1.243 <-- this
~/.l/s/c/versions ❯❯❯ gpg --verify manifest.json.sig manifest.json
gpg: Signature made Mon 24 Aug 2026 11:20:02 PM CEST
gpg: using RSA key 31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE
gpg: Good signature from "Anthropic Claude Code Release Signing <security@anthropic.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE
What Should Happen?
Claude Code 2.1.243 should start normally on systems with glibc 2.44,
as 2.1.241 did on the same machine.
Error Messages/Logs
Steps to Reproduce
claude
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.241
Claude Code Version
2.1.243
Platform
Other
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
term: kitty xterm gxk (gnome-terminal)
7 Comments
Also impacted, arch linux kernel dmesg:
[304778.679561] claude[1612305]: segfault at 0 ip 0000000001d10458 sp 00007fff00fbf3a0 error 4 in 2.1.243[1b0f458,1953000+3b33000] likely on CPU 0 (core 0, socket 0)
[304778.679573] Code: cc cc 55 48 89 e5 48 89 fe 48 8b 05 82 19 78 03 48 89 f9 48 c1 e9 1d 48 8b 84 c8 80 00 00 00 89 f1 c1 e9 0d 81 e1 f8 ff 00 00 <48> 8b 3c 08 48 85 ff 74 1e 48 8b 07 64 48 33 04 25 00 00 00 00 75
[304826.313168] claude[1612710]: segfault at 0 ip 0000000001d10458 sp 00007fff1b8900b0 error 4 in 2.1.243[1b0f458,1953000+3b33000] likely on CPU 7 (core 3, socket 0)
[304826.313186] Code: cc cc 55 48 89 e5 48 89 fe 48 8b 05 82 19 78 03 48 89 f9 48 c1 e9 1d 48 8b 84 c8 80 00 00 00 89 f1 c1 e9 0d 81 e1 f8 ff 00 00 <48> 8b 3c 08 48 85 ff 74 1e 48 8b 07 64 48 33 04 25 00 00 00 00 75
[304847.859161] claude[1612775]: segfault at 0 ip 0000000001d10458 sp 00007ffdad37aca0 error 4 in 2.1.243[1b0f458,1953000+3b33000] likely on CPU 4 (core 2, socket 0)
[304847.859198] Code: cc cc 55 48 89 e5 48 89 fe 48 8b 05 82 19 78 03 48 89 f9 48 c1 e9 1d 48 8b 84 c8 80 00 00 00 89 f1 c1 e9 0d 81 e1 f8 ff 00 00 <48> 8b 3c 08 48 85 ff 74 1e 48 8b 07 64 48 33 04 25 00 00 00 00 75
[304953.667141] claude[1613251]: segfault at 0 ip 0000000001d10458 sp 00007ffe1b89fa90 error 4 in 2.1.243[1b0f458,1953000+3b33000] likely on CPU 10 (core 5, socket 0)
[304953.667155] Code: cc cc 55 48 89 e5 48 89 fe 48 8b 05 82 19 78 03 48 89 f9 48 c1 e9 1d 48 8b 84 c8 80 00 00 00 89 f1 c1 e9 0d 81 e1 f8 ff 00 00 <48> 8b 3c 08 48 85 ff 74 1e 48 8b 07 64 48 33 04 25 00 00 00 00 75
the reason is that this version comes with his own free() implementation that doesn't allow to do free(0) or free(NULL) things that are commonly done for instance in __newlocale
mallocs free don't crash with free(0) that case is checked.
confirmed crash on startup, any workaround?
I found I also have still .../claude/versions/2.1.241 on my machine that works I guess
Same issue on cachyOS (also arch) since a few hours.
ok Bun was ported from zig to rust, what make sense that embeds the allocator.
ie this crashes in rust:
std::alloc::dealloc(0 as *mut u8, layout);
Just re-install claude code, version 2.1.245 fixes it!
yeah, fixed, thanks!
<img width="1306" height="418" alt="Image" src="https://github.com/user-attachments/assets/1551ced2-7afe-4615-a2b4-72d6aedecab0" />