volcanoes as magma travels upward , it sometimes reaches an opening , or vent , in the crust .