Car shuts off when warm, white smoke from exhaust

This turned out to be the crankshaft position sensor. First sensor I put in and no more stalling.

It did start putting out P0336 the last day but when this stalling + no start began it gave NO CODES at any time.

@SOTF

So the problem is finally resolved?

No more stalling when warmed up AND the engine idles well?

So the bad idle was the leaky intake gasket?

And the stalling when warmed up was the crank sensor?

db4690, correct. However I am now facing a different problem. The car has become progressively harder to start. Now it will not start without starter fluid but runs fine once that happens. I will be posting a new thread on this but the other things are correct and I believe unrelated.

The bad idle was a result of a blown out intake manifold gasket. This fixed the rough idle.

A new crankshaft position sensor fixed the car shutting off when the car would warm up and then would not start until cooler. Revving kept the engine alive but when no throttle was given the car would take a death plunge and shut off then not start until cooler.