When the glass is broken , ammonia and hydrogen sulfide gases , both of which have a powerful unpleasant smell , are released from the solution .

When the ampoule is broken , ammonia and hydrogen sulfide gases are released from the solution .
