EASTON, Pa. — It was a few minutes after the polls closed here on Election Day when panic began to spread through the county election offices.

Vote totals in a Northampton County judge’s race showed one candidate, Abe Kassis , a Democrat, had just 164 votes out of 55,000 ballots across more than 100 precincts. Some machines reported zero votes for him. In a county with the ability to vote for a straight-party ticket, one candidate’s zero votes was a near statistical impossibility. Something had gone quite wrong.

Lee Snover , the chairwoman of the c ounty Republicans, said her anxiety began to pick up at 9:30 p.m. on Nov. 5. She had trouble getting someone from the election office on the phone. When she eventually got through, she said: “I’m coming down there and you better let me in.”

With clearly faulty results in at least the judge’s election, officials began counting the paper backup ballots generated by the same machines. The paper ballots showed Mr. Kassis winning narrowly, 26,142 to 25,137, over his opponent, the Republican Victor Scomillio .