Care to elaborate? Both how it nearly caused an accident, and how you avoided one seem interesting!
The other situation was when in a tight right hand turn a large advertising sign caused the car to believe I was about to have a head on collision (when in fact the object was merely passing right-to-left through my field of view). This caused me to end up on the wrong side of the road, if there had been opposing traffic it would have been a head on collision, exactly the thing it was trying to avoid.
I brought the car to the local dealership, they checked it over and pronounced it sound, I sold it a week later. Murderous beta grade - or not even beta grade, proof of concept - software in that car. I was pretty loyal to the brand but I don't think I'll ever have another one, besides the plastic bling interior the fact that they shipped that junk has made the brand worthless to me.
Now I drive a 24 year old car that was re-built end-to-end. It has an ECU, ABS, an aftermarket mp3 player / navigation combo and that's it.