Was approaching an intersection with a stoplight that was red. Another car stopped at light. Applied brakes, but car slowed down only slightly, no matter how hard the brake pedal was applied. It was like braking on black ice, even though the cars wheels were still going around. Rear ended the car at the light. Suspect that computer was telling the car to try to charge the battery using the forward motion of the car instead of stopping the car. All air bags deployed. Injuries were limited to bruises, abrasions, and general body soreness. Vehicle currently in possession of Allstate Ins. Have requested that brake system be inspected, and computer info be downloaded. Car was totaled. No injuries in other vehicle. No previous problems, no warning lamps or messages prior to accident. Car had been well maintained, including all recalls, and received routine maintenance (oil change, tire rotation) about three months before the incident. Problem has not been reproduced, nor is it likely to be since the vehicle is undrivable.