A non-well-posed problem in convex optimal control