Description
headroom-ai==0.28.0 crashes the Python process with SIGILL / Illegal instruction when running real compression through the Python library API.
This is not a Python exception, not an import error, and not an OOM. The process is terminated by signal 4 (SIGILL). When Headroom is called in-process from a long-running server, the whole service exits.
We reproduced this inside a Docker container. Importing headroom works, but calling compression causes a native crash.
To Reproduce
Steps to reproduce the behavior:
- Install Headroom:
pip install "headroom-ai==0.28.0"
- Verify import works:
python3 -c "import headroom; print(headroom.__version__)"
Expected output:
- Run compression with a tool role message:
python3 -u -c "
import headroom
text = 'This is a test context. ' * 200
print('before compress', flush=True)
result = headroom.compress(
messages=[
{
'role': 'tool',
'content': text,
}
],
compression_ratio=0.7,
)
print('after compress', flush=True)
print(result)
"
- See process crash with Illegal instruction.
Expected Behavior
Headroom should not terminate the Python process with SIGILL.
Expected behavior should be one of:
compression succeeds;
Headroom detects unsupported CPU features and raises a Python exception;
Headroom falls back to a CPU-compatible implementation;
Headroom documents required CPU instruction sets and wheel compatibility requirements.
Description
headroom-ai==0.28.0crashes the Python process withSIGILL/Illegal instructionwhen running real compression through the Python library API.This is not a Python exception, not an import error, and not an OOM. The process is terminated by signal 4 (
SIGILL). When Headroom is called in-process from a long-running server, the whole service exits.We reproduced this inside a Docker container. Importing
headroomworks, but calling compression causes a native crash.To Reproduce
Steps to reproduce the behavior:
Expected output:
Expected Behavior
Headroom should not terminate the Python process with SIGILL.
Expected behavior should be one of:
compression succeeds;
Headroom detects unsupported CPU features and raises a Python exception;
Headroom falls back to a CPU-compatible implementation;
Headroom documents required CPU instruction sets and wheel compatibility requirements.