Signs you should stop right now
Sparking inside the oven or at the controls is a danger. So is smoke when nothing is burning in it. Stop using the oven and turn it off.
A smell of gas is the most serious sign. Do not turn on lights or use a switch, and do not light anything. Leave the house and call the gas utility or emergency services from outside.
What to turn off
For an electric oven, turn it off at the control. If you can reach the breaker panel safely and your hands are dry, switch off the breaker for the oven. If anything looks scorched or wet near the panel, leave it alone and call a professional.
For a gas oven, turn the knobs to off. If you smell gas, follow the steps above and do not try to find the leak yourself.
A door that won't seal
A door that hangs open a little or a gasket that is torn lets heat escape. The oven may cook unevenly, and the outside can get hotter than normal. That is a risk around children and pets.
Don't keep using it and hope. A worn hinge or gasket often can be fixed, but have it looked at first.
Don't open it up yourself
Wiring and gas parts are not a do-it-yourself job. A mistake can cause a shock, a fire or a leak. Let a professional do the repair.