Many state and local governments are experiencing a pension crisis. What is the source of this crisis?

 

Many state and local governments are experiencing a pension crisis. What is the source of this crisis? Last year the stock market had a strong increase and is up again so far this year. What effect, if any, does this have on the pension crisis?