text: Magma contains dissolved volatile components, as described above. The solubilities of the different volatile constituents are dependent on pressure, temperature and the composition of the magma. As magma ascends towards the surface, the ambient pressure decreases, which decreases the solubility of the dissolved volatiles. Once the solubility decreases below the volatile concentration, the volatiles will tend to come out of solution within the magma (exsolve) and form a separate gas phase (the magma is super-saturated in volatiles).
  The gas will initially be distributed throughout the magma as small bubbles, that cannot rise quickly through the magma. As the magma ascends the bubbles grow through a combination of expansion through decompression and growth as the solubility of volatiles in the magma decreases further causing more gas to exsolve. Depending on the viscosity of the magma, the bubbles may start to rise through the magma and coalesce, or they remain relatively fixed in place until they begin to connect and form a continuously connected network. In the former case, the bubbles may rise through the magma and accumulate at a vertical surface, e.g. the roof of a magma chamber. In volcanoes with an open path to the surface, e.g. Stromboli in Italy, the bubbles may reach the surface and as they pop small explosions occur. In the latter case, the gas can flow rapidly through the continuous permeable network towards the surface. This mechanism has been used to explain activity at Santiaguito, Santa Maria volcano, Guatemala and Soufrière Hills Volcano, Montserrat. If the gas cannot escape fast enough from the magma, it will fragment the magma into small particles of ash. The fluidised ash has a much lower resistance to motion than the viscous magma, so accelerates, causing further expansion of the gases and acceleration of the mixture. This sequence of events drives explosive volcanism. Whether gas can escape gently (passive eruptions) or not (explosive eruptions) is determined by the total volatile contents of the initial magma and the viscosity of the magma, which is controlled by its composition.
  The term closed system degassing refers to the case where gas and its parent magma ascend together and in equilibrium with each other. The composition of the emitted gas is in equilibrium with the composition of the magma at the pressure, temperature where the gas leaves the system. In open system degassing, the gas leaves its parent magma and rises up through the overlying magma without remaining in equilibrium with that magma. The gas released at the surface has a composition that is a mass-flow average of the magma exsolved at various depths and is not representative of the magma conditions at any one depth.
  Molten rock (either magma or lava) near the atmosphere releases high-temperature volcanic gas (>400 °C).
  In explosive volcanic eruptions, the sudden release of gases from magma may cause rapid movements of the molten rock. When the magma encounters water, seawater, lake water or groundwater, it can be rapidly fragmented. The rapid expansion of gases is the driving mechanism of most explosive volcanic eruptions. However, a significant portion of volcanic gas release occurs during quasi-continuous quiescent phases of active volcanism.