mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Add regression test to verify that the floating point exception (SIGILL)
that occurred on macOS in os.loadavg() no longer happens.
The issue was caused by division by zero when the system's fscale value
was 0. This was fixed in commit 731a85f80d (June 8, 2024) by adding
zero-check guards before division in src/bun.js/node/node_os.zig.
The test verifies:
1. os.loadavg() returns valid finite numbers without crashing
2. DNS resolution with socket connections works without floating point errors
Fixes #11680
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>