I usually try to understand if the company is trying to expand their team, replace someone that's leaving or coping with a mass exodus.
Sadly I've seen mass exodus happening, and I've interviewed at companies where mass exodus happened and it's usually a super red flag, usually a sign of very bad management.
Software being crap happens and is part of the job, you can deal with it and it can get better. But bad management is very hard to overcome and often just not worth it.