A nonlinear problem in rigid body dynamics