follow ft86club on our blog, twitter or facebook.
FT86CLUB
Ft86Club
Speed By Design
Register Garage Community Calendar Today's Posts Search

Go Back   Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB > Off-Topic Discussions > Off-Topic Lounge [WARNING: NO POLITICS]

Off-Topic Lounge [WARNING: NO POLITICS] For all off-topic discussion topics.

User Tag List

Reply
 
Thread Tools Search this Thread
Old 10-26-2016, 09:50 PM   #1
radroach
Senior Member
 
Join Date: Feb 2013
Drives: car
Location: usa
Posts: 2,162
Thanks: 1,028
Thanked 867 Times in 530 Posts
Mentioned: 35 Post(s)
Tagged: 1 Thread(s)
Examining Toyota's Code / Software

Found an blog where the writer examined the Toyota code and found faults, which he claims caused accidents from 2000-2010.

http://www.viva64.com/en/b/0439/

It's gonna take me awhile to read this so I thought I'd share. Let me know your thoughts.
radroach is offline   Reply With Quote
Old 11-13-2016, 06:12 AM   #2
paulca
Senior Member
 
Join Date: May 2014
Drives: Toyota GT86 Coupe Red (UK)
Location: United Kingdom
Posts: 554
Thanks: 20
Thanked 291 Times in 171 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Having used Coverity code analyser in work, writing stock exchange software, I would like to point out it is often pedantic and other times annoying.

* It is well known for a high percentage of false positives - code that triggers rules which on investigation do not, in fact, violate the rule.
* Coding style causing rule violations - when a deliberate, known entity in the code causes an inappropriate rule violation. "Missing break statement" is a classic. Switch statements are occasionally MEANT to have missing break statements, the whole point is that some conditional flows are inherently sequential and 'should' trigger more than one block, but there are alternatives so someone invented this static code analysis rule. It remains controversial, but it not "unsafe" code.
* Complex matrixes are used AS A GUIDE, a statistic. Nothing more. It IS true if you have a high complexity that to fully test every code path requires an equally (and often unrealistically) high number of tests. In reality however a vast amount of complexity from these statistic comes from the defensive paths on param and return type checks. A function that takes 3 parameters and calls 4 methods already gets a complexity minimum of 22 before it doesn't anything else. Breaking up code even further reduces the individual functional complexity, but moves it into the harder (impossible?) to measure integration complexity of class hierarchies, polymorphism, indirection and design patterns.

Thus architectural/integration/design complexities usually cost memory and speed. Not something you have lots to play with in embedded real time systems.

One thing not mentioned is the scope of the analysis. If you include build time code, test code, un-used code modules you will usually receive much higher rule violations as you are analysing code that nobody really cares about the ultimate quality of. It is code that is used during development, if it fails, it's obvious and the impacts negligible.

However. I write critical business systems. The costs of failures are complex analysis to work out what happened, restore the data to a sensible state, work out which transactions to anull, revoke and move on. It costs money and time.

In embedded control systems used in real world, real time critical operations, I would expect a much higher standard. Failure here costs lives.
__________________
Trunk = Boot | Hood = Bonnet | Sidewalk = Pavement | Transmission = Gearbox | Stick/shifter = Gear knob/stick | E-brake = handbrake | Windshield = Windscreen | Turn signal = Indicator
paulca is offline   Reply With Quote
The Following User Says Thank You to paulca For This Useful Post:
Antihero983 (11-14-2016)
Old 11-13-2016, 06:22 PM   #3
why?
Only happy when it rains.
 
why?'s Avatar
 
Join Date: Feb 2013
Drives: series.blue
Location: Harnett county NC
Posts: 1,995
Thanks: 5,698
Thanked 1,265 Times in 750 Posts
Mentioned: 26 Post(s)
Tagged: 0 Thread(s)
sounds like they just read the code and compared it to some arbitrary standard. Totally useless. Until they test every single thing in a lab it is just opinion.

And sorry but NASA isn't exactly someone I trust. Their shuttles used 60's era tech. While they should know what they are doing they've proven they are either lying to us or have a totally different motive than their public one.
why? is offline   Reply With Quote
Old 11-13-2016, 07:38 PM   #4
krayzie
Drive From Home
 
krayzie's Avatar
 
Join Date: Dec 2013
Drives: BRZ STI Performance
Location: Filth City
Posts: 4,912
Thanks: 2,368
Thanked 3,111 Times in 2,007 Posts
Mentioned: 30 Post(s)
Tagged: 1 Thread(s)
Never A Straight Answer.
krayzie is offline   Reply With Quote
Old 11-24-2016, 06:13 PM   #5
9lives
Member
 
Join Date: Nov 2016
Drives: Firestorm
Location: London
Posts: 13
Thanks: 0
Thanked 5 Times in 3 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
some things in life we just dont like to think about
9lives is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code P000d Toyota information Ashikabi Issues | Warranty | Recalls / TSB 28 09-22-2016 02:46 PM
Lean Code and 02 Code diagnostics. Kiske Engine, Exhaust, Transmission 12 04-28-2016 11:19 PM
3D CAD Software 1stGenBRZ86 Off-Topic Lounge [WARNING: NO POLITICS] 32 03-05-2014 11:45 PM
Cellphones, Software, Transportation Toyota introduces Touch Life smartphone mirrorin quik1987 Other Vehicles & General Automotive Discussions 0 10-27-2011 04:27 AM


All times are GMT -4. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.

Garage vBulletin Plugins by Drive Thru Online, Inc.