Having just done the scenario set out by Maplug above, this is a realistic outcome from a smoke incident which is not quickly curtailed. Frankly, it is unpleasant to do in the safety of the sim.
Having flown Airbus for years, I have always been a little puzzled by the lack of fire suppression in the avionics bay.