What would cause the back-up lights to go out and the R on shift indicator to illuminate when you press the brakes regardless of the gearshift position the dash indicates a problem with rear lights bu?

check the ground at rear of car sounds like broken or bad ground wire