Michael Barr, the engineer who read Toyota’s code and helped win a 2013 verdict

Toyota · Software Defect Trial: Engineer Michael Barr proved Toyota software caused sudden acceleration

In an Oklahoma courtroom, twelve jurors are asked to look at a 2005 Camry that left the road and plowed into an embankment. Jean Bookout, 76, was driving and was severely injured. Her passenger, Barbara Schwarz, died. The jurors must decide what made the car go where it went, and the man who may help them is Michael Barr, an engineer who spent long stretches combing through the source code of the Camry's throttle system.

Can software alone make a car accelerate when the driver does not want it to? Toyota's answer has always pointed elsewhere, to mats, pedals and drivers. Barr's job is to persuade twelve people that the answer may be hiding in lines of code none of them will ever read.

The company arrives with a record that makes the task harder. Toyota has already faced three juries in sudden acceleration cases and won every time. None of those cases put forward the software defect that Barr is about to describe. This trial is the first where the code itself is on trial, and a loss here would be Toyota's first in such a case.

A loaner Lexus on Highway 125

On August 28, 2009, Mark Saylor walked out of Bob Baker Lexus in El Cajon, California, with the keys to a loaner 2009 ES 350. Saylor, an off-duty California Highway Patrol officer, had no reason to think about the car at all. He wanted to get home.

He never did. On Highway 125 the sedan gathered speed and kept gathering it, past 100 mph. A frantic 911 call came from Saylor's brother-in-law, who was riding in the car. The call left no doubt that the driver could not slow it down.

The car collided with another vehicle, and four people in the loaner died: Saylor and three members of his family. Investigators who went over the wreck found the brakes heavily damaged, which seemed to confirm the voice on the 911 call. The brake surfaces showed wear from heavy braking against the full force of a 272-horsepower engine. That wear suggested someone had braked hard, but the National Highway Traffic Safety Administration report drew no conclusion about the cause of the crash.

The rest of the evidence pointed to the floor. One of the two clips that hold the mat had pulled out of the carpeting and lay under the mat. The San Diego County Sheriff's Department also learned that three days earlier another customer had complained to the dealership that the mat trapped the pedal of this same loaner. The car had been handed to Saylor with a warning already on file.

The car held one more trap. Its keyless ignition shuts off a moving engine only if the driver holds the power button for three full seconds, and nothing on the dashboard said so. A man in a runaway car, standing on the brakes, had no way to know.

The company that blamed the mats

Toyota moved first against the floor. On September 26, 2007, the company recalled 55,000 sets of heavy-duty rubber mats from its Camry and ES 350 sedans. The recall treated the trouble as a rug that rode too high and a pedal that got in its way.

Toyota recalled 55,000 sets of heavy-duty rubber mats on September 26, 2007, and later recalled 3.8 million vehicles on November 2, 2009.

Two years later Toyota asked for more. On November 2, 2009, it recalled 3.8 million vehicles and told owners to remove the driver's floor mat and not replace it with any other mat.

The answer did not hold. Some crashes were shown not to have been caused by a mat creeping over the pedal, and that finding forced a second recall on January 21, 2010. The amended recall added a brake override system, which cuts engine power if it detects both the accelerator and the brake pressed at once.

Then House investigators counted the complaints. They found that 70 percent of sudden acceleration complaints came from vehicles that neither the floor mat recall nor the sticky pedal recall covered.

Chairman Henry Waxman pressed James Lentz of Toyota on the obvious question: would the fixes eliminate the problems completely? Lentz hesitated, then admitted that they would not, not totally. In 2009 Toyota had known that some cars it had left out of the recalls shared design features just as susceptible to floor-mat entrapment as the cars it had recalled.

Someone with the authority to open them up would have to look, and Barr was still years away from the stand.

NASA finds nothing

Congress wanted an answer it could trust, so it turned to the two agencies best placed to give one. Lawmakers asked NASA, whose engineers build spacecraft that cannot be repaired in flight, and the National Highway Traffic Safety Administration (NHTSA), the federal auto safety regulator, to settle the question of the electronics.

The engineers took on the job in earnest. They tested nine vehicles and read through more than 280,000 lines of software code, the instructions that tell a throttle what to do. After ten months of searching, the scientists from both agencies found no electronic defect in Toyota's cars. Their report put the blame back on the hardware: Toyota's problems were mechanical, not electrical.

The verdict arrived with a catch, and it sat inside the government's own house. A NHTSA lab had applied a magnetic field to a Toyota throttle and watched the engine speed surge by 1,000 rpm. The lab still concluded that it had found no vulnerabilities.

Joan Claybrook, a former head of NHTSA, wondered aloud whether the NASA-aided examination had been as exhaustive as it could have been. A mechanical problem tends to leave physical clues: a worn part, a clip under a mat, a scar on a brake surface. An electronic problem can hide in software, or vanish without leaving any trace at all.

A fault that appears once and then erases itself would leave nothing to find, unless someone read the code again, line by line. That someone turned out to be an embedded-software engineer named Michael Barr.

What Barr told the jury

Barr took the stand in Oklahoma with a narrow aim. Jurors had been told that NASA looked at Toyota's electronics and found nothing, and he wanted them to see that this finding was not the last word. NASA, he said, had not been able to complete its examination of Toyota's Electronic Throttle Control System, the software and hardware that decide how far the throttle opens. Toyota, he added, had not followed best practices for real-time software, the kind that runs where a failure can cost lives.

Litigation in 2013 was challenging the earlier mechanical explanations, and experts were telling courts that software problems in the throttle system could trigger unintended acceleration.

Then Barr got specific. The car's real-time operating system, the program that schedules every task the throttle computer performs, keeps a working area of memory called the run-time stack. He told jurors that Toyota's stack was not large enough. It could grow until it overwrote other data, and some of that data, he said, could cause unintended acceleration.

He offered a second path to the same result. A single bit flip, one digit in memory switching from 0 to 1, could cause unintended acceleration, and cosmic rays can cause such a flip. No worn part would remain afterward, and no clip under a mat.

Professor Huei Peng said many electronic errors in modern cars cannot be detected by the car's fault detection system. A car could misbehave and still report that nothing was wrong.

The stakes reached beyond one crash. If software flaws were real, Toyota would probably have to overhaul its software, a complicated and costly fix.

Twelve people who had never read a line of code now had to decide whether a lone engineer's account of one in the throttle was enough.

A verdict and a settlement within hours

On October 24, 2013, the twelve jurors who had listened to Barr in Oklahoma delivered their answer. They ruled against Toyota, finding that unintended acceleration could have been caused by deficiencies in the Electronic Throttle Control System. At least nine of them voted for the plaintiffs, the minimum a verdict required.

The margin, according to the plaintiffs' lawyer, understated the mood in the room. Jere Beasley said ten of the 12 jurors wanted to punish Toyota. Punishment came with a ceiling, however, and the jurors had not known where it sat.

Oklahoma caps punitive damages at an amount equal to the compensatory award, which put Toyota's maximum liability at $6 million. When the jurors were told, Beasley said, they were shocked.

The jury assessed $3 million in compensatory damages. Toyota did not wait to learn what it would be asked to pay on top of that. Within hours it settled, before any punitive award could be made, and it entered settlement talks with its plaintiffs. A Toyota spokeswoman said the company strongly disagreed with the verdict but was satisfied with the settlement.

Toyota could not rest, because the calendar held another software case. The next trial was set for November 5 in Santa Ana, California, and it involved the Camry of Ida Starr St. John. The Oklahoma case was over, but the jury had never been asked what Toyota told the regulators about all this, and that question was still waiting.

The charge over what Toyota told NHTSA

On March 19, 2014, federal prosecutors answered the question the Oklahoma jury had never been asked. The Justice Department announced a criminal wire fraud charge against Toyota, accusing the company of giving misleading information to NHTSA, the federal agency that regulates vehicle safety.

Attorney General Eric Holder put the accusation in a single sentence. Toyota, he said, had treated a public safety emergency as a public relations problem.

Weeks before its 2009 statements, Toyota had taken steps to hide from NHTSA another type of unintended acceleration. David Shepardson, a reporter who followed the case, said Toyota knew of problems in 2009 and canceled a proposed fix. The company that had pointed at mats and pedals had, by this account, been holding back part of the picture while regulators relied on what it told them.

Toyota did not fight the charge in court. It entered a deferred prosecution agreement, a deal in which a company admits no guilt at the door, and it did not plead guilty. If Toyota complied fully, prosecutors would dismiss the wire fraud charge in three years.

The price was $1.2 billion, the largest penalty of its kind ever imposed on an automotive company. The agreement also placed an independent monitor over Toyota's safety-related public statements and reporting, so that an outsider would now watch what the company said about its own cars.

Toyota paid a penalty of $1.2 billion under a deferred prosecution agreement.

It also left an awkward question hanging over the regulator that had been misled. If a fraud charge could extract $1.2 billion, why had NHTSA's own power been so small?

Two pages from 1973

Officials said they would consider rules requiring brake override systems, which let a driver's braking cut the engine's power, and event data recorders, the black boxes that log what a car did before a crash. Claybrook, the former NHTSA chief, heard the promise and counted what the agency had to enforce it with. NHTSA has no power to bring criminal penalties, she noted. The most it could have fined Toyota was about $60 million, and the budget for its entire auto safety program was $134 million.

NHTSA's safety standard for them ran two pages and dated from 1973, written for a car whose throttle was a cable and a spring. Nothing in it spoke to firmware, memory or a stack that might grow past its limit. After the verdict, Barr told The New York Times that software-controlled throttles remain a danger. Attorney General Holder, for his part, warned other car companies not to repeat Toyota's mistake.

Jurors listened to an engineer who had read the source code of a 2005 Camry's throttle, and then they decided. The Camry that had left the road and struck an embankment, with Jean Bookout hurt and Barbara Schwarz dead, was judged by ordinary people in a courtroom, not by two pages written in 1973.

Editorial graphic and headline text by Signal Titans.

Source: A Camry, a Courtroom in Oklahoma, and Ten Thousand Global Variables: Michael Barr Reads Toyota's Source Code · Justice Department Announces Criminal Charge Against Toyota Motor Corporation and Deferred Prosecution Agreement with $1.2 Billion Financial Penalty | DOT OIG · Fatal Toyota crash detailed – Los Angeles Times · Federal Register, Volume 74 Issue 210 (Monday, November 2, 2009) · Toyota recalls won't 'totally' fix sudden surges – Boston.com · Data point to Toyota's throttles, not floor mats – Los Angeles Times · US finds Toyota electronics weren’t to blame in crashes – The Boston Globe · Toyota settles acceleration lawsuit after $3-million verdict – Los Angeles Times · What Toyota's $1.2 billion settlement means for the auto industry | PBS News

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *