facebookexperimental / facebookexperimental/libunifex

gcc c++20 drains all RAM pn building some examples

Open
#674 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

I tested builds with `gcc` and **c++ 20** and found `examples/create_basic_sender` is most affected.

`gcc --version` I used:
```
gcc (GCC) 15.2.1 20251112
```

It drains all the RAM I have during build and makes my linux machine freeze and kill the compiler after some time.

You could see how quick memory drains on the video. From approx 20 Gi free to 200Mi.

https://github.com/user-attachments/assets/29ac8501-d99c-4e83-a0d7-3fc5d1a3dc27

`clang` doesn't has that problem on the same example.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.