warp
warp copied to clipboard
Null characters (“NUL”) in text file when redirecting GCC/OpenMP output in Warp terminal
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [ ] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID intructions
- [x] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log intructions
Describe the bug
When using the Warp terminal to run a C/C++ application compiled with GCC and OpenMP, redirecting the output to a text file produces a file filled with null characters (“NUL”) instead of the expected plain-text results. The issue is clearly visible in editors like VS Code, which highlight the nulls as red blocks.
To reproduce
- Compile an OpenMP C program (e.g., gcc -fopenmp main.c -o main.out).
- Run the executable, redirecting output to a text file (./main.out > output.txt).
- Open output.txt in an editor. Instead of readable output, the file contains null characters.
- The issue seems reproducible with even the minimal example below:
#include <stdio.h>
#include <omp.h>
int main() {
#pragma omp parallel for
for(int i = 0; i < 10; i++)
printf("%d\n", i);
return 0;
}
Expected behavior
The redirected output file should contain the program's human-readable results without any null characters or unreadable binary content.
Screenshots, videos, and logs
Operating system (OS)
Windows
Operating system and version
Windows 11
Shell Version
Current Warp version
v0.2025.09.03.08.11.stable_02
Regression
Yes, this bug started recently or with an X Warp version
Recent working Warp date
14/09/2025
Additional context
- Issue does not occur when running the exact same commands in GNOME Terminal, Windows Terminal, or Konsole.
- No conflicting dotfiles/plugins in use.
- Using X11 as the display server.
- Running Warp with low-level debug logs does not output additional error messages related to file writing.
- No antivirus/EDR interference observed.
- The bug occurs both with and without explicit fflush(stdout) statements in code.
Does this block you from using Warp daily?
No
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
Ignore