Those icicles are pretty. The water backing up behind them isn't.
Ice dams form when heat from the house melts snow on the upper roof. The water runs down and freezes again at the cold edge over the gutter.
The fix starts in the attic: more insulation and better venting keep the roof cold, so the snow doesn't melt from below.
On the roof, ice and water shield along the edges keeps backed-up water out of the house when a dam does form.
Never chip ice off the roof with a hammer or a shovel. You'll damage shingles and maybe yourself. Call, and we'll steam it off safely.