Developers Can Detect Silent Filter Bugs by Asking Two Questions With Different Answers
A developer discovered a simple debugging technique after encountering silent filter failures twice in one session, where tools returned plausible but incorrect results without any error. The method involves posing two questions to a tool whose correct answers cannot be identical, then comparing the outputs to detect whether filtering is actually working. In one case, a mailbox search script returned the same count of 51 messages for two different queries, revealing that no filter had been applied at all. In another instance, a process count query returned six results, but a follow-up question exposed that two were stale leftover processes from the previous day. The author notes that this two-call technique requires no deep understanding of the tool and costs only one extra query to catch bugs that would otherwise go unnoticed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in