# TRACE Related Articles

HTX News Center provides the latest articles and in-depth analysis on "TRACE", covering market trends, project updates, tech developments, and regulatory policies in the crypto industry.

A Year Consumes a Solid-State Drive: Codex Log Bug Slammed as 'Slopware'

OpenAI's flagship AI coding tool, Codex, was found to have a critical bug causing its feedback logging system to silently and rapidly wear out users' SSDs. A developer reported that Codex was writing approximately 640 TB of data per year to a local SQLite database (`logs_2.sqlite`) through a constant cycle of inserting and immediately deleting log entries, primarily at the verbose TRACE level. While the database file itself remained around 1 GB, the underlying write-amplification from SQLite's WAL mechanism meant the physical SSD endured the full write load. This was enough to exceed the typical 600 TBW endurance rating of a consumer SSD within a year. The root cause was a hardcoded default logging level (`Level::TRACE`) in the configuration, which overrode any user attempts to reduce logging via environment variables. Analysis showed that over 96% of the logged data—including noisy WebSocket packet dumps and repeated system file events—was useless debug information. The issue, which had at least nine related bug reports in the Codex repository, remained latent because it didn't visibly consume disk space, only silently accumulated write cycles. After the report gained traction on Hacker News, OpenAI merged fixes estimated to reduce writes by about 85%. However, even post-fix, the tool would still write an estimated 96 TB annually. The incident sparked broader criticism of "slopware" in AI-assisted development tools, highlighting a lack of resource budgeting for disk, CPU, and memory in always-on agent software, and a reliance on modern hardware to mask inefficient code. Competing tools like Claude Code were noted to have similar issues.

marsbit07/02 08:50

A Year Consumes a Solid-State Drive: Codex Log Bug Slammed as 'Slopware'

marsbit07/02 08:50

活动图片