Generally speaking, the best thing to do is to smile, appear to do reasonably decent work, and begin looking elsewhere.
Easiest way to improve your situation in software engineering is to just get a better job and move laterally or up.
Those that happen to enjoy IT unions can get some help there.
However don't expect the work environment to actually improve afterwards, unless the bad pieces are gone by then, as winning is only half the battle.
Maybe I've gotten lucky, but patience has worked well for me. If only I could have told my younger self...
Believing you can change it will virtually never yield any positive results to yourself. Even if you don't get fired, you will be labeled as the one who complains.
If I'm being honest^Wcynical, all you should care about at work is how great people think you are. It helps if you are at least half as good as people think, but it's sadly not a requirement.
By letting them fail. The only way people learn lessons is through failures and disasters.
Let the bad systems fail, that's the best way you can help them.
The way I see it, if you're in a bad situation at work, you have two options: try to change it, or leave. If you're going to leave anyway, why not at least try to improve your situation first so you give yourself the best chance of success? And that way, the company has the opportunity to remove or remediate a bad manager.
Basically, my reaction to your #1 is that it helps you avoid getting hurt by the worst possible scenario. But personally, I think it's a better strategy to maximize your chance at a good scenario.