News for hackers. Stuff that matters.
Re:Mysterious New Jersey drone sightings prompt call for 'st... by superfrank on Wednesday December 11, 2024 @06:57PM (#42394515)
From what little I've seen on this, it kind of feels like the issue with Priuses acceleration out of control like 15 years ago. It was a huge scandal that lead to multiple Toyota recalls and even a lawsuit settlement and in the end, it seems like it was basically human error.

One person messed up and crashed their Prius claiming the accelerator got stuck and it got picked up by the news. That story then primed other people to start looking for that and from then on anytime a Prius crashed people were looking to blame the accelerator. More people reported their Priuses accelerating out of control which then reinforced the idea even more and so on and so on.

Re:Mysterious New Jersey drone sightings prompt call for 'st... by fdkz on Wednesday December 11, 2024 @08:19PM (#42395104)
Some information about the Toyota cases: https://users.ece.cmu.edu/~koopman/pubs/koopman14_toyota_ua_... page 14 is especially interesting.

And more technical information: https://www.safetyresearch.net/Library/BarrSlides_FINAL_SCRU...

Re:Mysterious New Jersey drone sightings prompt call for 'st... by genewitch on Wednesday December 11, 2024 @07:33PM (#42394808)
well, it wasn't a prius originally, it was a lexus that launched off a southern california freeway because they burned the brakes up trying to stop the acceleration.

Toyota and lexus sometimes have the gas pedal hinged on the floor panel, rather than suspended from piece of metal from up above. If you swap out the stock floor mats for ones not designed with this in mind, during a hard brake your feet can move forward, jamming the floor mat into the accelerator and causing the engine to receive more fuel.

If you'd like a picture, i can go take a picture of the accelerator pedal in my lexus from 2012, and the floor mats which are all but bolted down to prevent this from happening.

as a side note i prefer the hinged design because there's less distance to traverse, i just wish the brake was the same way!

Re:Mysterious New Jersey drone sightings prompt call for 'st... by IAmGraydon on Wednesday December 11, 2024 @07:10PM (#42394636)
That’s known as mass psychogenic illness, and history is full of examples.

https://en.wikipedia.org/wiki/Mass_psychogenic_illness

Re:Mysterious New Jersey drone sightings prompt call for 'st... by throwawayq3423 on Wednesday December 11, 2024 @09:08PM (#42395428)
Otherwise known as gaslighting
Re:Mysterious New Jersey drone sightings prompt call for 'st... by bsder on Wednesday December 11, 2024 @07:57PM (#42394973)
Most of the Toyota acceleration accidents were almost certainly the result of operator error. The fact that the staistical probablity increased with age gives that away.

However, Toyota got convicted because their software development process was so terrible that they were effectively criminally negligent and deserved to get absolutely roasted for it.

Re:Mysterious New Jersey drone sightings prompt call for 'st... by jahewson on Thursday December 12, 2024 @12:41AM (#42396543)
> criminally negligent

Well, civil reckless disregard, as it wasn’t a criminal case.

Re:Mysterious New Jersey drone sightings prompt call for 'st... by UltraSane on Thursday December 12, 2024 @06:01AM (#42398164)
Did they use tons of global variables?
Re:Mysterious New Jersey drone sightings prompt call for 'st... by bluGill on Thursday December 12, 2024 @08:20AM (#42398890)
Globals are common and even right in this application. However they didn't take proper care in other ways (i'm not clear what I've just been in embedded long enough to know globals are often required despite how hard they are to get right)
Re:Mysterious New Jersey drone sightings prompt call for 'st... by UltraSane on Thursday December 12, 2024 @01:41PM (#42401978)
tons of global variables on code that has lots of people working on it seems almost as hard as trying to write lock-free data structures.
Re:Mysterious New Jersey drone sightings prompt call for 'st... by bluGill on Thursday December 12, 2024 @01:47PM (#42402028)
In general embedded controllers like this don't have a lot of people working on them. They also have rules (enforced by review which isn't great) about when they can be accessed. In an embedded context you are not allowed to allocate memory (except at startup), so a lot of these globals are just arrays/buffers only used by one function or pseudo class (a class by intent but not actually a class by the language if the language even has a concept of class)
Re:Mysterious New Jersey drone sightings prompt call for 'st... by bsder on Thursday December 12, 2024 @08:01PM (#42405039)
Global variables (nee static) are fairly normal in embedded. You want to preallocate all your memory since you generally don't have a heap.

Mostly you have specific inputs from some other tasks and your outputs are consumed by different tasks. So, even though the variables are "global" they generally only have one writer with multiple readers in properly done embedded programming.

What Toyota did was not even in the same universe as "properly done embedded".

Re:Mysterious New Jersey drone sightings prompt call for 'st... by UltraSane on Thursday December 12, 2024 @09:37PM (#42405503)
"specific inputs from some other tasks and your outputs are consumed by different tasks" sounds a lot like how PLCs work. Just running an infinite loop scanning inputs and triggering outputs in response to the state of the inputs.
Re:Mysterious New Jersey drone sightings prompt call for 'st... by heavyset_go on Thursday December 12, 2024 @06:03PM (#42404320)
IIRC, their code was evaluated against MISRA-C and was found to have tons of blatant and preventable violations of its principles.
Re:Mysterious New Jersey drone sightings prompt call for 'st... by bee_rider on Thursday December 12, 2024 @09:44AM (#42399516)
Probably didn’t use misra
Re:Mysterious New Jersey drone sightings prompt call for 'st... by bsder on Thursday December 12, 2024 @07:57PM (#42405012)
And didn't have watchdogs. Or redundancy. Or analysis of what failures would do. Or ... etc.

It wasn't just one thing. It was a near complete and total disregard for the fact that they were writing code for machines that could kill people.

Re:Mysterious New Jersey drone sightings prompt call for 'st... by 7thaccount on Thursday December 12, 2024 @09:49AM (#42399572)
The investigation literally called their code "spaghetti".
Re:Mysterious New Jersey drone sightings prompt call for 'st... by brandonmenc on Wednesday December 11, 2024 @09:17PM (#42395481)
iirc wasn't it the floor mats being designed such that they were prone to interfering with the pedals?