# curl Hit by Two ARM64 Compiler Bugs in GCC 15/16 and Rust

Original title: Two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, hit curl

> Hacker News story 49977832 · language: en · submitted 2026-10-06
> Web version: https://zeli.app/story/49977832
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 52 · by [torutofu](<https://news.ycombinator.com/user?id=torutofu>) · 💬 8
[original](<https://mastodon.social/@bagder/117392573268225646>) · [HN discussion](<https://news.ycombinator.com/item?id=49977832>)

## Summary

curl maintainer Daniel Stenberg reports that two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, have struck the project. The discovery is a rare case of the mythical compiler bug, since such faults usually turn out to be the programmer's own mistake. One commenter notes the issue still reproduces on the latest OpenSSL revisions and hints at a different, possibly ASM-related cause, while clang builds remain unaffected.

## Key quote

> Every programmer knows they are out there. But every time, the fault turns out to have been their own mistake! This will keep our hopes alive!

## HN discussion (8 comments)

### [vlovich123](<https://news.ycombinator.com/item?id=49978862>)

> Not actually confirmed as compiler bugs yet.
>
> Here’s a similar bug where OpenSSL’s inline asm was wrong and probably only GCC was smart enough to try to exploit the bug:
>
> https://github.com/openssl/openssl/pull/23233
>
> Same for rust - could be UB in quiche that is getting exposed.

### [edoceo](<https://news.ycombinator.com/item?id=49978509>)

> The social post links to this bug https://github.com/curl/curl/issues/23237

### [rurban](<https://news.ycombinator.com/item?id=49979671>)

> Looks like a valid new optimization to me, which only fails on valgrind, which is a bit too strict with uninitialized values. In openssl's strlcpy. They'll deal with that.

---

## Cite

- Page: https://zeli.app/story/49977832
- Date: 2026-10-06
- Source: mastodon.social (https://mastodon.social/@bagder/117392573268225646)
- Hacker News: https://news.ycombinator.com/item?id=49977832

## Other languages

- zh: https://zeli.app/zh/story/49977832 · markdown: https://zeli.app/zh/story/49977832.md
- ja: https://zeli.app/ja/story/49977832 · markdown: https://zeli.app/ja/story/49977832.md
- ko: https://zeli.app/ko/story/49977832 · markdown: https://zeli.app/ko/story/49977832.md
- de: https://zeli.app/de/story/49977832 · markdown: https://zeli.app/de/story/49977832.md
- es: https://zeli.app/es/story/49977832 · markdown: https://zeli.app/es/story/49977832.md
- ru: https://zeli.app/ru/story/49977832 · markdown: https://zeli.app/ru/story/49977832.md
